Python Threads

Python Threads

University

16 Qs

quiz-placeholder

Similar activities

Final Quiz

Final Quiz

University

20 Qs

CSC 110 - Quiz 1

CSC 110 - Quiz 1

University

20 Qs

QUIZ NO.3

QUIZ NO.3

University

17 Qs

Multi Threading 4

Multi Threading 4

University

20 Qs

Multithreading in java

Multithreading in java

University

20 Qs

Threads in C# Quiz

Threads in C# Quiz

University

12 Qs

Thread

Thread

University

20 Qs

Operating System Week 5 quiz

Operating System Week 5 quiz

University

16 Qs

Python Threads

Python Threads

Assessment

Quiz

Computers, Professional Development, Instructional Technology

University

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?