Question Detail

COS 102 6 lecture note; fundamentals of programming Objective Question

Question

According to the Class Test (page 106), a question asks to differentiate between which two control flow statements?
Options
A <code>if</code> and <code>else</code>
B <code>for</code> and <code>while</code>
C <code>break</code> and <code>continue</code>
Correct Answer
D <code>pass</code> and <code>return</code>
Correct Answer

Option C is the correct answer.

Detailed Explanation

Question 4 of the Class Test on page 106 specifically asks: 'Differentiate between break and continue'.

Hint

Look for the question on page 106 that asks for a comparison of two control flow keywords.

Question Info