Hyderabad Institute of Technology and Management
Gowdavelli (V), Medchal Dist. 501401.
CONTINUOUS INTERNAL EVALUATION MID-II Exam Even Semester : 2021-22
Faculty In-Charge: Date:
Subject Name : Subject Code: Sem-II III Yr.
Max Marks: 10 Time 1 Hour
Q. C
NO Bloom’s
Answer any Two Questions Marks O POs
Level
s
UNIT - III
1 a. Summarize the differences between thread-based multitasking and
process-based multitasking?
b. Explain about thread priorities ?
2 a) Explain about the Java thread model. Illustrate with an example?
b) How to create multiple threads in a program? Explain with an
example?
3 Discuss about the following?
a. Synchronization.
b. Runnable Interface
c. IsAlive() and join() methods.
4 What is Interthread Communication? Write a Java program to
handle producer-consumer problem using inter thread
communication mechanism?
5 Explain about thread class and runnable interface? Write a java
program to create a thread using runnable interface?
UNIT – IV
1 a. Explain about collection framework?
b. Explain about ArrayList class and Iterator interface with
the help of a java program?
2 a. Explain about collection Interfaces?
b. Explain about Hash Set and Tree Set classes with the help
of examples?
3 Explain about Map classes and interfaces? Discuss about Hash
Map class with the help of example?
4 a. Discuss about Dictionary class and its methods?
b. Explain about stack class by illustrating the
implementation of its methods with the help of java
program?
5 Discuss in detail about the following classes?
a. Array Deque
b. String Tokenizer
c. Priority Queue
6 Define vector class? What is difference between Array List and
Vector class? Write a java program for vector class using
enumeration interface?
7 Explain about the following with the help of examples?
a. Random class
b. Scanner class
8 Discuss about collection algorithm? Illustrate the applications of Map,
Hash Map utilities?
9 Explain about hierarchy of collection framework? Explain about
Hashtable and its properties with the help of java program?
10 Define the following utility classes with examples?
a. Calendar class.
b. Bit set class.
UNIT – V
1 What is GUI? Explain the steps to build GUI.
b) Enumerate the life cycle of an applet in detail with the help of example?
2 a. Describe in detail about model-view-controller architecture?
b. Define Layout manager and explain about any two Layout
Managers with examples?
3 Explain about Event Delegation model in detail? List out
Event classes and Event Interfaces?
4 Discuss about the following with examples?
a. Frame class and its methods.
b. Adapter class and demonstrate its role in event handling.
5 a. Explain the difference between AWT and Swing package?
b. How the events of the keyboard can be handled? Explain with a the
help of a java program?
6 a. What is a Swing? Explain the Component Hierarchy of Swings.
b. How the events of the mouse can be handled? Explain with a the
help of a java program?
7 Discuss about the following components with examples? e
a. Difference between radio button of AWT package and swing package
with the help of sample code?
c. JScroll Pane
d. JCombo Box
8 What is an Applet? Explain in detail about the difference between
applet and application?
9 a. What is a Swing Applet? Explain about paint method in
swing applet with the help of example?
b. Explain in detail about button class with Action Listener
Interface with the help of a java program use Image Icon
class also?
10 Create a user interface to collect data from customer for opening an
account in a bank. Use all possible swing components and layout manager
for your interface design ?