Loading

Monday, January 2, 2012

Java Quiz - 3

1. Boolean data types have only Yes or No value.
[A]TRUE
[B]FALSE



2. If the break statement is omitted in switch statement, then execution will continue on into the next case.
[A]TRUE
[B]FALSE



3. A suspended thread can then be resumed allowing it to pick up where it left off.
[A]TRUE
[B]FALSE



4. The Switch statement can have multiple cases without a break statements between them.
[A]TRUE
[B]FALSE



5. Range of char data type in java is 0 to 65,536.
[A]TRUE
[B]FALSE



6. Casting between primitive types allows conversion of one primitive type to another.
[A]TRUE
[B]FALSE



7. Running threads can be suspended, which temporarily suspends its activity.
[A]TRUE
[B]FALSE



8. A thread's priority is used to decide when to switch from one running thread to the next, this is called as the context switch.
[A]TRUE
[B]FALSE



9. Short data type range is -30,376 to 32768.
[A]TRUE
[B]FALSE



10. There is no Global Variable in Java.
[A]TRUE
[B]FALSE



11. All the methods declared inside an Interface are abstract.
[A]TRUE
[B]FALSE



12. The for statement loop can be infinite.
[A]TRUE
[B]FALSE



13. A thread can be preempted by a higher priority thread.
[A]TRUE
[B]FALSE



14. A thread can voluntarily relinquish control.
[A]TRUE
[B]FALSE



15. Java assigns to each thread a priority that determines how that thread should be treated with respect to the others.
[A]TRUE
[B]FALSE



0 comments: