Sample Test Paper-I Course Name : Computer Engineering Group Course Code : CO/CM/IF/CD Semester
: FIFTH for CO/CM/IF and Sixth for CD
Subject
: Java Programming
Marks
: 20
9113 Time: 1 HOUR
Instructions: 1. All questions are compulsory. 2. Illustrate your answers with neat sketches wherever necessary. 3. Figures to the right indicate full marks. 4. Assume suitable data if necessary. 5. Preferably, write the answers in sequential order. Note: Follow the sequence as per the question paper profile. Q1. Attempt any Two of the following.
4 x 2 = 8 Marks
a) What do you mean by garbage collection in java. b) Explain the term Wrapper class. c) How multiple inheritance is achieved in java?
Q2. Attempt any Three of the following.
4 x 3 = 12 Marks
a) Write a java program to define a class Rectangle. Assume suitable members and calculate area and perimeter of the rectangle. b) Describe the uses of final and super with respect to inheritance. c) Describe the following methods related to String i) replace() ii) compareTo() d) What is a package? How to create it?
1
Sample Test Paper-II Course Name : Computer Engineering Group Course Code : CO/CM/IF/CD Semester
: FIFTH for CO/CM/IF and Sixth for CD
Subject
: Java Programming
Marks
: 20
9113 Time: 1 HOUR
Instructions: 1. All questions are compulsory. 2. Illustrate your answers with neat sketches wherever necessary. 3. Figures to the right indicate full marks. 4. Assume suitable data if necessary. 5. Preferably, write the answers in sequential order. Note: Follow the sequence as per the question paper profile. Q1. Attempt any TWO of the following.
4 x 2 = 8 Marks
a) Give the purpose of each arguments used in the method fillarc() b) What is finally block? When and how it is used.Give a suitable example. c) Explain the functionality of a FILE class.
Q2. Attempt any THREE of the following.
4 x 3 = 12 Marks
a) Explain the following methods related to thread i) wait() ii) sleep() b) Distinguish between applet and frame. c) What is an Exception? How it is handled? Give suitable example. d) Write a simple applet program to display “ Hello World ”.
2