Summer 2018 OOP
Summer 2018 OOP
Note (l) Separate answer book must be used for each section in the subject Geology,
Engineering material of civil branch arld Separate answer book must be used
for Section A alld B in PhaE[acy aDd Cosmetic Tech.
(2) A$wer Thrce questioos from Sectioo A and Thrce questions ftom Section
B.
(3) Due crcdit will be given to neatness and adequate dimensioDs.
(4) Assume suitable data wherever necessary.
(5) lllushate your answer whercver necessary with the help of neat sketches.
(6) Use pen of Blue/Black inl/ref only for writing the answer book.
SF,CTION A
Write a Java program to print the squarc of first 20 odd numbers. 't
O)
OR
2. (a) Describe various data typqs supported in java with example. 'l
o) Write 'for', do-while' and 'while' statements to compute the following product
1*2x3* ............*25 6
AU-2535 P,T.O.
I
(b) What is aray ? Explain types of array. How to declare two dimensional anay
and how to initialize it 'l 7
OR
4 (a) Explain the differencc between class data value and instance data value with
an example. 6
OR
SlrCTlOIti B
(b) List out various methods associated with file object and explain with an
example. 6
.oR
8 (a) Write a Java program to read character sheam using file Reader. 6
AU-253s ,
I
(b) Write an applet to draw reclangle, rounded rectanges and fill rectangles
inside applet visible area. 6
oR
10. (a) Explain graphic class and color class in detail and also with its constructor
and methods. 7
(b) Write a simple applet using label, textfreld and Button GUI objects, when
the user click oil button the applet will display the area of triangle. '1
a
OR
(b) write a simple applet to implement all rhe methods of listener and
mouse motion listener.
^)bs. 7
AU-2535 3 180