MCQ Practice Single Best Answer Topic: ICSE Computer Application - Class X - 2025 SPECIMEN QUESTION PAPER

Q The method to convert a lowercase character to uppercase is:

Question ID
#24267
Subchapter
ICSE Computer Application - Class X - 2025 SPECIMEN QUESTION PAPER
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A String.toUpperCase()
  • B Character.isUppercase (char)
  • C Character.toUpperCase(char)
  • D toUpperCase()
Correct Answer: 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

Share this MCQ with your friends or study group.