| | | | MCQ Tutorial - JAVA->Multi Threading | | | | 1.) What is the name of the method used to start a thread execution?
| | Options are: | | A.) resume();
| | B.) run();
| | C.) start();
| | D.) init();
| | Correct Option: C | | | | | | | 2.) What is multithreaded programming? | | Options are: | | A.) It is a process in which two or more parts of same process run simultaneously
| | B.) It is a process in which a single process can access information from many sources
| | C.) It is a process in which two different processes run simultaneously
| | D.) It is a process in which many different process are able to access same information
| | Correct Option: A | | | | | | | 3.) Which two are valid constructors for Thread?
a.) Thread(Runnable r, String name) b.) Thread() c.) Thread(int priority) d.) Thread(Runnable r, ThreadGroup g) e.) Thread(Runnable r, int priority)
| | Options are: | | A.) d & e
| | B.) a & c
| | C.) a & b
| | D.) b & c
| | Correct Option: C | | | | | | | 4.) Which of these are types of multitasking? | | Options are: | | A.) Process and Thread based
| | B.) Process based
| | C.) Process or Thread based
| | D.) Thread based
| | Correct Option: A | | | | | | | 5.) Which of these packages contain all the Java’s built in exceptions? | | Options are: | | A.) java.io
| | B.) java.lang
| | C.) java.net
| | D.) java.util
| | Correct Option: B | | | | | | | | | | | |