Booleans
What is a Boolean?
A boolean is a data type with either a true or false value
Booleans and Binary
Both use 1 and 0 Booleans are only one bit Binary can be any number of bits to make any value
Must knows
only “true” or “false”
the AP exam will give a reference sheet
=
<
= <=
Logical Operators
AND OR NOT
Conditionals
Selection
Selection
What CollegeBoard calls conditionals
Algorithm
A finite set of instructions that acccomplish a specific task
Conditional Statements
“if” statements or “if else” statements, which have two outcomes. Conditional statements only have one.
Else will only execute if “if” is false.
Nested Conditionals
Conditionals inside conditionals for more outcomes
if etc: if etc2: whatever else: something something else: some other thing