Prepare for the A Level Computer Science OCR Exam with engaging quizzes, detailed explanations, and effective study tips. Maximize your readiness and boost your confidence for exam day!

Practice this question and more.


Which programming type is characterized by storing logical values?

  1. Integer

  2. Boolean

  3. Real/floating point

  4. Character

The correct answer is: Boolean

The programming type characterized by storing logical values is Boolean. Boolean data types are specifically designed to handle truth values, namely true and false. This is crucial in programming and computer science for decision-making processes, where conditions often result in binary outcomes that guide the flow of control in algorithms and programs. In contrast, other options have different purposes: integer types are used to store whole numbers, real or floating-point types handle decimal numbers to represent fractional values, and character types are utilized for storing single characters or strings of text. Therefore, when it comes to managing and representing logical conditions, the Boolean type is the most suitable and relevant choice.