
Online Quiz on Unit-2

Quiz
•
Computers
•
University
•
Medium
Rahul Badgujar
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct life cycle of a thread in Java?
New → Running → Blocked → Dead
New → Ready → Running → Blocked → Dead
New → Ready → Running → Waiting → Dead
New → Running → Waiting → Blocked → Dead
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following methods is used to create a thread in Java?
Thread()
run()
start()
execute()
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which method is used to pause the execution of the current thread for a specified amount of time in Java?
wait()
sleep()
join()
yield()
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will happen if the thread is in the 'blocked' state in Java?
It is currently executing.
It is waiting to acquire a lock or resource.
It is paused temporarily.
It has been terminated.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which interface must be implemented to create a thread in Java using the 'Runnable' approach?
Thread
Runnable
Process
Callable
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the default priority of a thread in Java?
1
5
10
100
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following methods is used to set the priority of a thread in Java?
setPriority()
setThreadPriority()
setPriorityLevel()
priority()
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
JAVA11

Quiz
•
University
11 questions
OPESSYS: Module 3 Quiz Game

Quiz
•
University
14 questions
Java Multithreading Quiz

Quiz
•
University
8 questions
Thread class, Lifecycle

Quiz
•
University
8 questions
JAVA Threads Quiz

Quiz
•
University
8 questions
Prog2 tut9 - Threads

Quiz
•
University
15 questions
Unit-III-Java -Thread 2

Quiz
•
University
10 questions
Ch08-Deadlock

Quiz
•
University
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade