Object Oriented Programming with Java.pdf - Google Drive

2 downloads 171 Views 89KB Size Report
4. OR. a) Explain Vector class with any two methods. 5. b) Explain Math class with any two methods. 5. c) Explain except
Enrollment No: _______________________

Exam Seat No:_______________________

C.U.SHAH UNIVERSITY Summer Examination-2016 Subject Name : Object Oriented Programming with Java Subject Code : 5CS02PJV1

Branch: PGDCA

Semester : 2

Time : 10:30 To 01:30

Date : 04/05/2016

Marks : 70

Instructions: (1) Use of Programmable calculator & any other electronic instrument is prohibited. (2) Instructions written on main answer book are strictly to be obeyed. (3) Draw neat diagrams and figures (if necessary) at right places. (4) Assume suitable data if needed. SECTION – I Q.-1

Q.-2

Q.-3

Attempt following.

7

a) b) c) d) e) f)

1 1 1 1 1

List out tokens in Java. What is JDK and JVM? What is inheritance? What is abstract class? List out OOP concept. Define Logical Operators.

2

Attempt following.

14

a) Explain feature of Java. b) Describe java data types. c) Explain for loop with example.

5 5 4

OR a) Explain Jagged Array with example. b) Discuss break and continue statement with example. c) Explain constructor with example.

5 5 4

Attempt following.

14

a) Explain method overloading with example. b) Describe String class with any two methods. c) Explain inheritance with example. OR a) Explain Vector class with any two methods. b) Explain Math class with any two methods. c) Explain exception handling in java.

5 5 4

Page 1 || 2

5 5 4

SECTION – II Q.-4

Q.-5

Q.-6

Attempt following.

7

a) b) c) d) e) f)

1 1 1 1 1 2

What is Applet? What is Package? What is Thread? What is Stream? List out ListenerInterfaces. Explain ActionListener.

Attempt following.

14

a) Explain Applet Life Cycle. b) Explain Thread Life Cycle. c) Explain RadioButton Control.

5 5 4

OR a) Explain event delegation model. b) Explain Graphics class with any two methods. c) Explain any two wrapper classes.

5 5 4

Attempt following.

14

a) Write a program to input two nos. from keyboard and print maximum. b) Write a program to print following triangle. 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30

7 7

OR a) Write a program to create two RadioButton with name PASS, FAIL and print selected option in TextField when a Button is clicked. b) Write a program to draw following image in applet and fill it with RED colour. RED

Page 2 || 2

7 7