ExamGecko
Question list
Search
Search

List of questions

Search

Question 16 - 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:

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

asked 02/10/2024
Michael Encarnado
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first