Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
8 views

Object Oriented Programming Using Java 7th 2022 2023 Btech

This document is an examination paper for the BTECH course on Object Oriented Programming using Java for the academic year 2022-23. It consists of three parts, with Part-I containing compulsory short answer questions, Part-II featuring focused short answer questions, and Part-III consisting of long answer questions. The exam has a total duration of 3 hours and is worth a maximum 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)
8 views

Object Oriented Programming Using Java 7th 2022 2023 Btech

This document is an examination paper for the BTECH course on Object Oriented Programming using Java for the academic year 2022-23. It consists of three parts, with Part-I containing compulsory short answer questions, Part-II featuring focused short answer questions, and Part-III consisting of long answer questions. The exam has a total duration of 3 hours and is worth a maximum 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

Registration No :

--3
Total Number of Pages : 02
02 3 Course: BTECH
Sub_Code: ROP3B001
3/ 2
th
1 0
7 Semester/Regular/Back Examination: 2022-23

9 - 3 BRANCH(S): ALL
SUBJECT: OBJECT ORIENTED PROGRAMMING USING JAVA

10 Time : 3 Hour
Max Marks : 100
Q.Code : L278
- - 3
Answer Question No.1 (Part-1) which is compulsory, any eight from Part-II and any two

2 0 23from Part-III.
The figures in the right hand margin indicate marks.
03 /
3 1 / Part-I
Q1 Answer
0 9 - the following questions : (2 x 10)
a) Differentiate
1 between compiler and interpreter.
-- 3
0
c) Can you create an instance of an abstract class? Justify2 3 your answer.
b) Why Java is called simple and familiar? Justify your answer.

2
d) Differentiate between method overloading and/overriding.
3
e) What is garbage collection? Write the function
1 /0 in Java used for garbage
collection.
9 -
f) What is the difference between Autoboxing
3 and unboxing in Java?
g) What is difference between static1 0 and inner class in Java?
h) Differentiate between user defined exception and system defined
exception?
- - 3 program.
i)
j) What is the purpose of demon thread0 2 3 in Java?
Differentiate between applet and application

3 / 2
1 / 0 Part-II
Q2 Only Focused-Short
9 - 3 Answer Type Questions-(Answer Any Eight out of (6 × 8)
Twelve) 0
a) Explain the1features of object-oriented programming language. --
3
b) What is JVM?
- 3 0 2 3
Explain its significance in executing a Java program?
- in Java to transfer Rs500/- from one /account
c) Write a3program
2 2 to another
20 a program in Java to find the largest of an3array
account using class and object. 3
/0of n numbers
d)3/Write 1
1 / 0 Explain briefly the access specifiers in Java.
e)
0 9-
109-3 f) What is wrapper class? Explain the use1of wrapper class with examples.
g) Differentiate between the use of throw and throws with suitable examples.
h) Explain what is deadlock in Java. Explain with example how can we avoid it
in Java.
i) Explain Member inner class, Static inner class, Local inner class,
Anonymous inner class
j) Explain various classes for performing different transitions in the package
javafx.animation.
-- 3
k)
l)
02 3
Explain the steps required to play media in JavaFX.
What is the use of super keyword? Explain the explicit invocation of base
/
class constructor with example.
3 2
3 1 /0 Part-III
0
Only Long Answer 9 -Type Questions (Answer Any Two out of Four)
1
Explain various types of data types in Java. Explain with example from each
Q3 a) (8)
datatype.
b)
- - 3
Explain various types of operators used in Java with example. (8)

Q4 a) 0 23
Write a program in Java to find the number of occurrences of a string in a (8)
2
03 /
text. For example, find the occurrences of a string “man” in the text “man
1 /
are man obviously man”.
3
b)

10 9-
What is the limitation of multiple inheritance? How it is overcome by using (8)
interface. Explain with an example.
3
--
3 exception so that
Q5 a) Create a text box to input a number. Define a user defined
0 2
it will give a message when the input number is2less than 20 and more than
(8)

100. 0 3 /
b) Create a package containing a function 1 /
3 to find c(n, r) = n!/r!(n-r)!
factorial for calculating the factorial (8)
of a number. Use the package in 9 a-
program
1 0
Q6 a) Explain the life cycle of applet with neat sketch and discuss the functions (8)
associated with each state of the applet. 3
b) What is the use AWT package in java.
3 -- Explain four different component (8)
classes in AWT package.
2 02
0 3 /
3 1 /
9 -
10 3 -- 3
- - 3 2 0 2
0 2 3 3 /
/ 2 1 /0
/ 0 3 9 - 3
- 3 1 1 0
109

You might also like