Which term is used for a data value that is either true or false?

Study for the IGCSE Algorithms and Pseudocode exam to demonstrate mastery of computing foundations. Enhance learning with quizzes, in-depth explanations, and custom study plans. Begin your journey to success now!

Multiple Choice

Which term is used for a data value that is either true or false?

Explanation:
In programming, values that can be true or false are stored as a Boolean. A Boolean is a data type that has exactly two possibilities: true or false. This makes it ideal for controlling the flow of a program—tests in if statements, while loops, and in boolean logic with operators like AND, OR, and NOT. The other terms describe different things: a string is text, a sequence is an ordered collection of items, and totalling is an operation, not a data type. So the term for a data value that is either true or false is Boolean.

In programming, values that can be true or false are stored as a Boolean. A Boolean is a data type that has exactly two possibilities: true or false. This makes it ideal for controlling the flow of a program—tests in if statements, while loops, and in boolean logic with operators like AND, OR, and NOT. The other terms describe different things: a string is text, a sequence is an ordered collection of items, and totalling is an operation, not a data type. So the term for a data value that is either true or false is Boolean.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy