JAVA Threads Quiz

JAVA Threads Quiz

University

8 Qs

quiz-placeholder

Similar activities

totally not some random shark-related quiz

totally not some random shark-related quiz

University

9 Qs

Thread Priorities

Thread Priorities

University

10 Qs

Session 3

Session 3

University

8 Qs

Quiz on Multithreading

Quiz on Multithreading

University

6 Qs

Online Quiz on Unit-2

Online Quiz on Unit-2

University

10 Qs

Multithreading + java

Multithreading + java

University

10 Qs

Thread 2

Thread 2

University

7 Qs

OS-Multithreading

OS-Multithreading

University

8 Qs

JAVA Threads Quiz

JAVA Threads Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Raju Amireddy

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is mean by Thread?

It is heavy weight process

It is light weight process

It is heavy weight and light weight process

None

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of these method of Thread class is used to find out the priority given to a thread?

get()

ThreadPriority()

getPriority()

getThreadPriority()

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

  1. Which of these is not a Thread state?

  1. New

  1. Runnable

  1. sleep

  1. terminated

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the purpose of the wait() method in Java threads?

To pause the execution of a thread.

To terminate a thread.

To notify other threads to resume execution.

To release the lock held by the thread.

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the maximum number of threads that can be created in a Java program?

There is no fixed limit.

It depends on the amount of available memory.

It depends on the number of CPU cores.

It is limited to 100 threads.

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Thread Lifecycle contain How many states?

1

2

5

6

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

A thread executing in the Java virtual machine is in _ state.

Blocked

Terminated

Waiting

Runnable

8.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

A thread that has exited is in _state.



Waiting

Blocked

Terminated

Runnable