A Level Computer Science OCR Practice Exam

Question: 1 / 400

What kind of values does a Boolean data type store?

Decimal and fraction values

Logical operators like TRUE and FALSE

The Boolean data type is specifically designed to store logical values, which are primarily TRUE and FALSE. These values are used extensively in programming for decision-making processes and control flow, such as in conditional statements or loops. The precise nature of the Boolean type ensures that it represents two states that help in evaluating conditions, making it foundational in computer science.

The other options refer to data types that do not encapsulate the properties of Boolean. For instance, decimal and fraction values pertain to numerical data types, while integers and characters belong to whole number and character data types, respectively. Strings and symbols refer to sequence types for text and individual characters, which also do not align with the binary logical nature of Boolean values.

Get further explanation with Examzify DeepDiveBeta

Integers and characters

Strings and symbols

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy