gs gs128 Java Multithreading - Java Multithreading Basics - Quiz No.1
gs gs128 Java Quiz
This quiz belongs to book/course code gs gs128 Java of gs organization. We have 136 quizzes available related to the book/course Java. This quiz has a total of 8 multiple choice questions (MCQs) to prepare and belongs to topic Java Multithreading. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
Question 1: What is multithreaded programming?
It’s a process in which two different processes run simultaneously
It’s a process in which two or more parts of same process run simultaneously
It’s a process in which many different process are able to access same information
It’s a process in which a single process can access information from many sources
Question 2: Which of these are types of multitasking?
Process based
Thread based
Process and Thread based
None of the mentioned
Question 3: Thread priority in Java is?
Integer
Float
double
long
Question 4: What will happen if two thread of the same priority are called to be processed simultaneously?
Anyone will be executed first lexographically
Both of them will be executed simultaneously
None of them will be executed
It is dependent on the operating system
Question 5: Which of these statements is incorrect?
By multithreading CPU idle time is minimized, and we can take maximum use of it
By multitasking CPU idle time is minimized, and we can take maximum use of it
Two thread in Java can have the same priority
A thread can exist only in two states, running and blocked
Question 6: What will be the output of the following Java code?
class multithreaded_programing { public static void main(String args[]) { Thread t = Thread.currentThread(); System.out.println(t); } }
Thread[5,main]
Thread[main,5]
Thread[main,0]
Thread[main,5,main]