1. . Where to declare local variables?
(A) It declares inside the class and outside of method.
(B) It declares inside the class with static prefix and outside of method.
(C) None of the above
(D) It declares inside the method.
2. . Where to declare instance variables?
(A) It declares inside the class with static prefix and outside of method.
(B) It declares inside the class and outside of method.
(C) It declares inside the method.
(D) None of the above
3. . Where to declare class variables?
(A) It declares inside the class and outside of method.
(B) None of the above
(C) It declares inside the method.
(D) It declares inside the class with static prefix and outside of method.
4. . Which of following cannot be used as variable name in Java programming language?
(A) Keywords
(B) literal
(C) Identifier
(D) Identifier and Keywords
5. . Which is the invalid variable name?
(A) tenthTeam
(B) TenthTeam
(C) None of Above
(D) 10thTeam
6. . A variable name should not begin with:
(A) A number
(B) Special characters but underscore and dollar sign
(C) None of the above
(D) All of above
7. . Which is the valid variable name?
(A) _5thTeam
(B) &5thteam
(C) 5thTeam
(D) None of Above
8. . Which are the invalid variable names?
(A) 1stLevel
(B) first Level
(C) *firstLevel
(D) All of Above
9. . Which are the valid variable names?
(A) All of Above
(B) _1stLevel
(C) £1stLevel
(D) $1stLevel
10. . What is the default size of Boolean datatype?
(A) 2 bytes
(B) 4 bytes
(C) 2 bits
(D) 1 bit