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
20 questions
IPC

Quiz
•
University
21 questions
Sistemas Operacionais

Quiz
•
University
18 questions
P2L2 - part 1

Quiz
•
University
20 questions
P2L2 - part 3

Quiz
•
University
12 questions
Intro to Scratch 2

Quiz
•
KG - University
20 questions
Multithreading in java

Quiz
•
University
15 questions
Teste Inicial PSD

Quiz
•
University
20 questions
Multi Threading 4

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University