GURU NANAK INSTITUTIONS TECHNICAL CAMPUS (AUTONOMOUS) SCHOOL OF ENGINEERING & TECHNOLOGY
Question Bank with BTL
Subject Name with code : OOPS THROUGH JAVA-(22PC0CS04)
Class : II-Year I Semester
Academic Year : 2023-24
Blooms Taxonomy Levels (BTL)
L-1- Remembering, L-2- Understanding, L-3- Applying, L-4- Analyzing,
L-5- Evaluating, L-6- Creating
Question Bank for MID-1
UNIT 1
[Link] Very Short answer Questions (1 Mark) BTL CO
1 Differentiate between class and object? L1 CO1
2 Explain difference between variable and parameter? L2 CO1
3 What are the commands used for compilation and execution of java L1 CO1
programs?
4 Define the basic characteristics of Object Oriented Programming? L2 CO1
5 List out the operators in java? L2 CO1
6 What is an abstraction? L1 CO1
7 Explain garbage collection? L2 CO1
8 What is JVM and JRE? L1 CO1
9 What is the syntax of else-if ladder? L2 CO1
10 Write a simple java program for addition of two numbers? L6 CO1
Short Answer Questions (5 Marks)
Write a java method to find minimum value in given two values? CO1
1 L2,L3
2 Explain different levels of access protection available in java? L1, L2 CO1
3 What is a type casting concept? L2 CO1
4 Write a java program with this keyword? L6 CO1
Write java program which implements Recursion with suitable CO1
5 L6
Example.
What is polymorphism? Explain different types of polymorphisms with
6 L1,L2 CO1
examples?
Long Answer Questions (10 Marks)
1 Describe Datatypes in java with example programs. L2,L3 CO1
2 Explain java Buzzwords in detail L2 CO1
What is an array?How do you declare the array in java?Explain with CO1
3 example? L4
What is a constructor? Explain the purpose of constructor with Example CO1
4 L4
program?
UNIT 2
Very Short Answer Questions (1Marks)
1 What are the types of Inheritances? L2 CO2
2 How to define a package in java? L2 CO2
3 Define object class? L2 CO2
4 Explain subclass? L1 CO2
5 What is super keyword? L2 CO2
6 Explain final keyword? L2 CO2
7 Contrast between abstract class and interface? L2 CO2
8 What does Java API package contain? L2 CO2
9 List out the benefits of Stream oriented I/O? L2 CO2
10 Differentiate between implements and extends keywords? L3 CO2
Short Answer Questions (5Marks)
1 Explain benefits and costs of inheritance? L2 CO2
2 Write a program to demonstrate hierarchical and multiple inheritance L2 CO2
using interface?
3 What is the use of Super keyword with an example program? L4 CO2
4 Write the benefits of packages and interfaces? L2,L3 CO2
Explain difference in between classes and interfaces with suitable CO2
5 L4
Example?
6 Discuss about CLASSPATH environment variables? L2 CO2
Long Answer Questions (10 Marks)
1 What is inheritance ? Explain different forms of inheritance? L2,L3 CO2
Write the procedure to create a package with multiple public classes CO2
2 and also explain how to access a package? L2,L3
Explain the concept of importing packages and write a programs that CO2
3 L3
implements the importing concept?
How do you design and implement an interface in java?How can you CO2
4 L6
extend one interface by the other interface ?
UNIT 3
Very Short Answer Questions (1 Marks)
1 What is an Error? L1 CO3
2 What is an Exception? What are two exception types? L1 CO3
3 Write syntax for try block ? L1 CO3
4 What are built-in Exceptions? L2 CO3
5 What are the runtime errors and logical errors in java? L2 CO3
Short Answer Questions (5 Marks)
1 Write about some java’s built in exceptions? L2 CO3
2 Explain Benefits of Exception handling mechanism? L2 CO3
3 Write a java program that illustrates the application of multiple catch L2,L3 CO3
statements?
Long Answer Questions (10 Marks)
1 Write a java program which implements exception handling in detail L4 CO3
Write a program with nested try statements for handling exceptions CO3
2 and how to create a user defined exception? L2
Explain the use of try,catch,throw,throws and finally in detail with CO3
3 L2,L3
example program.
Question Bank for MID-2
UNIT 3
S. No Very Short answer Questions (1 Mark) BTL CO
1 what is the purpose of Finally ? L-2 CO3
2 Difference in between Throw and throws in detail? L-1 CO3
3 What is Enumerations? L-3 CO3
4 Mention the priorities to threads? L-2 CO3
5 Define Autoboxing? L-3 CO3
Short Answer Questions (5 Marks)
1 Explain thread Synchronization in detail? L2 CO3
L-2, L- CO3
2 Differentiate between multiprocessing and multithreading?
3
3 Write a simple java program to create threads? L-2 CO3
Long Answer Questions (10 Marks)
Explain Inter Thread Communication in detail and How do we set CO3
1 L-3
priorities to threads
2 Explain daemon Thread? Explain Enumerations and Outboxing? L-3 CO3
3 Explain Exception hierarchy and classifications of exceptions? L-4 CO3
UNIT 4
Very Short Answer Questions (1 Mark)
1 What is an Event? L-2 CO4
2 What is Event -listener? L-2 CO4
3 What is Adapter class? L-1 CO4
4 What is an Event source? L-2 CO4
5 What is delegation Event? L-1 CO4
6 What is mouse Event?
7 Explain AWT class hierarchy? L-2 CO4
8 List layout manager types? L-2 CO4
9 what is grid bag? L-1 CO4
10 What is scroll pane? L-2 CO4
Short Answer Questions (5Marks)
1 What is Event Sources and Event Classes? L-3 CO4
2 Explain keyboard events? L-2 CO4
3 Explain all user Interface components? L-3 CO4
4 How can we handle mouse Events with an Example? L-4
5 Explain delegation Event model L-3 CO4
6 Explain layout manager types. L-2 CO4
Long Answer Questions (10 Marks)
1 What is an Event handling and Explain different Events in detail? L-3 CO4
2 What ate Event Listeners in detail with suitable Examples? L-3 CO4
What are the list panels in detail with example? what are layout CO4
3 manager Types? L-3
4 What is AWT class Hierarchy and What are Adapter classes? L-4 CO4
UNIT 5
Very Short Answer Questions (1Marks)
1 What is an applet? L-1 CO5
2 What is Swing? L-1 CO5
3 What are the limitations of AWT? L-3 CO5
4 Explain Parameter passing to applets? L-2 CO5
5 What is a Jframe? L-1 CO5
6 What is AWT? L-1 CO5
7 What are the components of MVC architecture? L-1 CO5
8 Difference between applet and application? L-2 CO5
9 What is Tree? L-2 CO5
10 What is a Table? L-2 CO5
Short Answer Questions (5Marks)
1 What are types of applet and Expalin? L-4 CO5
2 What is Applet and what is J frame with example? L-4 CO5
3 Explain J Component in detail? L-1,L2 CO5
4 Explain life cycle of an Applet? L-2 CO5
5 How can we pass parameters to an applet with an example? L-3 CO5
6 Write an applet to draw circle and cube shapes? L-6 CO5
Long Answer Questions (10 Marks)
What is an applet ? Explain concept of applet? How we can develop CO5
1 an applet? L-3,L-6
2 What are types of applet? Explain MVC architecture? L-3,L-2 CO5
Explain different types of buttons in applet concept and give a clear CO5
3 L-3,l-4
Explanation for that with Example?
What is a swing and explain different components of swing? Write a CO5
4 swing program using check boxes and Radio Buttons? L-2,L-6