0% found this document useful (0 votes)
2 views5 pages

Java Question Bank

The document is a question bank for a B.Tech/MBA course on Object Oriented Programming through Java, covering various topics across four units. It includes both Part A and Part B questions, categorized by Bloom's taxonomy levels, focusing on concepts such as inheritance, exception handling, and event handling in Java. Each unit contains a mix of definitions, explanations, and programming tasks to assess students' understanding of the subject matter.

Uploaded by

Swathi Reddy
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views5 pages

Java Question Bank

The document is a question bank for a B.Tech/MBA course on Object Oriented Programming through Java, covering various topics across four units. It includes both Part A and Part B questions, categorized by Bloom's taxonomy levels, focusing on concepts such as inheritance, exception handling, and event handling in Java. Each unit contains a mix of definitions, explanations, and programming tasks to assess students' understanding of the subject matter.

Uploaded by

Swathi Reddy
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

QUESTION BANK (UNIT WISE)

COURSE : [Link]/MBA
SUBJECT NAME : OBJECT ORIENTED PROGRAMMING THROUGH JAVA
COURSE CODE : 22CS405ES
YEAR : II
SEM : II

UNIT-I PART-A
Bloom's
[Link]. Coverage Questions Marks
Bloom's
Level
[Link]. Coverage Questions Marks
Level
1 UNIT-II Define Inheritance and list inheritance types [1M] L1
21 UNIT-I Definethe
class and objectofwith itskeyword
syntax. in java [1M] L1
3
2
UNIT-II
UNIT-I
UNIT-II
Write significance super
List various data types available in java.
Define package. How package is created and imported?
[1M]
[1M]
[1M]
L2
L1 UNIT
L2
II 4
3 UNIT-I
UNIT-II
List out OOP concepts.
Write the importance of ‘final’ in inheritance
[1M]
[1M]
L1 PART-A
4 UNIT-I Define variable and its scope of a variable [1M] L2
L1
5 UNIT-II Differentiate between class and interface [1M] L4
5 UNIT-I Name different operators available in java [1M] L1
6 UNIT-II What is method overriding in java [1M] L1
6 UNIT-I Differentiate between C++ and java. [1M] L3
77 UNIT-II
UNIT-I Write
What isa short notesHow
an array? on abstract classa 2D array?
to initialize [1M]
[1M] L1
L1 UNIT
88 UNIT-II What
Write isabout
methodany overloading? [1M] L1
99
UNIT-I
UNIT-II
UNIT-I Difference
What is type
two String Handling methods/
between early and late binding.
casting? [1M]
L1
L4
L1
III
10
10 UNIT-I
UNIT-II Define interface. ‘for’ and ‘for each’ with its syntax
Difference between [1M] L3
L1 PART-A
11
11 UNIT-I
UNIT-II Illustrate
Write the the use of switch
significance case statement.
of ‘extends’ and ‘implements’ [1M] L2
[1M] L2
12 UNIT-I keyword in java
What is the importance of ‘this’ keyword in java with an
[1M] L2
12 UNIT-II Define
exampleinheritance. How can we restrict the inheritance to
[1M] L2
13 UNIT-I another
List out class
Jumping statements and give example for them. [1M] L1
13
14 UNIT-II
UNIT-I List various member access
What is the importance specifiers
of garbage and itsand
collector rules
finalize () [1M] L1
[1M] L1
14 UNIT-II method
Write a short notes on file input and output. [1M] L1
15
15 UNIT-I
UNIT-II What is
What arethe
theprinciple
parameter
of passing techniques available in
substitutability? [1M] L2
[1M] L1
java
PART-B
PART-B Bloom's
[Link]. Coverage Questions Marks Bloom's
[Link]. Coverage Questions Marks Level
1 UNIT-II Explain the usage of ‘final’ and ‘super’ keyword with [10M] Level
L3
1 UNIT-I Write the
example significance of Java Virtual Machine with
program. [10M] L1
2 UNIT-II diagramInheritance.
Define and Byte Code. Explain various types of Inheritance. [10M] L2
2 UNIT-I Explain the role of aJDK,
How can u restrict classJRE
fromand JVM.
inheritance [10M] L1
33 UNIT-I
UNIT-II Explain OOPS concepts.
Define Inheritance and its syntax. List benefits and [10M]
[10M] L1
L2
4 UNIT-I List and explain
limitation the Java buzzwords in detail.
of inheritance. [10M] L1
45 UNIT-I
UNIT-II Write isaabstract
What java program
class andtoabstract
displaymethod?
all theGive
oddexample.
numbers [10M] L1
L2
between 1 to 30 using for loop & if statement.
5 UNIT-II Define a Package? What is its use in java? How to import [10M] L2
packages?
6 UNIT-I Explain following bitwise operators with an example: [10M] L2
6 UNIT-II What is java package? What is CLASSPATH? Show how [10M] L3
left shift operator <<
to create and access a java package with an example.
right shift operator >>
7 UNIT-II Describe different levels of access protection available in [10M] L2
7 UNIT-I Define constructor? Explain constructor overloading [10M] L2
Java
method overloading in java with an example
8 UNIT-II What is an interface? What are the similarities between [10M] L2
8 UNIT-I a)Design a java program to find the factorial of a given [10M] L5,L3
interfaces and classes?
number.
9 UNIT-II Explain
b) Justifythe concept
method of interface
overriding withwith an example
a suitable program.
example [10M] L3
How can
program you extend one interface by the other interface?
10
9 UNIT-II
UNIT-I What
What isis polymorphism?
the importance of Differentiate between
garbage collector andcompile
finalize () [10M]
[10M] L4
L1
time and runtime
method in java. polymorphism with the help of java
program
10 UNIT-I Explain in detail java nested class or inner class. [10M] L1
11 UNIT-II Write a program to implement multilevel hierarchy, use [10M] L3
11 UNIT-I Discuss the drawbacks of procedural languages and [10M] L3
super keyword to define methods in sub classes.
explain the need of object oriented programming with
12 UNIT-II What is method
suitable programand constructor overloading? Explain with [10M] L3
an example program.
12 UNIT-I a)What is an Object? How to allocate memory for objects? [10M] L1,L2
13 UNIT-II Examine
b) Explainthe usage
why Javaofis“super‟
Machine keyword with suitable
Independent. [10M] L4
program segments.
13 UNIT-I What is Recursion. Explain with an example. [10M] L2
14 UNIT-II Create an interface with at least one method and implement [10M] L3
14 UNIT-I a)List the primitive data types available in Java and [10M] L1.l2
that interface.
explain.
15 UNIT-II Design
b) Whatanis interface called Shape Explain
method overloading? with methods
with andraw() and
example [10M] L6
getArea().
program Further design two classes called Circle and
Rectangle that implements Shape to compute area of
15 UNIT-I What are Java buzzwords? Explain in detail [10M] L1
respective shapes. Use appropriate getter and setter
methods. Write a java program for the same.
Bloom's
[Link]. Coverage Questions Marks
Level
1 UNIT-III Define Error and Exception [1M] L1
2 UNIT-III List benefits of exception handling. [1M] L1
3 UNIT-III Define Exception. List various blocks used in exception [1M] L1
handling
4 UNIT-III Write the significance of try block. [1M] L2
5 UNIT-III Write the significance of catch block. [1M] L2
6 UNIT-III Write the significance of finally block. [1M] L2
7 UNIT-III Write the significance of throw and throws in exception
[1M] L2
handling
8 UNIT-III Differentiate between Process based Multitasking and
[1M] L4
Thread based Multitasking
9 UNIT-III Define Thread. How to create aThread. [1M] L1
10 UNIT-III Write the purpose of Java Enum. [1M] L1
11 UNIT-III Define Autoboxing and unboxing on java. [1M] L1
12 UNIT-III Write the significance of Daemon Thread. [1M] L2
13 UNIT-III Define Annotations in java. [1M] L1
14 UNIT-III List various states in thread Life cycle, [1M] L1
15 UNIT-III Write the importance of Thread group. [1M] L2

PART-B
Bloom's
[Link]. Coverage Questions Marks
Level
1 UNIT-III Explain the difference between checked and unchecked [10M] L2
exceptions.
2 UNIT-III Write a program that demonstrates the use of try and ctach [10M] L3
blocks.
3 UNIT-III Illustrate the hierarchy of java Exception classes and [10M] L2
explain them.
4 UNIT-III Define Exception. How to handle Arithmetic and Array [10M] L3
Index Out of Bound Exception?
5 UNIT-III Demonstrate [Link] and program to read console input and [10M] L3
writing console output.
6 UNIT-III Define Thread. Explain the life cycle of Thread and [10M] L2
methods to create a thread.
7 UNIT-III Develop a java program that demonstrates the inter thread [10M] L3
communication or producer-consumer problem with an
example.
8 UNIT-III Explain Synchronization of threads with an example [10M] L2
program.
9 UNIT-III Discuss briefly about Thread priorities with an example [10M] L2
program.
10 UNIT-III Explain the concept of Daemon threads and methods used [10M] L2
for Daemon threads with an example program.
11 UNIT-III Illustrate the concept of Thread groups with an example [10M] L2
program.
L112 UNIT-III a. Write about Termination and resumptive models [10M] L1
b. What are generics in java?
1l23 UNIT-III Explain about string handling in java. Write about the [10M] L1
various functions used for handling a string.
14 UNIT-III Demonstrate the concept of Enumerations in java with an [10M] L3
example program.
15 UNIT-III Write short notes on: [10M] L1
a. Autoboxing
b. Annotations
Bloom's
[Link]. Coverage Questions Marks
Level UNIT
1 UNIT-IV Define Event, source and Listener [1M] L1 IV
2 UNIT-IV What is frame in AWT? How to create a frame. [1M] L1 PART-A
3 UNIT-IV What is panel? How to create a panel. [1M] L1
4 UNIT-IV Name different Layout manager types. [1M] L1
5 UNIT-IV Define Container list any 4 types of containers [1M] L1
6 UNIT-IV Name the package which is used to design AWT control [1M] L1
7 UNIT-IV List the different types of Listeners. [1M] L2
8 UNIT-IV Name method of ItemListener , ActionListener with syntax [1M] L1
9 UNIT-IV List methods of KeyListener with syntax. [1M] L2
10 UNIT-IV Differentiate between checkbox and checkbox group. [1M] L3
11 UNIT-IV Name the methods used for Frame. [1M] L1 UNIT
V 12 UNIT-IV Write short notes on dialog container class [1M] L1 PART-A
13 UNIT-IV Differentiate between Choice and List components [1M] L3
14 UNIT-IV Define AWT. Create a menu bar to a AWT frame. [1M] L5
15 UNIT-IV What is meant by adapter class. [1M] L1

PART-B
Bloom's
[Link]. Coverage Questions Marks
Level
1 UNIT-IV Illustrate various types under Layout manager and explain [10M] L2
each layout with an example program.
2 UNIT-IV Develop a java program to demonstrate handling mouse [10M] L3
events.
3 UNIT-IV Explain the process of event handling through Delegation [10M] L1
model.
4 UNIT-IV Demonstrate how keyboard events are handled with a an [10M] L3
example program.
5 UNIT-IV Design a Registration form using AWT frames, various [10M] L5
components and panels
6 UNIT-IV What is an adapter class? Demonstrate its role in event [10M] L3
handling with example program.
7 UNIT-IV Design a calculator using AWT with an example program. [10M] L5
8 UNIT-IV Define Layout. Explain about different Layout managers. [10M] L1
9 UNIT-IV Write short notes on [10M] L1
a. Canvas
b. Graphics
10 UNIT-IV Explain about AWT class hierarchy with neat sketch. [10M] L1
11 UNIT-IV Design an application to create from using Textfield, [10M] L5
textarea,Button and Label
12 UNIT-IV a. Write a program to create three Button with [10M] L3
Caption, OK, RESET and Cancel.
Bloom's
[Link]. Coverage Questions Marks
Level
1 UNIT-V Define Applet. List two types of Applets available in Java. [1M] L1
2 UNIT-V What is the purpose of applet viewer? [1M] L1
3 UNIT-V Write HTML file to run an applet program named Simple. [1M] L3
4 UNIT-V List any two features of Applets. [1M] L1
5 UNIT-V What is the purpose of paint() method? [1M] L2
6 UNIT-V List any four methods associated with Applets [1M] L1
7 UNIT-V List various stages of an Applet [1M] L1
8 UNIT-V Differentiate stop() and destroy() methods. [1M] L4
9 UNIT-V Write the significance of Graphics class [1M] L2
10 UNIT-V What happens when the constructor JButton(String msg) is
[1M] L2
called?
11 UNIT-V What is the purpose of getParamter() methods? [1M] L2
12 UNIT-V List the key features of a swing GUI [1M] L1
13 UNIT-V What happens when the constructor JButton(String msg) is
[1M] L2
called?
14 UNIT-V List out limitations of AWT. [1M] L1
15 UNIT-V Draw the hierarchy of java Swing classes. [1M] L2

PART-B
Bloom's
[Link]. Coverage Questions Marks
Level
1 UNIT-V Explain java Swing class Hierarchy [10M] L1
2 UNIT-V Define Applet. Explain the life cycle of an applet with neat [10M] L3
diagram.
3 UNIT-V List and explain any 6 methods defined by Applet with an [10M] L2
example program.
4 UNIT-V Explain the purpose of JButton and explain any four [10M] L2
methods associated with it.
5 UNIT-V Explain the use of JTextField and any four methods [10M] L2
associate with it
6 UNIT-V Explain the use of JList and any for methods associated [10M] L2
with it.
7 UNIT-V Illustrate the use of JLabel with suitable example. [10M] L3
8 UNIT-V List and explain different methods associated with [10M] L2
JCheckBox.
9 UNIT-V Explain different methods associate with JRadioButton [10M] L3
control with suitable example.
10 UNIT-V Explain MVC Architecture with neat sketch. [10M] L2
11 UNIT-V Write a note on Swing Components and Containers. [10M] L1
12 UNIT-V Explain Swing architecture with neat sketch and simple [10M] L3
swing application program.
13 UNIT-V Explain the purpose of JButton and explain any four [10M] L2
methods associated with it.
14 UNIT-V Explain the use of JTextField and any four methods [10M] L2
associate with it
15 UNIT-V Explain the use of JScrollpane and any for methods [10M] L2
associated with it.
******

You might also like