M4 Flashcards

1
Q

enables your program to selectively execute other statements, based on some criteria

A

IF STATEMENT

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

performs a different set of statements if the expression is false.

A

else statement

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

is used to conditionally
perform statements based on an integer
expression.

A

switch statement

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

causes the program
flow to exit from the body of the switch
construct.

A

break statement

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

is comparable to

the else part of the if statement.

A

default keyword

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

The statements associated with this
keyword is executed if the value of the
switch variable does not match any of the
case constants.

A

default keyword

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

executes a given statement
or block of statements repeatedly as long as
the value of the expression is true.

A

while loop

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

facilitates evaluation of
condition or expression at the end of the
loop to ensure that the statements are
executed at least once .

A

do-while loop

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

executes a given statement or
a block of statements for a definite number
of times.

A

for loop

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

is for traversing items in a

collection.

A

foreach loop is for traversing items in a

collection.

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

is usually used in place

of a standard for statement.

A

foreach

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

causes the program
flow to exit prematurely from the body of the
loop statement.

A

break statement

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

causes the
program flow to skip over and jump to the
end of the loop body, and then return the
control to the loop control statement.

A

continue statement

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

identifies any valid statement to

which control must be transferred

A

label

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

is a structure that holds multiple

values of the same type.

A

array

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

The length of an array is established when

the array is X (at Y).

A

created

runtime

17
Q

After creation, an array is a X

structure.

A

fixed-length