Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
25 Cards in this Set
- Front
- Back
the order in which statements are executed.
|
Flow of control
|
|
flow of control- the program forms what
|
a line
|
|
chooses between possible actions
|
branching statement
|
|
branching statment- the program forms what
|
a tree (with multiple branches)
|
|
repeats a sequence of steps
|
loop statement
|
|
in a loop statement, the steps are repeated until what happens
|
a stopping condition occurs, at which point, the program “breaks out of the loop”
|
|
a primitive type with two values: true and false
|
booloean
|
|
A boolean variable can be given the value of a Boolean expression by using what
|
using an assignment operator
boolean isPositive = (number > 0); |
|
Boolean expressions are used in what that does what
|
branching statements that chooses between two possible actions
|
|
if-else statement
enclosed in {..} |
compound statement/block
treated as a unit (a big statement) |
|
Branching statements cause the flow of control to do what
|
split into two or more possible lines of execution
|
|
If the block to be executed contains only a single statement,
|
the braces are optional
|
|
equal to
|
==
|
|
not equal to
|
!=
|
|
greater than
|
>
|
|
greater or equal to
|
>=
|
|
less than
|
<
|
|
less than or equal to
|
<=
|
|
AND
|
expression 1 && expression 2
|
|
OR
|
exp 1 || exp 2
|
|
NOT
|
!Expression
|
|
and- The larger expression evaluates to true only if what
|
both of the smaller expressions evaluate to true.
|
|
OR- The larger expression evaluates to true if what
|
if either one or both of the smaller expressions evaluate to true
|
|
|| is called what- which means what
|
“inclusive-or”
The expression is true if both smaller expressions are true |
|
^ is called what and means what
|
exclusive-or
It is true if exactly one of the smaller expressions is true |