0% found this document useful (0 votes)
121 views2 pages

Object Oriented Programming Using Java-Hb890-Cse-2bpe-19-20

This document contains questions for an examination on Object Oriented Programming Using Java. It has three parts. Part I contains 10 short answer questions. Part II contains 12 short focused questions where students must answer 8. Part III contains 4 long answer questions where students must answer 2. The questions cover topics like inheritance, abstraction, interfaces, threads, exceptions and more. Students are asked to write code snippets and explain concepts. They are given 3 hours to complete the exam.

Uploaded by

Spgupta
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)
121 views2 pages

Object Oriented Programming Using Java-Hb890-Cse-2bpe-19-20

This document contains questions for an examination on Object Oriented Programming Using Java. It has three parts. Part I contains 10 short answer questions. Part II contains 12 short focused questions where students must answer 8. Part III contains 4 long answer questions where students must answer 2. The questions cover topics like inheritance, abstraction, interfaces, threads, exceptions and more. Students are asked to write code snippets and explain concepts. They are given 3 hours to complete the exam.

Uploaded by

Spgupta
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/ 2

109 109 109 109 109 109 109 109

Registration No :

Total Number of Pages : 02 B.Tech


PCS3I102
109 109 3rd Semester
109 109 Back Examination
109 2019-20
109 109 109
OBJECT ORIENTED PROGRAMMING USING JAVA
BRANCH : CSE
Max Marks : 100
Time : 3 Hours
Q.CODE : HB890
Answer Question No.1 (Part-1) which is compulsory, any EIGHT from Part-II and any TWO
from Part-III.
109 109 109 109 109 109 109 109
The figures in the right hand margin indicate marks.

Part-I
Q1 Only Short Answer Type Questions (Answer All-10) (2 x 10)
a) What is the benefits of using genetic types?
b) Differentiate between abstract class and interface.
109 c)
109 Define a friend
109 function. 109 109 109 109 109
d) Define byte code.
e) Define type casting.
f) What is constructor?
g) What is synchronization?
h) What is syntax?
109
i)
109
Define Inheritance.
109 109 109 109 109 109
j) Define exception.

Part-II
Q2 Only Focused-Short Answer Type Questions- (Answer Any Eight out of Twelve) (6 x 8)
a) Differentiate between Method overloading and method overriding with example.
b) Explain the followings with example. Dynamic Method Dispatch, this, super, final.
109 109 109 109 109 109 109 109
c) Discuss public, private, protected and default access modifier with example.
d) What is collection in Java? Differentiate between vector and array list.
e) Justify statement.
1. JVM is plat form dependent.
2. There is no destructor in Java .
f) Write a simple GUI application that traces the user’s action such Keyboard action.
109 109
g) 109
Write a program 109‘Word1’ by ‘Worrd2’
to replace all 109 109
from a file1,and 109
output is written to 109
file2 file and display the no. of replacement.
h) Create an applet which has aText Field to accept a URL string, and displays the
document of the URL string in a new browser window.
i) Differentiate String class and String Buffer class with explanation of its methods.
j) Write a program to create two threads, one thread will print odd numbers and second
thread will print even numbers between 1 to 20 numbers.
109 109
k) 109 that counts number
Write a program 109 109
of characters,words,and 109 in a file.
lines 109 109

l) What is thread ? Describe the complete life cycle of thread with example.
109 109 109 109 109 109 109 109

Part-III
Only Long Answer Type Questions (Answer Any Two out of Four)
109
Q3 109
Create swing applet that has109
109
two buttons named
109
beta and gamma.
109
when either of the
109
(16) 109
buttons pressed, it should display” beta pressed” and “gamma was pressed”
respectively.

Q4 Explain delegation event model used to handle events in java. (16)

Q5 Explain the role of synchronization with producer and consumer problem. (16)
109 109 109 109 109 109 109 109

Q6 What is an applet ? Explain five main methods of applet. (16)

109 109 109 109 109 109 109 109

109 109 109 109 109 109 109 109

109 109 109 109 109 109 109 109

109 109 109 109 109 109 109 109

109 109 109 109 109 109 109 109

You might also like