Thread 2

Thread 2

University

7 Qs

quiz-placeholder

Similar activities

Python Unit -6 Tkinter GUI

Python Unit -6 Tkinter GUI

University

10 Qs

Cloud Storage

Cloud Storage

8th Grade - University

10 Qs

HTTP - P2

HTTP - P2

University

10 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

CBA Excel 1

CBA Excel 1

University

10 Qs

Linked List 2

Linked List 2

University

10 Qs

Ethernet Frame

Ethernet Frame

9th Grade - University

9 Qs

Information Security Principles

Information Security Principles

University

10 Qs

Thread 2

Thread 2

Assessment

Quiz

Computers

University

Hard

Created by

Jeevitha P

Used 17+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What method in thread class do you call to make the current thread cease executing for a specified amount of time?

sleep()

pause()

stop()

wait()

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How many threads does a process contains?

1

2

multiple

none

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of these is not a thread state?

new

runnable

sleep

terminated

4.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which statements is/are correct

On calling Thread start () method a new thread get created.

Thread start () method call run () method internally

Thread run () method can also be called directly to create thread.

All correct

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which thread will be executed first if two threads have same priority

They will fall in starvation and none will be executed.

Both will be executed simultaneously

It depends upon operating system

They will be executed on first come first serve basis

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which method is used to create a daemon thread?

setDaemon(boolean value)

setThread(boolean value)

createDaemon(boolean value)

makeDeamon(boolean value)

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is difference between starting thread with run() and start() method?

There is no difference

when you call start() method, main thread internally calls run() to start the newly created thread.

run() calls start() method internally

None of the above