My Courses
My Courses
My Courses
UGRD-CS6203C-2123T /
Final Examination /
Final Exam
Question 1
Correct
Overuse of java threads can be hazardous to programs performance and its ...
Select one:
a. False
b. True
Question 2
Correct
Select one:
a. True
b. False
Question 3
Correct
Select one:
a. True
b. False
Question 4
Correct
It is a pure container and is not a window in itself. The sole purpose of a it is to organize the components on to a window.
Select one:
a. Container classes
b. Dialog
c. Panel
d. Frame
Question 5
Correct
Select one:
a. False
b. True
Question 6
Correct
Select one:
a. Dialog
b. Panel
c. Frame
d. Container classes
Question 7
Correct
Select one:
a. Risk factor
b. GUI applications
c. Multiprocessor systems
d. Java threads
Question 8
Correct
It contains all the crucial statements that must be executed whether exception occurs or not.
Select one:
a. Catch block
b. Try block
c. Finally block
d. Exception
Question 9
Correct
Whenever there is multiple processes contending for exclusive access to multiple locks, there is the possibility of deadlock.
Select one:
a. False
b. True
Question 10
Correct
Select one:
a. Catch block
b. Exception
c. Try block
d. Finally
Question 11
Correct
Select one:
a. False
b. True
Question 12
Correct
If no exception occurs in try block then the catch blocks are completely ignored.
Select one:
a. False
b. True
Question 13
Correct
Select one:
a. GUI applications
b. Risk factor
c. Multiprocessor systems
d. Java threads
Question 14
Correct
Select one:
a. exit;
b. exit()
c. close()
d. close;
Question 15
Correct
It is the more sophisticated of all layouts. It aligns components by placing them within a grid of cells, allowing components to span more
than one cell.
Select one:
a. Java FlowLayout
b. Java GridBagLayout
c. Java BorderLayout
Correct
Select one:
a. True
b. False
Question 17
Correct
If you just want to achieve basic functionality of a thread you can simply implement Runnable interface and override run() method.
Select one:
a. True
b. False
Question 18
Correct
It is a lightweight Graphical User Interface (GUI) toolkit that includes a rich set of widgets. It includes package lets you make GUI components
for your Java applications, and It is platform independent.
Select one:
a. Java package
b. Java library
c. Java AWT
d. Java swing
Question 19
Correct
Select one:
a. Java GridBagLayout
b. Java FlowLayout
c. Java BorderLayout
Question 20
Correct
The thread ends when it comes when the run() method finishes its execution.
Select one:
a. True
b. False
Question 21
Correct
It can be thought of like a pop-up window that pops out when a message has to be displayed. It is not a fully functioning window like the
Frame.
Select one:
a. Dialog
b. Panel
c. Container classes
d. Frame
Question 22
Correct
Select one:
a. True
b. False
Question 23
Correct
An exception in the finally block, behaves exactly like any other exception.
Select one:
a. True
b. False
Question 24
Correct
is built on top of the Java Abstract Widget Toolkit (AWT), an older, platform dependent GUI toolkit.
Select one:
a. Java package
b. Java AWT
c. Java swing
d. Java library
Question 25
Correct
If an exception occurs in try block then the control of execution is passed to the corresponding catch block.
Select one:
a. True
b. False
Question 26
Correct
It is where you handle the exceptions, this block must follow the try block.
Select one:
a. Catch block
b. Try block
c. Exception
d. Finally
Question 27
Correct
Places components in up to five areas: top, bottom, left, right, and center. It is the default layout manager for every java JFrame.
Select one:
a. Java Layout Manager
b. Java BorderLayout
c. Java GridBagLayout
d. Java FlowLayout
Question 28
Correct
Select one:
a. Panel
b. Dialog
c. Frame
d. Container classes
Question 29
Correct
A set of processes or threads is said to be deadlocked when each is waiting for an action that only one of the others can perform.
Select one:
a. False
b. True
Question 30
Correct
It is the default layout manager for every JPanel. It simply lays out components in a single row one after the other.
Select one:
a. Java FlowLayout
b. Java BorderLayout
d. Java GridBagLayout
Jump to...