MCQ Single Best Answer Easy

QWhich of the following is a valid java keyword?

ID: #24258 ICSE Computer Application - Class X - 2025 SPECIMEN QUESTION PAPER 45 views
Question Info
#24258Q ID
EasyDifficulty
ICSE Computer Application - Class X - 2025 SPECIMEN QUESTION PAPERTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A If
  • B BOOLEAN
  • C static
  • D Switch
Correct Answer: Option C

Explanation

Java keyword rules:

  • Java keywords are case-sensitive.

  • They must be written in lowercase only.


Options:

(a) If → ❌ Invalid (Java keyword is lowercase if)
(b) BOOLEAN → ❌ Invalid (Java keyword is lowercase boolean)
(c) static → ✅ Valid keyword (used to declare class-level variables/methods)
(d) Switch → ❌ Invalid (Java keyword is lowercase switch)


Answer: (c) static

Share This Question

Challenge a friend or share with your study group.