Program Statements Flashcards

1
Q

Block is formed by placing
more than one statement inside curly braces ({}).

A

Compound statement

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

This is made up of a null expression
followed by a semicolon.

A

Null statement

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

These are also
known as a simple statement.

A

Expression and function call statements

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

Multi-decision branch is for?

A

Switch/case

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

Make decision before branching

A

Conditional branches

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

Single-decision branch

A

if/else

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

This allow the programmer to alter the flow of a program control.

A

Branch statements

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

These branches are direct branches which involve no decision. The goto statement is an example of an unconditional branch.

A

Unconditional branches

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

An ability to repetitively execute a set of statements.

A

Iterative Statement

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

Execute-before-test. The body of the loop is always executed at least once.

A

do-while statement

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

This may be described as
test-before-execute. If the controlling condition results initially to a zero or false value, the body of the loop is never executed.

A

while and for statements

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

similar to break statement, except it does not cause the loop to terminate. Rather it causes the loop to be continued.

A

Continue Statement

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

These are used to interrupt the normal flow of loops and the switch
statement.

A

Break & Continue Statement

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

This statement can skip a line of code

A

Continue Statement

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

This statement interrupts the normal sequential flow of a program, without involving a decision.

A

goto statement

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

This statement causes the flow of the program to branch to the statement immediately following the appropriate label.

A

goto statement

17
Q

This is a name that is formed with the same rules in identifiers and must immediately followed by a colon.

A

Label