0% found this document useful (0 votes)
6 views

Object Oriented Programming With Java Aut,Cse,Civ,Che,Ele,Etc,Mec,Mme,Pe 3rd 21 22

This document is an examination paper for the 3rd Semester Regular/Back Examination in Object-Oriented Programming with Java for various engineering branches. It includes three parts: Part-I consists of compulsory short answer questions, Part-II contains focused short answer questions, and Part-III requires long answer questions. The exam is set for a duration of 3 hours with a maximum score of 100 marks.

Uploaded by

2301109157cse
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Object Oriented Programming With Java Aut,Cse,Civ,Che,Ele,Etc,Mec,Mme,Pe 3rd 21 22

This document is an examination paper for the 3rd Semester Regular/Back Examination in Object-Oriented Programming with Java for various engineering branches. It includes three parts: Part-I consists of compulsory short answer questions, Part-II contains focused short answer questions, and Part-III requires long answer questions. The exam is set for a duration of 3 hours with a maximum score of 100 marks.

Uploaded by

2301109157cse
Copyright
© © All Rights Reserved
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


109 109 109 109 109 109 109 109
ROP3B001

3rd Semester Regular / Back Examination: 2021-22


OBJECT-ORIENTED PROGRAMMING WITH JAVA
BRANCH(S): AEIE, AERO, AG, AUTO, BIOMED,
BIOTECH, C&EE, CHEM, CIVIL, CSE, CSEAIME, CST, ECE, EEE, EIE, ELECTRICAL,
ELECTRICAL & C.E, ELECTRONICS & C.E, ETC, IT, MANUTECH, MECH, METTA,
109 109 MINERAL,
109 MINING,
109 MME, MMEAM,109 PE, PLASTIC,
109 PT 109 109
Time : 3 Hour
Max Marks : 100
Q.Code : OF609
Answer Question No.1 (Part-1) which is compulsory, any eight from Part-II and any two
from Part-III.
The figures in the right hand margin indicate marks.
109 109 109 109 109 109 109 109
Part-I
Q1 Answer the following questions : (2×10)
a) Write two advantages of a compiled and interpreted language over only a compiled
language.
b) Justify that Java is a simple and robust language.
c) Write the use of Buffered Reader class.
d) How typecasting is done in Java? Explain with two examples.
e) Write the use of super keyword in Java.
109 109 109 109 109 109 109 109
f) Explain the term Synchronization with respect to Java multithreading.
g) What is Demon Thread?
h) Differentiate between AWT and swing.
i) How runnable interface is used to create a thread.
j) Is multitasking and multithreading same? Justify your answer.

Part-II
Q2 Only Focused-Short Answer Type Questions- (Answer Any Eight out of (6×8)
109 109 109 109 109 109 109 109
Twelve)
a) Explain the features of an object oriented programming language.
b) What is JVM and write its significance in executing a program?
c) Explain the working of command line arguments in Java with an example.
d) Explain Dynamic Method Dispatching with example.
e) What is wrapper class? Explain the use of various wrapper classes with example.
f) Write a program in Java to replace a word by another word in a given text. For
109 109 example replace
109 cat by dog109in the text “catwood
109 asks asks109
walcat to change
109 109
cartage”
g) Write a program in Java to create a user define exception so that when user enters
mark more than full mark he will get a warning.
h) Explain the limitation of multiple inheritance and how it is overcome by using
interface.
i) Write a program in Java swing to create two text fields to read the input and a
command button to add these numbers. The result should be displaced in a third
109 109 text field. 109 109 109 109 109 109

109 109 109 109 109 109 109 109


109 109 109 109 109 109 109 109

j) Create a user defined package to find the average of n numbers and import to your
main program to find the standard deviation of n numbers.
k) Explain the following
109 109 Member inner 109class, Static inner
109 class, Local inner
109 class, Anonymous
109 inner class109 109
l) How the keywords throw and throws are used in exception handing? Explain with
example.

Part-III
Only Long Answer Type Questions (Answer Any Two out of Four)
Q3 Why Java is called an object oriented programming Language? Explain briefly (16)
various data types and operators used in Java.
109 109 109 109 109 109 109 109
Q4 Differentiate between method overloading and method overriding with suitable (16)
examples. Write a program to find c(n, r)=n!/r!(n-r)! by inheriting from a class that
computes the factorial of a number.

Q5 Explain briefly the life cycle of thread in Java. Write all methods and their role in (16)
Thread execution.

109 Q6 109 What is Abstract


109 Window Toolkit?
109 Explain different
109 Event Handling
109 mechanisms
109 (16) 109
mentioning keyboard and mouse events separately.

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