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

Microsoft Word - IT405 - Mod

The document discusses object oriented programming in Java. It contains 12 multiple choice questions about Java concepts like inheritance, polymorphism, exceptions and threads. It also contains 2 short answer questions about final, finalize and finalization and the two ways to create threads in Java.

Uploaded by

Shubhendu Ghorai
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)
22 views2 pages

Microsoft Word - IT405 - Mod

The document discusses object oriented programming in Java. It contains 12 multiple choice questions about Java concepts like inheritance, polymorphism, exceptions and threads. It also contains 2 short answer questions about final, finalize and finalization and the two ways to create threads in Java.

Uploaded by

Shubhendu Ghorai
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

NARULA INSTITUTE OF TECHNOLOGY NARULA INSTITUTE OF TECHNOLOGY

An Autonomous Institute under MAKAUT An Autonomous Institute under MAKAUT

B.tech/IT/EVEN//SEM4/IT405/R21/2022-2023 b) subclass sc = new subclass();


PAPER TYPE: REGULAR
YEAR: 2023
c) superclass sc = new subclass();
Object Oriented Programming Using JAVA
IT405 d) subclass sc = new superclass();
TIME ALLOTTED: 3 HOURS FULL MARKS: 70 (vi) 1 1
Which of the following is true for interface :-
The figures in the margin indicate full marks.
Candidates are required to give their answers in their own words as far as practicable a) All the methods are explicitly abstract.
GROUP – A b) All the methods are implicitly abstract.
(Multiple Choice Type Questions)
1. Answer any ten from the following, choosing the correct alternative of each question: 10×1=10 c) May contain general methods also.
SL. NO. Question CO Marks d) All of the above.
No.
(vii) In JAVA a thread is created by 2 1
(i) JAVA is a 1 1
a) Extending thread class
a) Conventional Programming Language
b) Implementing Runnable Interface
b) Procedural Programming Language
c) All of the above
c) Object Oriented Programming Language
d) None of these.
d) All of the above
(viii) Which of these is a wrapper for data type int ? 1 1
(ii) Byte code is created after 1 1
a) Integer b) Int c) INT d) Byte
a) Compilation of source code
(ix) If a class inheriting an abstract class does not define 1 1
b) Interpretation of Source code all of its function then it will be known as
c) Interpretation of Machine code a) abstract
d) Compilation of Machine code b) simple class
(iii) The keyword by which inheritance can be stopped is 2 1
c) static class
a) extends d) wrapper class
b) final (x) Which of these packages contain abstract keyword? 2 1

c) super a) java.lang
d) none of these b) java.util
(iv) JAVA doesn’t support multiple inheritance due to 1 1
c) java.io
a) dynamic method dispatch problem d) java.system
b) Diamond Problem (xi) When does exceptions in java arises in code 1 1

c) All of the above sequence


d) None of these a) runtime
(v) The general syntax of upcasting is 2 1 b) compilation time
a) superclass sc = new superclass(); c)can occur at any time

Even semester theory examination 2023 under autonomy, 12.06.2023 Even semester theory examination 2023 under autonomy, 12.06.2023
Page 1 of 4 Page 2 of 4
NARULA INSTITUTE OF TECHNOLOGY NARULA INSTITUTE OF TECHNOLOGY
An Autonomous Institute under MAKAUT An Autonomous Institute under MAKAUT

d) none of the above 9. (a) Briefly describe :- final,finally,finalize 3


10
(xii) 1 1 (b) Explain the life cycle of an applet with a diagram. 2
Which of the following keyword is not a part of
5
exception handling
a) try b) catch c)throws d) finally 10. (a) Mention the two ways by which thread can be created in 3

GROUP – B * java. 10
(Short Answer Type Questions)
Answer any three from the following: 3×5=15 (b) 2
Explain the life cycle of a thread with a diagram.
SL. NO. CO Marks 5
No.
2. 1 11. Write down the differences between :- (any three) 2
What is byte code? How is it created? 2+3
3. JAVA supports encapsulation, inheritance and 3 a) Method overloading and Method overriding
polymorphism- explain your views in support or 5 b) Throw and throws
5*3
against of the above mentioned line. c) Abstract class and Interface
4. (a) What is encapsulation? 2
3 d) Error and Exception
(b) Why Java is called compiled interpreted language. 3 e) String and stringbuffer class
2
5. (a) What is exception? 2
2
(b) How java handles the procedure if an exception occurs 2
3
in a program.
6. What is diamond problem in JAVA. Explain with a 2
5
program.
GROUP – C*
(Long Answer Type Questions)
Answer any three from the following: 3×15=45

SL. NO. CO No. Marks


7. (a) What are the main characteristics of a constructor. explain 2
2+3
with a program.
(b) Is there any method in java by which a method can be 3

accessed by not using object. name those methods and


explain with a program. 10

8. (a) Define wrapper class. 2 5


(b) Using wrapper class solve any two of the following:- 3

i) factorial of a number.
ii) palindrome number checking. 5+5
iii) Armstrong number checking.

Even semester theory examination 2023 under autonomy, 12.06.2023 Even semester theory examination 2023 under autonomy, 12.06.2023
Page 3 of 4 Page 4 of 4

You might also like