Java Quiz - 2
1. Float data type is useful when we need fractional values.
[A]TRUE
[B]FALSE
2. Variable in an interface are implicitly final and static.
[A]TRUE
[B]FALSE
3. The switch statement does not require a break.
[A]TRUE
[B]FALSE
4. In Interface we need not use the keyword abstract for the methods.
[A]TRUE
[B]FALSE
5. Byte can be Cast to Double Value.
[A]TRUE
[B]FALSE
6. Nested if is less efficient then switch statement.
[A]TRUE
[B]FALSE
7. In While loop condition can be any Boolean expression
[A]TRUE
[B]FALSE
8. With java Type Casts are checked at both compile-time and runtime.
[A]TRUE
[B]FALSE
9. Integer can Cast to byte value.
[A]TRUE
[B]FALSE
10. Transient variable is variable that may not be serialized.
[A]TRUE
[B]FALSE
11. By default, all program import the java.lang package.
[A]TRUE
[B]FALSE
12. Do while loop always executes its body at least once, because its conditional expression is at the bottom of the loop.
[A]TRUE
[B]FALSE
13. Boolean values can be cast into any other primitive type.
[A]TRUE
[B]FALSE
14. Casting does not affect the original object or value.
[A]TRUE
[B]FALSE
15. Object oriented programming organizes a program around processes acting on data.
[A]TRUE
[B]FALSE
0 comments:
Post a Comment