Ch.4 Execution Control Flashcards

0
Q

true

A

Logical true

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

false

A

Logical false

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

break

A

A command within the loop module that forces control to the statement following the innermost loop.

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

case

A

A specific value within a switch statement.

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

continue

A

Skips to the end of the innermost to loop but remains inside it.

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

else

A

Within an if statement, begins the codebook executed when the condition is false.

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

elseif

A

Within and if statement, begins a second test when the first condition is false.

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

if

A

Begins a conditional module; the following code block is executed if the logical expression exp is true.

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

input(str)

A

Requests input from the user

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

otherwise

A

Catch all code block at the end of this which statement

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

switch(variable)

A

Begins A code module select specific values of the variable (must be countable)

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

while

A

A code module repeats as long as the logical expression is true.

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

all(a)

A

True if all the values in a, a logical vector, are true

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

and(a, b)

A

True if both a an b are true.

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

any(a)

A

True if any of the values in a, a logical vector, is true.

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

not(a)

A

True if a is false; false if a is true

16
Q

or(a,b)

A

True if either a or b is true