FINALS Flashcards

1
Q

is a relational boolean expression that determines when the loop will exit

A

condition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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.

A

Do while loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

is use to evaluate if the expression is true, if true, statements will be executed, if false,
statements will not be executed.

A

if Statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Iterative / Repetitive statements allow a set of instructions to be executed or performed several times until
certain conditions are met.
True or False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

is used to terminate the statement sequence associated with each case statement.

A

Break Statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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.

A

While loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

is executed if none of the case constant match with the input/given value.

A

Default Statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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.

A

If else Statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

if statement is within another if statement

A

Nested if

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A do while will always execute statements contained in the loop at least once.
True or False?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The initialization expression initializes the loop and it is executed only once, as the loop begins.
True or False?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The while loop continually executes a block of statements while a particular condition is false.
True or False

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

loop statements with in another loop statements

A

Nested for loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Operator Precedence Review

A
  1. ( )
  2. !, unary +, unary –
  3. *, /, %
  4. Binary +, binary –
  5. <, <=, >, >=
  6. = =, !=
  7. &&
  8. ||
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

defines how the loop’s counter will change each time the loop is repeated

A

increment

17
Q

is used to evaluate expressions if there are two or more conditions.

A

if else if

18
Q

is an assignment statement that is used to set the loop’s counter

A

initialization