0 ratings0% found this document useful (0 votes) 33 views6 pagesObject Oriented Programming - EE604C - 2017
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
C8/B.TECH/ EE/EVEN/SEM-6/EE-604C/ 2016-17
Mauana Ae Kola da leery
Tectecegr Wel Baraat
MAULANA ABUL KALAM AZAD UNIVERSITY OF
TECHNOLOGY, WEST BENGAL
Paper Code : EE-604C
OBJECT ORIENTED PROGRAMMING
Time Allotted : 3 Hours Full Marks : 70
The figures in the margin indicate full marks.
Candidates are required to give their answers in their own
words as far as practicable.
GROUP - A...»
( Multiple Choice Type Questions )
1. Choose the correct alternatives for any ten of the
following : 2 10x 1=10
i) JVM is
a) platform dependent totally
b) independent ea
c) depends on machine é q hitgsture only
d) _ depends on operating: Sap
VI-600412 [ Turn overCS/B.TECH/EE/EVEN/SEM-6/EE-604C/2016-17
vi) Which one of the following statements is wrong ?
a)
b)
c)
dj
A base class reference can refer to an object of
a derived class.
The dynamic method dispatch is not carried
out at the run time.
The super() construct refers to-the base class
constructor.
The super.base-class-method-name( ) format
can be used only within a derived class.
vii) What is the correct ordering for the import, class
and package declarations where found in a single
file ?
a) Package, import, class
b) Class, import, package
c) Import, package, class —.
EE
d) Package, class, import. /&
viii) Super keyword in Java is us
a)
b)
c}
4)
VI-600412
to refer to immediate ch
to refer to immediate parent
to refer to current class object
to refer to static member of parent class.
3 [ Turn overCS/B.TECH/EE/EVEN/SEM-6/EE-604C/2016-17
ix) What will happen on running the following code ?
try
{
int arr{] ={1, 2};
arr[2] = 3/0;
System.out.printin(a[0] } ;
}
catch (Exception e)
f
System.out.printIn (“Exception”) ;
Catch (ArithmeticException e)
System.out.printin (“Divide by Zero”) ;
Exception is printed
e | Divide by Zero is printed
3%
% A) Compilation error
rnd d) lis printed.
x) Which one of the following keeps the thread in run
state ?
a) start() b) run()
c) set run() d) stop()}
xi) Exception is defined in which package ?
a) Java.lang b) © Javacutil
c) Java.awt d) Java.io
VI-600412 4C8/B.TECH/EE/EVEN/SEM-6/EE-604C/2016-17
GROUP -B
( Short Answer Type Questions )
Answer any three of the following. 3x5=15
2. Distinguish between object, oriented programming and
procedural programming. :
3. How does string class differ from string buffer class ?
' Explain with example. , 3
4. What is the difference between ‘error and exception’ ?
Discuss about ‘exception propagation’. 273
5. Discuss the Applet life-cycle indicating the functions.
6. What is the difference between final, finally & finalize in
Java ? What do you mean by Garbage Collection in
Java ? 3+2
GROUP -C
Answer Type Questions )
t any three of the following. 3x 15=45
X you mean by parameter passing ?
b) What is the difference between call by value or pass
by value & call by reference or pass by reference
with suitable example. Explain.
c) What is ‘this’ keyword ? Give suitable example.
3+(3+6)+3
¥I-600412 5 [ Turn over€8/B.TECH/EE/EVEN/SEM-6 /EE-604C/2016-17
8. a) What are the differences between Method
Overloading & Method Overriding ?
b) Explain Dynamic Method Dispatch with suitable
example.
c) Write a program to access static variable & static
method to explain ‘static’ keyword properly.
ii se
-\What are exceptions ? Explain user defined
exceptions and system defined exceptions with
suitable examples.
How do we explain try and catch block ? Is it
‘essential to catch all type of exceptions ? Explain.
c) Briefly explain the use of this’ and ‘super’
keywords, 5+6+4
10. a) What is multithreading ? What is the difference
between creation of user thread by -extending
Thread class & implementing Runnable interface ?
Which one is better ? Explain.
‘b) What is thread synchronization ? Why is it needed ?
c) Describe the differences between an Applet &
Application,
d) List various attributes of Applet tag used in HTML.
(24+6)+3+2+2
v1-600412 6C8/B.TECH/EE/EVEN/SEM-6/EE-604C/2016-17
11. Write short notes on any three of the following : 3x5
a)
b)
3
q)
2)
Wrapper Class
Link & Association
Thread NC gw ;
Command Line Arg *
Abstract Class.