FINALS Flashcards
is a relational boolean expression that determines when the loop will exit
condition
executes a block of statements as long as the specified condition is True. It tests the
condition at the end of the loop which gives one output if the condition returns False.
Do while loop
In using while loop, you don’t know many times you’ll need to re prompt the user if they type bad data.
True or False?
True
is use to evaluate if the expression is true, if true, statements will be executed, if false,
statements will not be executed.
if Statement
Iterative / Repetitive statements allow a set of instructions to be executed or performed several times until
certain conditions are met.
True or False
True
is used to terminate the statement sequence associated with each case statement.
Break Statement
executes a block of statements as long as the specified condition is True. It tests the
condition at the beginning of the loop, returns no output if the condition is false.
While loop
is executed if none of the case constant match with the input/given value.
Default Statement
evaluates if a condition is either true or false. If the condition is true, statements will be
executed, else statement will be executed if the condition is false.
If else Statement
if statement is within another if statement
Nested if
A do while will always execute statements contained in the loop at least once.
True or False?
True
The initialization expression initializes the loop and it is executed only once, as the loop begins.
True or False?
True
The while loop continually executes a block of statements while a particular condition is false.
True or False
False
loop statements with in another loop statements
Nested for loop
Operator Precedence Review
- ( )
- !, unary +, unary –
- *, /, %
- Binary +, binary –
- <, <=, >, >=
- = =, !=
- &&
- ||