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

Prepare for the IGCSE Algorithms and Pseudocode Exam. Study with comprehensive questions covering key algorithms and pseudocode techniques. Access hints and explanations to gear up for your exam success!

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