A single value of either TRUE or FALSE is called a

Prepare for the CodeHS AP Computer Science Principles Exam with multiple choice questions, detailed explanations, and helpful hints. Boost your confidence and get ready for your exam!

Multiple Choice

A single value of either TRUE or FALSE is called a

Explanation:
This question tests understanding of truth-valued data in programming. A value that can be only true or false is a boolean. Booleans are what you get from evaluating conditions, and they drive decisions in control flow—for example, a condition in an if statement yields true or false to decide which path to take. They are distinct from numbers (which are integers or decimals) and strings (which are text). So the boolean type is specifically for truth values like true and false, which is why it’s the correct description.

This question tests understanding of truth-valued data in programming. A value that can be only true or false is a boolean. Booleans are what you get from evaluating conditions, and they drive decisions in control flow—for example, a condition in an if statement yields true or false to decide which path to take. They are distinct from numbers (which are integers or decimals) and strings (which are text). So the boolean type is specifically for truth values like true and false, which is why it’s the correct description.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy