
Understanding and using iteration questions
Q1. State the three types of iterative construct in most languages.
Q2. When should FOR be used? Give an example.
Q3. What is the key difference between the WHILE <cond> DO loop and the REPEAT UNTIL <cond> loop?
Q4. Why is indentation used in programming?
Q5. Indentation is very important in Python. What happens when you try to run a Python program when the indentation isn't perfect?
Q6. What potential values does any Boolean expression result in?
Q7. Is this TRUE or FALSE: (34 <> 34) OR (14 < 6) ?
Q8. Is this TRUE or FALSE: (20 <> 14) AND (2 < 78) ?
Q9. In Python, which of the three iterative keywords commonly found in traditional languages does it not have?
Q10. Why is this missing?