
thread
Authored by Zuraihah Ngadengon
Science, Computers
University
Used 39+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is multithreaded programming?
It’s a process in which two different processes run simultaneously
It’s a process in which two or more parts of same process run simultaneously
Its a process in which many different process are able to access same information
Its a process in which a single process can access information from many sources
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of these statements is incorrect?
By multithreading CPU’s idle time is minimized, and we can take maximum use of it
By multitasking CPU’s idle time is minimized, and we can take maximum use of it
Two thread in Java can have same priority
A thread can exist only in two states, running and blocked
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of this class is used to make a thread?
String
System
Thread
Runnable
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of this interface is implemented by Thread class?
Runnable
Connections
Set
MapConnections
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of this method of Thread class is used to suspend a thread for a period of time?
sleep()
terminate()
suspend()
stop()
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of this method is used to begin the execution of a thread?
run()
start()
runThread()
startThread()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Complete the program code below that is suitable to start a thread.
class X implements Runnable
{
public static void main(String args[])
{
/* Missing code? */
}
public void run() {}
}
Thread t = new Thread(X);
X x1 = new X();
Thread t = new Thread(x1);
t.start();
Thread t = new Thread(X);
t.start();
Thread t = new Thread();
x.run();
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
10 questions
Java Quiz 1
Quiz
•
University
13 questions
Guess the Video Game Pets 1
Quiz
•
KG - Professional Dev...
10 questions
Troubleshooting and Computer Maintenance Quiz
Quiz
•
University
10 questions
Vocational English for Game Design
Quiz
•
University
13 questions
Paint գրաֆիկական խմբագրիչ
Quiz
•
University
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
10 questions
OPPO Jan Virtual
Quiz
•
University
10 questions
Energy Transfer Quiz
Quiz
•
4th Grade - 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