Take as many assements as you can to improve your validate your skill rating
Total Questions: 8
1. What is multithreaded programming?
Correct Answer is : It’s a process in which two or more parts of same process run simultaneously
2. Which of these are types of multitasking?
Correct Answer is : Process and Thread based
3. Thread priority in Java is?
Correct Answer is : Integer
4. What will happen if two thread of the same priority are called to be processed simultaneously?
Correct Answer is : It is dependent on the operating system
5. Which of these statements is incorrect?
Correct Answer is : A thread can exist only in two states, running and blocked
6. What is the output of this program?
class multithreaded_programing
{
public static void main(String args[])
{
Thread t = Thread.currentThread();
System.out.println(t);
}
}
Correct Answer is : Thread[main,5,main].
7. What is the priority of the thread in output of this program?
class multithreaded_programing
{
public static void main(String args[])
{
Thread t = Thread.currentThread();
System.out.println(t);
}
}
Correct Answer is : 5
8. What is the name of the thread in output of this program?
class multithreaded_programing
{
public static void main(String args[])
{
Thread t = Thread.currentThread();
System.out.println(t);
}
}