0% found this document useful (0 votes)
17 views

Pract JAVA Jan2011

This document contains three examination slips for a Java programming exam from Yashwantrao Chavan Maharashtra Open University. Each slip lists three programming questions worth 10 marks each. Questions involve writing programs to calculate depreciation, create classes for students and subjects, generate Fibonacci numbers, produce patterns, sort employee data, reverse digits in a number, analyze student exam marks in different ranges, find prime numbers, and count letters in text. Students are to solve any two questions on each slip.

Uploaded by

AkshayMahajan
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Pract JAVA Jan2011

This document contains three examination slips for a Java programming exam from Yashwantrao Chavan Maharashtra Open University. Each slip lists three programming questions worth 10 marks each. Questions involve writing programs to calculate depreciation, create classes for students and subjects, generate Fibonacci numbers, produce patterns, sort employee data, reverse digits in a number, analyze student exam marks in different ranges, find prime numbers, and count letters in text. Students are to solve any two questions on each slip.

Uploaded by

AkshayMahajan
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

YASHWANTRAO CHAVAN MAHARASHTRA OPEN UNIVERSITY

Practical Examination Slip A


Subjct ! "a#a Exam! "anuar$ %&''
Tim ! ' Hr Mar() ! %&
In)truction) :
1) Solve any two questions.
2) Figures to right indicate marks of the question.
* No *u)tion) Mar()
1 The straight line method of computing the yearly depreciation of the value
of an item is given y
!epriciation " # $urchase price % Salvage value ) & 'ears of service
(rite a program to determine the salvage value of an item when the
purchase price) years of service) and the annual depreciation are given.
1*
2 (rite a class Student+ store it in the package stud. (rite a class ,atch with
information aout su-ect) faculty) and timing. Store it in the package at.
.se the class ,atch to set information in the Student class.
1*
/ The numer in the sequence
1 1 2 / 0 1 1/ 21 2222222..
3re called Fionacci numers. (rite a program using a do2while loop to
calculate and print the first m Fionacci numers.
1*
* * *
YASHWANTRAO CHAVAN MAHARASHTRA OPEN UNIVERSITY
Practical Examination Slip +
Subjct ! "a#a Exam! "anuar$ %&''
Tim ! ' Hr Mar() ! %&
In)truction) :
1) Solve any two questions.
2) Figures to right indicate marks of the question.
* No *u)tion) Mar()
1 (rite a program to produce the following form.
1
* 1
1 * 1
* 1 * 1
1 * 1 * 1
1
2 2
/ / /
4 4 4 4
0 0 0 0 0
5 5 5 5 5
5 5 5 5
5 5 5
5 5
5
1*
2 (rite a utility class to sort the employees according to their names 1*
/
6iven a numer ) write a program using while loop to reverse the digits of
the numer. For e7ample) the numer 12/40 should e written as 04/21.
1*
8 8 8
YASHWANTRAO CHAVAN MAHARASHTRA OPEN UNIVERSITY
Practical Examination Slip C
Subjct ! "a#a Exam! "anuar$ %&''
Tim ! ' Hr Mar() ! %&
In)truction) :
1) Solve any two questions.
2) Figures to right indicate marks of the question.
* No *u)tion) Mar()
1
6iven a list of marks ranging from * to 1**) write a program to compute
and print the numer of students who have otained marks
# a ) in the range 11 to 1** )
# ) in the range 91 to 1* )
# c ) in the range 41 to 9* ) and
# d ) in the range * to 4* )
1*
2 (rite a program to find out prime no from 1 to 1** 1*
/
(rite a program) which will read a te7t and count all occurrences of a
particular letter.
1*
* * *

You might also like