0% found this document useful (0 votes)
63 views4 pages

Summer 2018 OOP

This document contains 12 questions regarding programming methodology in Java. The questions cover topics such as data types in Java, methods, arrays, classes, inheritance, packages, interfaces, exception handling, applets, graphics, events, listeners, and file I/O. Students are instructed to answer 3 questions from Section A and 3 questions from Section B. The exam is worth a total of 180 marks and lasts 3 hours.

Uploaded by

Rakesh Joshi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views4 pages

Summer 2018 OOP

This document contains 12 questions regarding programming methodology in Java. The questions cover topics such as data types in Java, methods, arrays, classes, inheritance, packages, interfaces, exception handling, applets, graphics, events, listeners, and file I/O. Students are instructed to answer 3 questions from Section A and 3 questions from Section B. The exam is worth a total of 180 marks and lasts 3 hours.

Uploaded by

Rakesh Joshi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

AU - 2535

Third Semester B. E. (Computff Science and Engg.) (CGS) Examination


PROGRAMMING MEIIIODOLOGY
Paper - 3 KS 02l3KE 02
( usc - 10304 )
P Pages : 3

Time : Three Hoursl [Mar. Ma*s : 80

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

I (a) Justify each of the following statements above java :

(i) Java is operadng system independent

(ii) Java is safe and secure.

(iii) Java is small and simple. 6

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

3. (a) What is method overloading ? Explain with the hetp of program. 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

(b) What is constuctu ? Write Java application which demonstate consfructor


ovedoading. 7

5 (a) What is inheritance I Explain multilevel inheritance with example. 'l


(b) What are packages 'l How are they crcated ? Illushate with an example.
'7

OR

(a) What is an interface ? Explain with an example. Differentiate it widr an


abstract class. '1

(b) Explain abskact classes wirh an example. 't

SlrCTlOIti B

7 (a) Write a Jaya program that handles multiple exception. 7

(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

o) What is exception handling mechanipm ? Write an application which handtes


arithmetic and tu-ray lndex out of Bound Exception. 'l

9. (a) Explain difference between applet and application program. 1

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 an applet to demonsrate use of getparsmetq ( ) method to pass


parameters to your applet from applet tag in HTML. 6

ll. (a) Explain Delegation model with example. 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

12. rat Explain

(i) Event Sources

(ii) Event Listener

(iii) Mouse Listener

(iv) Key Listener. 7

(b) write a simple applet to implement all rhe methods of listener and
mouse motion listener.
^)bs. 7

AU-2535 3 180

You might also like