FC0-U71 · Question #44
Which of the following could be a letter, number, or symbol?
The correct answer is C. Char. A Char (character) data type stores a single character, which can be a letter (a–z, A–Z), a digit (0–9), or a symbol (!@#$, etc.). A String is a sequence of multiple characters. A Boolean holds only true or false values. An Integer holds whole numbers only, with no support for le
Question
Which of the following could be a letter, number, or symbol?
Options
- AString
- BBoolean
- CChar
- DInteger
How the community answered
(21 responses)- B5% (1)
- C90% (19)
- D5% (1)
Explanation
A Char (character) data type stores a single character, which can be a letter (a–z, A–Z), a digit (0–9), or a symbol (!@#$, etc.). A String is a sequence of multiple characters. A Boolean holds only true or false values. An Integer holds whole numbers only, with no support for letters or symbols. Char is the only data type that explicitly represents a single letter, number, or symbol.
Topics
Community Discussion
No community discussion yet for this question.