ExamGecko
Question list
Search
Search

List of questions

Search

Question 127 - DA0-001 discussion

Report
Export

Which of the following is the correct data type for text?

A.
Boolean
Answers
A.
Boolean
B.
String
Answers
B.
String
C.
Integer
Answers
C.
Integer
D.
Float
Answers
D.
Float
Suggested answer: B

Explanation:

The correct data type for text is string. A string is a data type that represents a sequence of characters, such as letters, numbers, symbols, or spaces. A string can be enclosed by single quotes (' ') or double quotes (" ") in most programming languages. For example, 'Hello', "World", and "123" are all strings. The other options are not data types for text, but for other kinds of values. A boolean is a data type that represents a logical value, either true or false. An integer is a data type that represents a whole number, such as 1, 0, or -5. A float is a data type that represents a number with a fractional part, such as 3.14, 0.5, or -2.7. Reference: Data Types - W3Schools

asked 02/10/2024
Corey Workman
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first