0% found this document useful (0 votes)
159 views

My Courses

The document is a record of a student completing a final exam on Java threads and exceptions. It shows that the student answered all 30 multiple choice questions correctly over a period of 7 minutes and 50 seconds, earning a perfect score of 30 out of 30 (100%).

Uploaded by

Rak Kusu
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)
159 views

My Courses

The document is a record of a student completing a final exam on Java threads and exceptions. It shows that the student answered all 30 multiple choice questions correctly over a period of 7 minutes and 50 seconds, earning a perfect score of 30 out of 30 (100%).

Uploaded by

Rak Kusu
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/ 10

Home / My courses /

UGRD-CS6203C-2123T /
Final Examination /
Final Exam

Started on Tuesday, 19 April 2022, 9:20 AM


State Finished
Completed on Tuesday, 19 April 2022, 9:27 AM
Time taken 7 mins 50 secs
Grade 30.00 out of 30.00 (100%)

Question 1
Correct

Mark 1.00 out of 1.00

Overuse of java threads can be hazardous to programs performance and its ...

Select one:
a. False

b. True 

Question 2

Correct

Mark 1.00 out of 1.00

When a thread is invoked, there will be one path of execution.

Select one:
a. True

b. False 

Question 3
Correct

Mark 1.00 out of 1.00

We use thread to perform asynchronous or background processing

Select one:
a. True 

b. False
Question 4

Correct

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

Its a good practice to use close() inside finally block.

Select one:
a. False

b. True 

Question 6
Correct

Mark 1.00 out of 1.00

Classes that can have other components on it.

Select one:
a. Dialog

b. Panel

c. Frame

d. Container classes 
Question 7

Correct

Mark 1.00 out of 1.00

Facility to allow multiple activities within a single process.

Select one:
a. Risk factor

b. GUI applications

c. Multiprocessor systems

d. Java threads 

Question 8
Correct

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

It contains set of statements where an exception can occur.

Select one:
a. Catch block

b. Exception

c. Try block 

d. Finally

Question 11
Correct

Mark 1.00 out of 1.00

A finally block must be associated without a try block.

Select one:
a. False 

b. True

Question 12
Correct

Mark 1.00 out of 1.00

If no exception occurs in try block then the catch blocks are completely ignored.

Select one:
a. False

b. True 
Question 13

Correct

Mark 1.00 out of 1.00

Proper co-ordination is required between threads accessing common variables.

Select one:
a. GUI applications

b. Risk factor 

c. Multiprocessor systems

d. Java threads

Question 14
Correct

Mark 1.00 out of 1.00

Statement used to close all the open streams in a program.

Select one:
a. exit;

b. exit()

c. close() 

d. close;

Question 15

Correct

Mark 1.00 out of 1.00

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

d. Java Layout Manager


Question 16

Correct

Mark 1.00 out of 1.00

Using threads increases the responsiveness of GUI applications.

Select one:
a. True 

b. False

Question 17
Correct

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

Used to layout the GUI java components inside a container.

Select one:
a. Java GridBagLayout

b. Java FlowLayout

c. Java BorderLayout

d. Java Layout Manager 

Question 20
Correct

Mark 1.00 out of 1.00

The thread ends when it comes when the run() method finishes its execution.

Select one:
a. True 

b. False

Question 21
Correct

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

A try-finally block is not possible without catch block.

Select one:
a. True

b. False 

Question 23
Correct

Mark 1.00 out of 1.00

An exception in the finally block, behaves exactly like any other exception.

Select one:
a. True 

b. False

Question 24
Correct

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

It is a fully functioning window with its title and icons.

Select one:
a. Panel

b. Dialog

c. Frame 

d. Container classes
Question 29

Correct

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

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

c. Java Layout Manager

d. Java GridBagLayout

◄ Midterm Lab Exam

Jump to...

Final Lab Exam ►

You might also like