0% found this document useful (0 votes)
80 views1 page

Object Oriented Programming (23 - 24)

The document is an examination paper for the MCA (SEM II) course on Object Oriented Programming, scheduled for 2023-24. It consists of three sections: Section A requires brief answers to ten questions, Section B consists of five questions where students must attempt any three, and Sections C through G offer various programming tasks and theoretical questions. The paper covers key Java concepts such as bytecode, inheritance, exception handling, threading, and GUI programming with Swing.

Uploaded by

himanshu17113
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)
80 views1 page

Object Oriented Programming (23 - 24)

The document is an examination paper for the MCA (SEM II) course on Object Oriented Programming, scheduled for 2023-24. It consists of three sections: Section A requires brief answers to ten questions, Section B consists of five questions where students must attempt any three, and Sections C through G offer various programming tasks and theoretical questions. The paper covers key Java concepts such as bytecode, inheritance, exception handling, threading, and GUI programming with Swing.

Uploaded by

himanshu17113
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

Printed Page: 1 of 1

Subject Code: KCA202


0Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0

MCA
(SEM II) THEORY EXAMINATION 2023-24
OBJECT ORIENTED PROGRAMMING
TIME: 3 HRS M.MARKS: 100

Note: 1. Attempt all Sections. If require any missing data; then choose suitably.
SECTION A
1. Attempt all questions in brief. 2 x 10 = 20
Q no. Question
a. Explain how bytecode make Java as platform independent language.
b. Object is variable of user define data type class, justify your answer.
c. What is the role of package in Java?
d. Write use of Inheritance in Object Oriented Programming.
e. Explain difference between throws and throw keyword in Java.
f. Draw hierarchical diagram of Java Exception Handling package.
g. Explain types of ways to create thread in Java and which one is better.
h. Describe the role of generic programming in Java.
i. Draw hierarchical diagram of Java Swing Classes.

2
j. What is the difference between Frame and Frame in Java?

13
90
SECTION B
2. Attempt any three of the following: 10 x 3=30

2.
_2
a. What are uses of super keyword? Explain with proper example.

24
b. What is constructor and also explain how sub class constructor implicitly calls super class
P2

5.
constructor in Java.
4E

c. Write Java program to copy a binary file.

.5
d. Write generic Java program that display multiply if pass as numeric data and merge text if pass

17
P2

as string data.
e. Explain difference between AWT and Swing with proper example. |1
Q

SECTION C
AM

3. Attempt any one part of the following: 10 x 1=10


a. Explain the difference between abstract class and interface with proper example.
01

b. Explain the striking features of Java as Object Oriented Programming.


4. Attempt any one part of the following: 10 x 1=10
:
02

a. What is Polymorphism? Explain its types with proper example.


9:

b. What is Abstraction? How could you achieve abstraction from 0 to 100% in Java.
24

5. Attempt any one part of the following: 10 x 1=10


a. Write Java program that accepts a temperature in Celsius. It should throw an Exception
20

“Temperature Below Normal” when the temperature is less than 15C, throw an Exception
“Normal Temperature” when the temperature above 15C and below 42C and throw an Exception
g-

“Temperature is High” when it is greater than 42C.


Au

b. Explain the use Reader or Writer classes with suitable example


6. Attempt any one part of the following: 10 x 1=10
3-

a. Describe threads and life cycle of threads with proper neat and clean diagram.
|2

b. Discuss generic bounded class with the help of a suitable example.


7. Attempt any one f part of the following: 10 x 1=10
a. Write Java Swing program that calculate sum of two number whenever user click on button and
displays that result to user.
b. What is event and event delegation model, explain with proper example of keyboard or mouse
event handling.

1|Page
QP24EP2_290 | 23-Aug-2024 9:02:01 AM | 117.55.242.132

You might also like