Python Threads

Python Threads

University

16 Qs

quiz-placeholder

Similar activities

Threads and Processes

Threads and Processes

University

18 Qs

Threads in C# Quiz

Threads in C# Quiz

University

12 Qs

OPESSYS: Module 3 Quiz Game

OPESSYS: Module 3 Quiz Game

University

11 Qs

Multithreading

Multithreading

University

20 Qs

oops using java quiz

oops using java quiz

University

15 Qs

OS quiz

OS quiz

University

20 Qs

Java Multithreading_Wrapperclass

Java Multithreading_Wrapperclass

University

15 Qs

MultiThreading Quiz

MultiThreading Quiz

University

15 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?