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
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
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 singlechar. -
(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)
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic