Make an Impact Ope
HOME Interview Questions MCQs *LAB VIVA CLASS NOTES SEMINAR TOPICS
ONLINE TEST GATE CAT Internship ABOUT US Privacy Policy
Any Skill Sea
naissalt
Atlassian
ssaltA
Make an Impact
Open
Home » Computer Fundamentals Objective Questions » 250+
TOP MCQs on Multithreading and Answers
250+ TOP MCQs on
Multithreading and Answers
naissaltA
ssnaaltiAss
Atlassian
naissaltA
Make an Impact Ope
Make
Make an Impact an
Open
Impact
Atlassian
Computer Fundamentals Multiple Choice Questions on
“Multithreading”.
1. Multithreading is also called as ____________
a) Concurrency
b) Simultaneity
c) Crosscurrent
d) Recurrent
Answer: a
Clarification: Concurrency is often used in place of
Open
multithreading. Multitasking allows multiple threads to run at a
time.
2. Multiprocessing allows single processor to run several
concurrent threads.
a) True
b) False
Answer: a
Clarification: The statement is false. Multitasking allows single
processor to run several concurrent threads.
3. A single sequential flow of control within a program is ________
a) Process
b) Task
c) Thread
d) Structure
Make an Impact Ope
Answer: c
Clarification: A thread is a sequential flow of control within a
program. Single-threaded program can handle one task at any
time.
4. Both client and server release _________ connection after a page
has been transferred.
a) IP
b) TCP
c) Hyperlink
d) Network
Answer: b
Clarification: The answer is TCP. TCP stands for Transmission
Control Protocol. Servers receive requests from clients.
5. Java extension used in threads?
a) java.lang.Thread
b) java.language.Thread
c) java.lang.Threads
d) java.Thread
Answer: a
Clarification: java.lang.Thread is the class that is extended if any
user wants to extend threads.
6. A method that must be overridden while extending threads.
a) run()
b) start()
c) stop()
d) paint()
Answer: a
Clarification: run()method must be overridden (It is similar to
main method of sequential program).
7. An interface that is implemented while using threads.
a) java.lang.Run
b) java.lang.Runnable
Make an Impact Ope
c) java.lang.Thread
d) java.lang.Threads
Answer: b
Clarification: java.lang.Runnable is correct. Any thread class
implements runnable.
8. A thread becomes non runnable when?
a) Its stop method is invoked
b) Its sleep method is invoked
c) Its finish method is invoked
d) Its init method is invoked
Answer: b
Clarification: A thread becomes Not Runnable when one of these
events occurs:
• Its sleep method is invoked.
• The thread calls the wait method to wait for a specific condition
to be satisfied.
• The thread is blocking on I/O.
9. A method used to temporarily release time for other threads.
a) yield()
b) set()
c) release()
d) start()
Make an Impact Ope
Answer: a
Clarification: We can use the yield() method to temporarily
release time for other threads. It is static by default.
10. A method used to force one thread to wait for another thread
to finish.
a) join()
b) connect()
c) combine()
d) concat()
Answer: a
Clarification: The answer is join(). We can use the join() method
to force one thread to wait for another thread to finish.
---- >> Related Posts Of Above Questions :::
------>>[MOST IMPORTANT]<<------
1. 250+ TOP MCQs on Multithreading and Answers
2. 300+ TOP Java Multithreading Interview Questions
and Answers
3. 300+ [LATEST] Java-multithreading Interview
Questions and Answers
4. What are multithreading models? | Operating
Systems LAB VIVA
5. 250+ TOP MCQs on Multithreading and Answers
6. 250+ TOP MCQs on Multithreading Basics and Answers
7. 300+ [LATEST] C++ Multithreading Developer
Interview Questions and Answers
8. 250+ TOP MCQs on Java.lang – ThreadGroup class &
Runnable Interface and Answers
9. 250+ TOP MCQs on User and Kernel Threads