Boolean variable: A variable of type boolean that stores true or false and can be used directly as a condition.
How to apply it: Avoid writing if (flag == true); simply write if (flag).
Course: AP Computer Science A · Unit: Boolean Expressions and if Statements
Practice questions about Boolean variable on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.