nerdexam
CompTIA

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.

Software Development

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)
  • A
    5% (1)
  • C
    90% (19)
  • D
    5% (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.

A3.1415927

3.1415927 is a decimal number and would typically be stored as a floating-point data type, such as float or double.

Bx

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.

CCatCorrect

"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.

D42

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

#data types#string data type#programming concepts

Community Discussion

No community discussion yet for this question.

Full FC0-U61 Practice