Boolean Expressions and If Statements

studied byStudied by 194 people
5.0(4)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 12

13 Terms

1
if
this is used as a subjective statement, it works hand in hand with conditional statements
New cards
2
conditional statement
used to control the flow of the program, and is based entirely on conditions
New cards
3
flow control
New cards
4
equality operator
(==), checks if something is equal to the other
New cards
5
truth value
the truth value, either true or false, for an expression
New cards
6
compound condition
multiple conditions put together
New cards
7
&&
logical and
New cards
8
||
logical or
New cards
9
!
logical not
New cards
10
==
is equal to
New cards
11
!=
isn’t equal to
New cards
12
trace table
used to easily trace values, and their outputs based on the code
New cards
13
blocking
used to execute more than one statement based on a condition
New cards
robot