Python Threads

Quiz
•
Computers, Professional Development, Instructional Technology
•
University
•
Medium

Mohamed Ibrahim
Used 9+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python library runs a function as thread?
None
_threading
threading
thread
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does run() method is invoked?
By Thread.run()
By Thread.start()
By Thread.create()
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to terminate a blocking thread?
thread.stop() & thread.wait()
thread.stop()
thread.terminate()
None
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to identify a thread?
getThread()
None
getName()
get_ident()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the libraries in Python that support threads?
_threading
th
None
thread
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does global value mutation used for thread-safety?
via GIL (Global Interpreter Lock)
via Locking
via Mutex
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the method to retrieve the list of all active threads?
getList()
getThreads()
enumerate()
threads()
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
Java thread - MCQ

Quiz
•
University
12 questions
Threads in C# Quiz

Quiz
•
University
16 questions
Operating System Week 5 quiz

Quiz
•
University
20 questions
Final Quiz

Quiz
•
University
20 questions
CSC 110 - Quiz 1

Quiz
•
University
17 questions
QUIZ NO.3

Quiz
•
University
15 questions
Chapter 16 (UNIX II)

Quiz
•
University
20 questions
OS - Assessment 05

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade