0% found this document useful (0 votes)
34 views6 pages

21IST502 - OOC With Java MQP

This document contains two model question papers for the Object Oriented Programming with Java subject fifth semester examination. Each paper contains 10 questions with 5 questions to be answered. The questions assess different cognitive levels and cover the following topics: 1) Characteristics of Java language and programming concepts like inheritance, polymorphism, abstraction etc. 2) Exception handling, threads, synchronization. 3) AWT and Swing components for GUI programming.

Uploaded by

thejugowda121
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)
34 views6 pages

21IST502 - OOC With Java MQP

This document contains two model question papers for the Object Oriented Programming with Java subject fifth semester examination. Each paper contains 10 questions with 5 questions to be answered. The questions assess different cognitive levels and cover the following topics: 1) Characteristics of Java language and programming concepts like inheritance, polymorphism, abstraction etc. 2) Exception handling, threads, synchronization. 3) AWT and Swing components for GUI programming.

Uploaded by

thejugowda121
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/ 6

21IST502

B.E. Degree (Autonomous) Fifth Semester End Examination (SEE), March 2024

Object Oriented Programming with Java


(Model Question Paper – I)

[Time: 3 Hours ] [ Maximum Marks: 100]

Instructions t
o Students:
Answer FIVE FULL questions.

SL Questions Marks Cos RBT


No cognitive
Levels
1. a. List and explain the characteristic features of java 8 Marks CO1 L1
language.
b. Design and develop a program to implement calculator. 8 Marks CO 1 L2

c Explain different access specifier’s in java, with 4 Marks CO 1 L2


examples
OR
2 a. Compare and contrast method overloading and method 8 Marks CO 1 L2
overriding with suitable examples.

b. State the important features of object oriented 8 Marks CO 1 L2


programming. Compare object oriented programming
with procedure oriented programming.
c. Create a program using objects. 4 Marks CO 1 L1

3 a. What is nested class? What is its use? Explain with 10 CO 2 L6


example. Marks
b. Explain the following operation of the following 10 CO 2 L1
operators with an example. Marks

i)% ii)>>> iii)&&


OR

4 a Describe multithreading? List any two advantages of 10Marks CO 2 L2


multithreaded programs.
b Write a Java/c++ program to read two integers a and b. 10Marks CO 2 L2
Compute a/b and print, when b is not zero. Raise an
exception when b is equal to zero.

Dr. Ambedkar Institute of Technology, Bengaluru – 560056


(An Autonomous Institution Affiliated to Visvesvaraya Technological University, Belgaum)
5 a. Design a superclass called Staff with details as StaffId, 8Marks CO 3 L!
Name, Phone, Salary. Extend this class by
writing three subclasses namely Teaching (domain,
publications), Technical (skills), and Contract (period).
Write a Java program to read and display at least 3 staff
objects of all three categories..
b. What is synchronization? When do we use it? 12 CO 3 L2
Marks

OR
6 a Develop program using Synchronized Threads, which 12Marks CO 3 L2
demonstrates Producer Consumer concept.
b Define package. What are the steps involved in 8Marks CO 3 L2
creating user defined package with an example.

7 a. Discuss the delegation event model with suitable 10 CO 4 L2


examples. Marks
b. Explain KeyEvent and MouseEvent class with an 10 CO 4 L1
example MArks
OR

8 a. Explain the working procedure with Windows to create 04Marks CO 4 L2


AWT classes.
b. Explain Adapter classes and Inner classes used in java. 08Marks CO 4 L6

9 a Explain briefly the components and containers used in 8 Marks CO 5 L2


swings,

b Explain JLabel and ImageIcon with program. 12 CO 5 L2


Marks
OR

10 a Write steps to create JTable, also write a program to 10 CO 5 L3


demonstrate the same Marks
b Create a swing applet that has two buttons named beta 10 CO 5 L2
and gamma. when either of the buttons present, it Marks
should display “beta pressed” and “gamma pressed “
respectively.

Dr. Ambedkar Institute of Technology, Bengaluru – 560056


(An Autonomous Institution Affiliated to Visvesvaraya Technological University, Belgaum)
21IST502

B.E. Degree (Autonomous) Fifth Semester End Examination (SEE), March 2024

Object Oriented Programming with Java


(Model Question Paper – II)

[Time: 3 Hours ] [ Maximum Marks: 100]


Instructions to Students:
Answer FIVE FULL questions.

SL Questions Marks Cos RBT


No cogniti
ve
Levels
1. a. List and and explain java buzzwords. 4 CO1 L1
Marks
b. Discuss the different access specifier’s in Java, with 8 CO 1 L2
examples. Marks
c Explain the process of building and running java 8 CO 1 L2
application program. Marks
OR

2 a. Discuss Overriding and Overloading concepts. 4 CO 1 L2


Marks
b. Describe the usage of Abstract classes. 8 CO 1 L2
Marks
c. Discuss the significance of final and super keyword 8 CO 1 L2
with suitable examples. Marks

3 a. Define Exception handling. What is the importance 10 CO 2 L6


of the clause finally? Marks

b. Define inheritance. List and explain different types 10 CO 2 L2


of inheritance Marks
OR

4 a. Explain the super keyword functions in java with 10 CO 2 L2


relevant examples Marks
b. Summarize on method overloading and overriding 10 CO 2 L2
by citing relevant examples Marks

Dr. Ambedkar Institute of Technology, Bengaluru – 560056


(An Autonomous Institution Affiliated to Visvesvaraya Technological University, Belgaum)
5 a. Develop a JAVA program to implement 10 CO 3 L1
Synchronized Producer Consumer problem using Marks
Threads?
b. Describe multithreading? List any two advantages of 10 3 L2
multithreaded programs. Marks
OR
6 a Explain the methods of creation of threads in java. 10Mark CO3 L6
Also Develop a simple program to demonstrate the s
creatation of thread by implementing Runnable
interface
b Discuss the working of Synchronization methods in 10Mark CO3 L2
Java. s
7 a. Design a code snippet for Adapter classes and Inner 10 CO4 L1
classes in java Marks
b. Develop JAVA Program using AWT. 10 CO4 L1
Marks
OR

8 a. Develop JAVA Applet programs which handle Key 8 CO4 L2


Board Event. Marks
b. List and explain the Event Classes in Java. 4 CO4 L2
Marks

9 a. Create a swing applet that contains two buttons 8 CO5 L2


named “ALPHA” and “BETA”. When either of these Marks
two buttons is pressed, it should display “ALPHA is
pressed” and “BETA is pressed” respectively.
b. Design java code to illustrate the usage of JLabel 12 CO5 L2
and ImageIcon in swings. Marks
OR
10 a. Explain briefly the components and containers used in 10 CO5 L2
swings, Marks

b. Explain JLabel and ImageIcon with program. 10 CO5 L2


Marks

Dr. Ambedkar Institute of Technology, Bengaluru – 560056


(An Autonomous Institution Affiliated to Visvesvaraya Technological University, Belgaum)
21IST502

B.E. Degree (Autonomous) Fifth Semester End Examination (SEE), March 2024

Object Oriented Programming with Java

(Model Question Paper – III)

[Time: 3 Hours ] [ Maximum Marks: 100]

Instructions to Students:
Answer FIVE FULL questions.

SL Questions Marks Cos RBT


No cognitive
Levels
1. a. Explain the constructor method. How it differs from other 8 Marks CO1 L2
member function.
b. What is Bytecode? Describe the role of Bytecode in Java 4Marks CO1 L1
Programming
c Develop a JAVA Program to implement Inner class and 8 Marks CO1 L6
demonstrate its Access Protections
OR

2 a. Design and explain on Final Class and Abstract Class. 4 Marks CO1 L6,L2

b. Describe briefly dynamic method dispatch with an 8 Marks CO1 L2


example?
c. Develop a java program to demonstrate the Subclass 8 Marks CO1 L6
constructor calling super class’s constructor using the
keyword super.

3 a. Define Exception handling. What is the importance of the 10 Marks CO2 L2


clause finally?

b. Define inheritance. List and explain different types of 10 Marks CO2 L2


inheritance
OR
4 a Explain the super keyword functions in java with relevant 10Marks CO2 L2
examples
b Summarize on method overloading and overriding by 10Marks CO2 L2
citing relevant examples

Dr. Ambedkar Institute of Technology, Bengaluru – 560056


(An Autonomous Institution Affiliated to Visvesvaraya Technological University, Belgaum)
5 a. Describe multithreading? Listany two advantages of 10 Marks CO3 L6
multithreaded programs.
b. Explain the following terms with example. 10 Marks CO3 L1
i)isALive() ii)Join() iii)sleep() iv)stop()

OR

6 a. Explain the methods of creation of threads in java. Also 10 Marks CO3 L1


Develop a simple program to demonstrate the creatation
of thread by implementing Runnable interface
b. Explain the lif cycle of threads in Java 10 Marks CO3 L2

7 a. Discuss the mechanism of event delegation model. Give 10 CO4 L1


an example for using keyboard event Marks
b Define the delegation event model. Briefly explain the 10 Marks CO4 L1
role of :

i) Event Classes ii) Event listener interfaces iii) Source


of events iv) Adapter clauses
OR

8 a. Develop JAVA Applet programs which handle Key 10 Marks CO4 L2


Board Event.
b. Discuss Two event handling mechanism. 10 Marks CO4 L2

9 a. Create a swing applet that contains two buttons named 8 Marks CO5 L2
“ALPHA” and “BETA”. When either of these two
buttons is pressed, it should display “ALPHA is pressed”
and “BETA is pressed” respectively.
b. Design java code to illustrate the usage of JLabel and 12 Marks CO5 L2
ImageIcon in swings.
OR

10 a. Develop JAVA program using swings. 10 Marks CO5 L2

b. Explain JLabel and ImageIcon with program. 10 Marks CO5 L2

Dr. Ambedkar Institute of Technology, Bengaluru – 560056


(An Autonomous Institution Affiliated to Visvesvaraya Technological University, Belgaum)

You might also like