Search Header Logo

Quiz 3: Multithreading

Authored by MADHURI KETHARI

Professional Development

Professional Development

Used 3+ times

Quiz 3: Multithreading
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec โ€ข 1 pt

  1. What is true about threads?

  1. Threads consumes CPU in best possible manner

  1. Threads enables multi processing.

  1. Multi threading reduces idle time of CPU

  1. All

2.

MULTIPLE CHOICE QUESTION

30 sec โ€ข 1 pt

  1. A thread can acquire a lock by using which reserved keyword?


  1. volatile

  1. synchronized

  1. locked

none

3.

MULTIPLE CHOICE QUESTION

30 sec โ€ข 1 pt

  1. How many threads can a process contain?


1

2

multiple

none

4.

MULTIPLE CHOICE QUESTION

30 sec โ€ข 1 pt

  1. What is sometimes also called a lightweight process?


  1. Thread

  1. Process

JVM

Method

5.

MULTIPLE CHOICE QUESTION

30 sec โ€ข 1 pt

  1. What are valid points about thread


  1. Thread are subdivision of Process.

  1. One or more Threads runs in the context of process.

  1. Threads can execute any part of process. And same part of process can be executed by multiple Threads.

  1. All

6.

MULTIPLE CHOICE QUESTION

30 sec โ€ข 1 pt

  1. What are valid point about processes


  1. Processes have their own copy of the data segment of the parent process

  1. Threads have direct access to the data segment of its process

  1. Processes have their own address

  1. All of these

7.

MULTIPLE CHOICE QUESTION

30 sec โ€ข 1 pt

  1. Which is thread safe?

  1. StringBuffer

  1. StringBuilder

All

None

Access all questions and much more by creating a free account

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

Already have an account?