Threads and Processes

Threads and Processes

University

18 Qs

quiz-placeholder

Similar activities

L73_118 Prep for Test

L73_118 Prep for Test

12th Grade - University

20 Qs

Pengantar Teknologi Informasi 8

Pengantar Teknologi Informasi 8

University

17 Qs

NFA, DFA Definition

NFA, DFA Definition

University

15 Qs

12AIT - All About W3C <3

12AIT - All About W3C <3

10th Grade - University

18 Qs

Mid Semester Simulasi Digital

Mid Semester Simulasi Digital

12th Grade - University

20 Qs

OPERATING SYSTEMS UNIT 1 QUIZ

OPERATING SYSTEMS UNIT 1 QUIZ

University

20 Qs

POO_BasicoyJava

POO_BasicoyJava

University

20 Qs

DCN5511: Chapter 5 - 7

DCN5511: Chapter 5 - 7

University

15 Qs

Threads and Processes

Threads and Processes

Assessment

Quiz

Computers

University

Hard

Created by

Thomas Martinez

FREE Resource

AI

Enhance your content in a minute

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

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q) In java multi-threading, a thread can be created by

Extending Thread class

Implementing Runnable interface

Using both

None

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q) Which method is called internally by Thread start() method?

execute()

run()

launch()

main()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q) What is maximum thread priority in Java

10

12

5

8

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q) Which method must be implemented by a Java thread?

run()

execute()

start()

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q) Number of threads in below java program is

public class ThreadExtended extends Thread {


public void run() {

System.out.println("\nThread is running now\n");

}


public static void main(String[] args) {


ThreadExtended threadE = new ThreadExtended();


threadE.start();

}

}

0

1

2

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q) Execution of a java thread begins on which method call?

Start ()

Run ()

Execute ()

Launch ()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q) How many ways a thread can be created in Java multithreading?

1

2

3

4

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?