Menu

Objective Type Questions & Answers


Python Programming -Unit-3 Objective Type Questions



1. Which Python library runs a function as thread?

A . None

B . _threading

C . threading

D . thread

Answer


2. How does run() method is invoked?

A . By Thread.run()

B . By Thread.start()

C . By Thread.create()

D . None

Answer


3. How to terminate a blocking thread?

A . thread.stop() & thread.wait()

B . thread.stop()

C . thread.terminate()

D . None

Answer


4. Which method is used to identify a thread?

A . getThread()

B . None

C . getName()

D . get_ident()

Answer


5. What are the libraries in Python that support threads?

A . _threading

B . th

C . None

D . thread

Answer


6. How does global value mutation used for thread-safety?

A . via GIL (Global Interpreter Lock)

B . via Locking

C . via Mutex

D . None

Answer


7. What is the method to retrieve the list of all active threads?

A . getList()

B . getThreads()

C . enumerate()

D . threads()

Answer


8. Which thread method is used to wait until it terminates?

A . waitforthread()

B . join()

C . None

D . wait()

Answer


9. Multithreading is also called as ____________

A . Concurrency

B . Simultaneity

C . Crosscurrent

D . Recurrent

Answer


10. A single sequential flow of control within a program is ________

A . Process

B . Task

C . Thread

D . Structure

Answer


11. A method used to force one thread to wait for another thread to finish.

A . join()

B . connect()

C . combine()

D . concat()

Answer




Relevant Materials :

Python Programming -Unit-1 Objective Type Questions - [ Python Programming ]

Python Programming -Unit-2 Objective Type Questions - [ Python Programming ]

Python Programming -Unit-3 Objective Type Questions - [ Python Programming ]

Python Programming -Unit-4 Objective Type Questions - [ Python Programming ]

Python Programming -Unit-5 Objective Type Questions - [ Python Programming ]


Similar Materials :

R - Programming MCQs - Unit-1 - [ R-Programming ]

R - Programming MCQs - Unit-2 - [ R-Programming ]

R - Programming MCQs - Unit-3 - [ R-Programming ]

R - Programming MCQs - Unit-4 - [ R-Programming ]

R - Programming MCQs - Unit-5 - [ R-Programming ]

Formal Languages and Automata Theory (FLAT) MCQs - Unit-1 - [ FLAT ]

Formal Languages and Automata Theory (FLAT) MCQs - Unit-2 - [ FLAT ]

Formal Languages and Automata Theory (FLAT) MCQs - Unit-3 - [ FLAT ]

Formal Languages and Automata Theory (FLAT) MCQs - Unit-4 - [ FLAT ]

Formal Languages and Automata Theory (FLAT) MCQs - Unit-5 - [ FLAT ]

PPS MCQs - Unit-1 - [ PPS ]

PPS MCQs - Unit-2 - [ PPS ]

PPS MCQs - Unit-3 - [ PPS ]

PPS MCQs - Unit-4 - [ PPS ]

PPS MCQs - Unit-5 - [ PPS ]

Object Oriented Programming through Java MCQs - Unit-1 - [ OOP_JAVA ]

Object Oriented Programming through Java MCQs - Unit-2 - [ OOP_JAVA ]

Object Oriented Programming through Java MCQs - Unit-3 - [ OOP_JAVA ]

Object Oriented Programming through Java MCQs - Unit-4 - [ OOP_JAVA ]

Object Oriented Programming through Java MCQs - Unit-5 - [ OOP_JAVA ]

Design and Analysis of Algorithms MCQs - Unit-1 - [ DAA ]

Design and Analysis of Algorithms MCQs - Unit-2 - [ DAA ]

Design and Analysis of Algorithms MCQs - Unit-3 - [ DAA ]

Design and Analysis of Algorithms MCQs - Unit-4 - [ DAA ]

Design and Analysis of Algorithms MCQs - Unit-5 - [ DAA ]

Software Engineering MCQs - Unit-1 - [ SE ]

Software Engineering MCQs - Unit-2 - [ SE ]

Software Engineering MCQs - Unit-3 - [ SE ]

Software Engineering MCQs - Unit-4 - [ SE ]

Software Engineering MCQs - Unit-5 - [ SE ]

Data Mining MCQs - Unit-1 - [ DM ]

Data Mining MCQs - Unit-2 - [ DM ]

Data Mining MCQs - Unit-3 - [ DM ]

Data Mining MCQs - Unit-4 - [ DM ]

Data Mining MCQs - Unit-5 - [ DM ]

Computer Organization and Architecture (COA) Objective Question Bank-Unit-1 - [ COA ]

Computer Organization and Architecture (COA) Objective Question Bank-Unit-2 - [ COA ]

Computer Organization and Architecture (COA) Objective Question Bank-Unit-3 - [ COA ]

Computer Organization and Architecture (COA) Objective Question Bank-Unit-4 - [ COA ]

Computer Organization and Architecture (COA) Objective Question Bank-Unit-5 - [ COA ]

Data Structures Objective Type Question Bank-Unit-1 - [ DS ]

Data Structures Objective Type Question Bank-Unit-2 - [ DS ]

Data Structures Objective Type Question Bank-Unit-3 - [ DS ]

Data Structures Objective Type Question Bank-Unit-4 - [ DS ]

Data Structures Objective Type Question Bank-Unit-5 - [ DS ]

Database Management System Objective Type Question Bank-Unit-1 - [ DBMS ]

Database Management System Objective Type Question Bank-Unit-2 - [ DBMS ]

Database Management System Objective Type Question Bank-Unit-3 - [ DBMS ]

Database Management System Objective Type Question Bank-Unit-4 - [ DBMS ]

Database Management System Objective Type Question Bank-Unit-5 - [ DBMS ]