Which of the following is the correct data type for text?
A.
Boolean
B.
String
C.
Integer
D.
Float
The Answer Is:
B
This question includes an explanation.
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
DA0-001 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 75% Discount on All Products,
Use Coupon: "ac75sure"