
Java Thread and I/O Quiz
Authored by Aswini G
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to create a thread in Java?
Extending the Thread class
Implementing Runnable interface
Both a and b
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method must be overridden when implementing the Runnable interface?
start()
stop()
run()
init()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to start a thread execution?
run()
start()
execute()
initialize()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the synchronized keyword?
To speed up thread execution
To prevent thread execution
To control access to critical sections
To terminate threads
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following are ways to synchronize a block of code?
synchronized method
synchronized statement
synchronized object
Both a and b
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a critical section?
Part of the code where memory is freed
Part of code accessed by multiple threads
A section used only once
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used for inter-thread communication?
notify()
wait()
notifyAll()
All of the above
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
PRE TEST (B) - Product Link & TELEMATICS
Quiz
•
University - Professi...
20 questions
ICT Short Quiz
Quiz
•
University
20 questions
Ôn tập phần 01 (20 câu đầu)
Quiz
•
10th Grade - University
20 questions
ประกอบคอมพิวเตอร์
Quiz
•
University
20 questions
ĐC CNTT_Chương 1
Quiz
•
University
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
20 questions
Mobile Apps PayKu
Quiz
•
1st Grade - Professio...
20 questions
Java Quiz 1
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade