/en-tutor-prep-s2-ict-programming-basics-python-variables-loops-practice-3/
/en-tutor-prep-s2-ict-programming-basics-python-variables-loops-practice-3/
General Inquiry: info@TutorZone.com.hk
Office Hours: Monday to Saturday - 9:00 AM to 6:00 PM
WhatsApp Monday to Sunday - 24 hours
Hotline: +852 6828 1809
Instant Support: +852 9061 3106

Paper 3: Multi-step loop problems

Paper 3: Multi-step loop problems

  • 2026-11-21

Paper 3: Multi-step loop problems

Chapter practice with ten items, answers and a one-line note for each, about 25 minutes.

Paper 3 Ten items on this chapter with answers for immediate marking.

01 Paper details (check answers afterwards)

Item Detail
Questions 10
Suggested time 25
Difficulty mix Foundation 4 · Intermediate 2 · Challenge 2 · Error redo 2
Chapter Chapter: Programming basics: variables and loops
Level Challenge

02 Questions (10 items)

  1. FoundationHow many multiples of 3 lie between 1 and 100?
  2. FoundationA for loop adds every number from 1 to 100. What is the total?
  3. FoundationA loop computes the factorial of 5. What is the result?
  4. FoundationA for i in range(3) loop contains for j in range(4). How often does the inner body run?
  5. IntermediateAll even numbers from 1 to 19 are added. What is the total?
  6. Intermediaten is 1234, then n = n // 10 runs. What is n now?
  7. Challengeprice is 250, then price = price * 0.9 runs. What is the value?
  8. ChallengeThree scores are 70, 80 and 90. Using sum and len, what is the mean?
  9. Error redoStarting from a, b = 0, 1, the line a, b = b, a + b runs six times. What is b?
  10. Error redoA counter inside a while loop is never increased. What follows?

03 Answers and one-line notes

# Answer One-line note
1 33 100 divided by 3 and rounded down gives 33.
2 5,050 Pairs of 1 plus 100 give 101, and 50 such pairs make 5,050.
3 120 1 times 2 times 3 times 4 times 5 gives 120.
4 12 times Three outer passes times four inner passes gives 12.
5 90 2 plus 4 up to 18 adds to 90.
6 123 Floor division by 10 removes the last digit.
7 225.0 A ten percent discount multiplies by 0.9, giving 225.0.
8 80.0 The total 240 over three subjects gives 80.0.
9 13 The sequence runs 1, 1, 2, 3, 5, 8 and 13, so b is 13.
10 The condition stays true and the loop never ends The variable used by the condition must be updated inside the body.

04 What to do after marking

  • After marking, redo only the wrong items and write down which step went wrong (formula, unit, or misread number).
  • Repeat the same item two days later; move to the next paper only when both attempts are correct.
  • Parents only need the answer and note columns; there is no need to explain every item.

Want the whole chapter? See all four difficulty papers on the chapter page.Tutor Registration →

Questions and answers are written originally by the TutorZone team and are not taken from any school, publisher or examination authority paper. Every value is checked by computer.

Join as a tutor or coach — academic, music, sports, arts, STEM. Free to register. See how it works →