Chapter 2 Variable and Operators MCQs 10 min Score: 0 Attempted: 0/10 Subscribe 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.Show All Answers 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 aboveShow All Answers 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.Show All Answers 4. . Which of following cannot be used as variable name in Java programming language? (A) Keywords (B) literal (C) Identifier (D) Identifier and KeywordsShow All Answers 5. . Which is the invalid variable name? (A) tenthTeam (B) TenthTeam (C) None of Above (D) 10thTeamShow All Answers 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 aboveShow All Answers 7. . Which is the valid variable name? (A) _5thTeam (B) &5thteam (C) 5thTeam (D) None of AboveShow All Answers 8. . Which are the invalid variable names? (A) 1stLevel (B) first Level (C) *firstLevel (D) All of AboveShow All Answers 9. . Which are the valid variable names? (A) All of Above (B) _1stLevel (C) £1stLevel (D) $1stLevelShow All Answers 10. . What is the default size of Boolean datatype? (A) 2 bytes (B) 4 bytes (C) 2 bits (D) 1 bitShow All Answers