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

Which of the following is the correct data type for text?
A . Boolean
B . String
C . Integer
D . Float

Answer: B

Explanation:

A string is a data type that represents a sequence of characters, such as text, symbols, numbers, or punctuation marks. Strings are enclosed in quotation marks, such as “Hello”, “123”, or “!@#”. Strings can be manipulated, concatenated, sliced, indexed, formatted, and searched using various methods and functions. A string is different from other data types, such as boolean, integer, or float, which represent logical values (true or false), whole numbers, or decimal numbers respectively. Therefore, the correct answer is B.

Reference: What is a String? | Definition and Examples, Python String Methods

Latest DA0-001 Dumps Valid Version with 180 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments