Prepare for the A Level Computer Science OCR Exam with engaging quiz questions and interactive flashcards. Get ready to excel in your exam with comprehensive study materials designed to bolster your knowledge and confidence.

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What kind of values does a Boolean data type store?

  1. Decimal and fraction values

  2. Logical operators like TRUE and FALSE

  3. Integers and characters

  4. Strings and symbols

The correct answer is: 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.