KEMBAR78
Java QUESTION BANK FOR MID EXAM 2 | PDF | Software | Information Technology
0% found this document useful (0 votes)
331 views2 pages

Java QUESTION BANK FOR MID EXAM 2

This document appears to be a midterm exam for a Java programming course covering threads, collections, GUI, and Swing. It consists of 10 questions testing student knowledge across 5 units: 1. Threads and concurrency topics like thread-based vs process-based multitasking, thread priorities, and synchronization. 2. Collections framework including common classes like ArrayList, HashSet, HashMap as well as interfaces like Iterator, Map, and utility classes. 3. GUI fundamentals, applet lifecycle, MVC architecture, layout managers, and AWT event handling. 4. Swing components, differences between AWT and Swing, and handling keyboard and mouse events.

Uploaded by

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

Java QUESTION BANK FOR MID EXAM 2

This document appears to be a midterm exam for a Java programming course covering threads, collections, GUI, and Swing. It consists of 10 questions testing student knowledge across 5 units: 1. Threads and concurrency topics like thread-based vs process-based multitasking, thread priorities, and synchronization. 2. Collections framework including common classes like ArrayList, HashSet, HashMap as well as interfaces like Iterator, Map, and utility classes. 3. GUI fundamentals, applet lifecycle, MVC architecture, layout managers, and AWT event handling. 4. Swing components, differences between AWT and Swing, and handling keyboard and mouse events.

Uploaded by

lol123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

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 ?

You might also like