Alice3-Chapter12 Flashcards

1
Q

A while statement evaluates a conditional expression and if the value is true, the instructions within the code block are performed.

T or F

A

True

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

If a while loop’s condition never becomes false, the cycle is unending and the while is said to be in an infinite loop.

T or F

A

True

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

While loop repetition occurs again and again until the condition becomes false.

T or F

A

True

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

When a while loop’s condition evaluates to false, execution flow exits the loop and skips to the next statement following the while code block.

T or F

A

True

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

A While control structure is similar to an if/else statement where a condition is checked before instructions may or may not be performed. However, an if/else statement executes just once and then the flow of execution continues on to the statement following the if/else code block. In a while loop, the flow of execution returns to the top of the while code block and the condition is checked again. If the condition is still true, the actions in the code block are performed again.

T or F

A

True

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

A while control is considered a _________ structure because it checks the value of a conditional expression.

A

Conditional

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

A _____________ is a procedure that helps another procedure carry out its task.

A

Helper procedure

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

A [a] must have at least one [b] statement. When a return statement is executed, control returns to the code statement that called the function. When [c] returns the value specified by the return statement is used in place of the function call.

A

Function
Return
Control

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

In Alice four built-in input functions are provided to prompt for a Boolean (true/false), String (text string), Double (decimal number), or Integer (whole number) value.

T or F

A

True

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

When an input function is called, the value entered by the user will be returned to the [a]. The returned value must immediately be used or, it may be stored in a [b] for use in a later statement.

A

Calling statement

Variable

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