S3 ICT: Python Programming Basics (Paper 2 (intermediate))
- 2026-11-14
Tutor Prep Guide · Variables and assignment, arithmetic with integer division and remainder, converting input strings, range boundaries, for and while loops, conditionals, dry runs and common errors
S3 ICT: Python Programming Basics (Paper 2 (intermediate))
Paper 2 (intermediate): ten questions on Python programming basics, with answers and notes.
Direct answers Level: S3 ICT; format: variables, arithmetic, type conversion, range boundaries, loops and conditionals.
01 Paper details (check answers afterwards)
| Item | Detail |
|---|---|
| Questions | 10 |
| Suggested time | 20 |
| Difficulty mix | Foundation 3 · Intermediate 3 · Challenge 3 · Error redo 1 |
| Chapter | Chapter: S3 ICT: Python Programming Basics |
| Level | S3 |
02 Questions (10 items)
- FoundationWhat does print(int(“7”) + int(“5”)) output?
- FoundationFor a circle of radius 3 cm the program prints round(3.14 * 3 ** 2, 2). What is the output in cm²?
- FoundationWith x = 17, what do print(x // 5) and print(x % 5) output?
- IntermediateHow many lines does for i in range(1, 5): print(i) print?
- IntermediateStarting with total = 0, a for loop adds every number from 1 to 10. What does print(total) output?
- IntermediateWith word = “Python”, what does print(word[-1]) output?
- ChallengeWhat is the output of print(len(“abc” * 3))?
- ChallengeFor 25 degrees Celsius the program prints 9 / 5 * 25 + 32. What is the output?
- ChallengeWith score = 45 the program runs if score >= 50: print(“pass”) else: print(“fail”). What is printed?
- Error redoError clinic: a student believes range(1, 6) counts up to 6. What is the actual last number?
03 Answers and one-line notes
| # | Answer | One-line note |
|---|---|---|
| 1 | 12 | Both strings are converted to the integers 7 and 5, and their sum is 12. |
| 2 | 28.26 | Three squared is 9, times 3.14 gives 28.26, and rounding to two decimals leaves it unchanged. |
| 3 | 3 and 2 | 17 divided by 5 gives quotient 3 and remainder 2, so integer division is 3 and the remainder is 2. |
| 4 | 4 lines | range excludes the stop value, so only 1, 2, 3 and 4 are produced. |
| 5 | 55 | The sum from 1 to 10 is 55, which can be checked with n times n plus 1 over 2. |
| 6 | n | A negative index counts from the end, so -1 is the last character, n. |
| 7 | 9 | The string repeats three times to give abcabcabc, which has nine characters. |
| 8 | 77.0 | Nine over five is 1.8, times 25 gives 45, plus 32 is 77, and the single slash makes it a float. |
| 9 | fail | The condition is false because 45 is below 50, so the else branch runs. |
| 10 | 5 | range stops one before the end value, so range(1, 7) is needed to include 6. |
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.
Write down the value of every variable line by line before stating the output. Remember input returns a string, so convert it with int before adding.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.
© TutorZone · www.tutorzone.com.hk · For personal study and teaching use only.



