COMP SELECTION STATEMENT Flashcards

1
Q

If (expression)
{
Statement 1;
Statement 2;
:
Statement 3;
}

A

One Way Selection Statement

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

{
Statement 1;
Statement 2;
Statement 3;
}

A

Compound Selection Statement

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

If (expression)
Statement1;
Else
Statement2;

A

Two Way Selection Statement

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

f the value is true, the statement 1 is executed, If false, statement 2 is executed

A

Two Way Selection Statement

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

A collection of individual program statements which are separated by semicolons that have been grouped together in a block enclosed with braces {}.

A

Compound Selection Statement

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

If the value of the expression is true, the statement is executed, If false, the statement is not executed and the computer goes on the next statement in the program.

A

One Way Selection Statement

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