FC0-U61 · Question #508
Which of the following data is MOST likely to be stored as a string?
The correct answer is C. Cat. The word "Cat" is a sequence of characters, making it the most likely data to be stored as a string data type.
Question
Which of the following data is MOST likely to be stored as a string?
Options
- A3.1415927
- Bx
- CCat
- D42
How the community answered
(21 responses)- A5% (1)
- C90% (19)
- D5% (1)
Why each option
The word "Cat" is a sequence of characters, making it the most likely data to be stored as a string data type.
3.1415927 is a decimal number and would typically be stored as a floating-point data type, such as float or double.
x is a single character, which could be stored as a char data type, although it can also be represented as a string of length one.
"Cat" is a sequence of multiple alphanumeric characters, which is the fundamental definition of a string data type in programming, typically used to represent text.
42 is an integer, and would typically be stored as an integer data type, such as int.
Concept tested: Data types - string
Source: https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/types/strings
Topics
Community Discussion
No community discussion yet for this question.