C Programming

CONDITIONAL (SELECTION) STATEMENTS THEORY QUESTIONS

1

(a)

What are conditional statements?

(b)

State the names of the following comparators:

(i)

==

(ii)

!=

(iii)

<

(iv)

>

(v)

<=

(vi)

>=

2

(a)

What happens when the break in a switch statement is executed?

(b)

What happens when the break in a case is omitted?

(c)

What is the purpose of the default case in a switch statement?