0% found this document useful (0 votes)
7 views4 pages

Java Ii Mid QB

Uploaded by

xivoja3870
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)
7 views4 pages

Java Ii Mid QB

Uploaded by

xivoja3870
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/ 4

OOPS THROUGH JAVA II MID QUESTION BANK

UNIT-IV

PART A

SNO QUESTION MARKS RBT CO

1 Define thread. How is it different from a process? 2 Level 1 3

2 What is the importance of synchronization in java? 3 Level 1 3

3 What is a daemon thread? 3 Level 1 3

4 Distinguish between sleep () and wait () methods. 3 Level 4 3

5 How to read data in java file? Discuss. 3 Level 1 2

6 List the methods in Thread class. 4 Level 1 3

7 List the methods in java.io.File class. 4 Level 1 2

8 What is multithreading and discuss its advantages? 3 Level 1 3

PART B

SNO QUESTION MARKS RBT CO

1 What is thread synchronization? Illustrate with an example. 7 Level 2 3


Explain how communication between threads takes place with a
2 7 Level 5 3
programming example.
3 Explain the two methods of creating threads 8 Level 2 3
"Threads can be given priorities" - Support this statement with suitable
4 7 Level 5 3
example.
5 Explain about isAlive() and join() methods with example. 8 Level 2 3

6 Explain thread life cycle in detail with a neat diagram 7 Level 2 3


What is a stream? Explain in detail about byte stream and character
7 7 Level 2 2
stream classes.
8 Write a program to illustrate reading input using BufferedReader. 7 Level 2 2

9 Discuss about reading input from file. 8 Level 6 2

10 Discuss about Random Access File. 8 Level 6 2


UNIT V

PART A

SNO QUESTION MARKS RBT CO


1 Distinguish applet and application. 3 Level 4 5
2 What is source and listener in java event handling? 3 Level 1 1
3 List the basic methods used in Applet program structure. 3 Level 1 5
4 Compare nested class with inner class. Give examples for each 4 Level 2 1
5 What is an adapter class? Give any two examples for it. 4 Level 1 1
6 What are the advantages of event driven programming? 3 Level 1 1
7 What is an event? List out different events their sources and listeners. 4 Level 1 1
5
8 “Java class can be used both as an applet as well as an application" - 3 Level 5
Support this statement with an example.

9 What is an applet and what are the two ways used to execute an applet? 3 Level 1 5

PART B

SNO QUESTION MARKS RBT CO


1 8 Level 2 5
Explain applet life cycle and the steps for creating an applet.
2 7 Level 5 5
Explain how parameters are passed to applet with an example.
3 8 Level 6 1
Discuss about java.awt.event.ActionEvent class with an example.
4 7 Level 3 5
Develop an applet program that has different shapes in it.
5 5 Level 2 1
Explain about event delegation model in detail.

6 What are the sources of Event? Discuss about different event classes and 7 Level 6 1
event class hierarchy.
7 7 Level 3 1
Develop a java program for handling keyboard events.
8 What is the roll of listener class in event handling? List-out abstract 7 Level 1 1
methods of some Listener classes.
9 Develop a java program to handle mouse events and mouse motion 7 Level 3 1
events.
UNIT-VI

PART A

SNO QUESTION MARKS RBT CO


1 What are the different types of controls available in AWT? 3 Level 1 1
2 What is the role of layout manager in AWT? 3 Level 1 1
3 List out the differences between AWT and Swings. 3 Level 1 1
4 What are the different containers used in AWT? 3 Level 1 1
5 Distinguish between grid layout and gridbag layout managers. 4 Level 4 1
6 List the features of Menu component of AWT. 3 Level 1 1
7 What are default layouts of Frame and Applet classes? 3 Level 1 1
Distinguish between Text field and Text area and also discuss Text Field
8 constructors and methods. 4 Level 4 1

PART B

SNO QUESTION MARKS RBT CO

1 8 Level 6 1
Discuss in detail Menu bars and menus in Java with examples.
2 6 Level 6 1
Discuss about java.awt.package.
3 Explain any two AWT controls in java with suitable examples. 8 Level 2 1

4 8 Level 2 1
Explain about the components and containers of AWT.
Develop a Java program to create username and password screen using
5 7 Level 3 1
TextField

What is the significance of Layout managers? Discuss briefly various


6 10 Level 6 1
layout managers with examples.

Develop a java program that makes a window with a horizontal scroll


7 7 Level 3 1
bar.

You might also like