Question:

........... data type is used to represent the truth value of an expression.

Show Hint

In programming, Boolean values are used in logical expressions and conditions to evaluate true or false.
Updated On: Jan 9, 2026
  • Boolean
  • float
  • integer
  • complex
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Step 1: Understanding the question.
The question is asking about the data type used to represent truth values. In programming, especially in Python, the Boolean data type is used to represent truth values, typically either True or False.
Step 2: Analyzing the options.
(A) Boolean: Correct — Boolean is used to represent truth values like True and False.
(B) float: This is incorrect. A float is used for representing decimal numbers.
(C) integer: This is incorrect. Integers represent whole numbers, not truth values.
(D) complex: This is incorrect. Complex data types are used to represent numbers with both real and imaginary parts.
Step 3: Conclusion.
The correct answer is (A) Boolean, as it is the data type used to represent the truth value of an expression.
Was this answer helpful?
0
0