MCQ Single Best Answer Easy

QThe method to convert a lowercase character to uppercase is:

ID: #24267 ICSE Computer Application - Class X - 2025 SPECIMEN QUESTION PAPER 39 views
Question Info
#24267Q 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 String.toUpperCase()
  • B Character.isUppercase (char)
  • C Character.toUpperCase(char)
  • D toUpperCase()
Correct Answer: Option C

Explanation

We want to convert a lowercase character to uppercase.

  • (a) String.toUpperCase() → This converts an entire string to uppercase, not a single char.

  • (b) Character.isUpperCase(char) → This checks if a character is uppercase; it does not convert it.

  • (c) Character.toUpperCase(char) → ✅ This converts a single character to uppercase.

  • (d) toUpperCase() → This is incomplete; we need the class or object it applies to.

Answer: (c) Character.toUpperCase(char)

Share This Question

Challenge a friend or share with your study group.