Python Threads

Python Threads

University

16 Qs

quiz-placeholder

Similar activities

Unit III - Multi

Unit III - Multi

University

13 Qs

TALENT-NEXT-JAVA-QUIZ1

TALENT-NEXT-JAVA-QUIZ1

University

20 Qs

Tm103

Tm103

University

18 Qs

Unit-III-Thread-1

Unit-III-Thread-1

University

13 Qs

CIS 101 Week 3

CIS 101 Week 3

University

19 Qs

GIOS P2L4 - Part 2

GIOS P2L4 - Part 2

University

15 Qs

Quiz PBO SIA

Quiz PBO SIA

University

20 Qs

Cloud computing Quiz 1

Cloud computing Quiz 1

University

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