S4 ICT: Python Programming Basics (Paper 1 (basics))
- 2026-11-15
S4 ICT: Python Programming Basics (Paper 1 (basics))
Paper 1 (basics): ten Python programming questions with answers and one-line notes.
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: S4 ICT: Python Programming Basics |
| Level | S4 |
02 Questions (10 items)
- FoundationWith a = 7 and b = 3, what does print(a + b) show?
- FoundationWhat do print(15 // 4) and print(15 % 4) output?
- FoundationWhat does print(int(“42”) + 8) output?
- IntermediateWhat do print(“5” + “3”) and print(5 + 3) output?
- IntermediateWith x = 2, then x += 5, then x *= 2, what is the final value of x?
- IntermediateAfter name = input() reads the text 12, what does print(int(name) * 2) output?
- ChallengeWhat are the results of 17 // 5, 17 % 5 and 17 / 5?
- ChallengeWith price = 48 and qty = 3, total = price * qty, what is total * 0.8?
- ChallengeWith n = 365, which three digits do you get from the hundreds, tens and units positions using // and %?
- Error redoWhat happens when you run print(“5” + 3)?
03 Answers and one-line notes
| # | Answer | One-line note |
|---|---|---|
| 1 | 10 | The plus sign adds integers, and seven plus three is ten. |
| 2 | 3 and 3 | The // operator gives the whole-number quotient and % gives the remainder, and fifteen divided by four is three remainder three. |
| 3 | 50 | int() turns the text into a whole number, and forty-two plus eight is fifty. |
| 4 | 53 and 8 | Two strings joined by a plus sign are concatenated, while two integers with a plus sign are added. |
| 5 | 14 | Two plus five gives seven, then multiplying by two gives fourteen, applied in order. |
| 6 | 24 | input() returns text, so converting to a whole number first and then doubling gives twenty-four. |
| 7 | 3, 2 and 3.4 | The // operator gives the whole-number quotient 3, % gives remainder 2, and / gives the decimal quotient 3.4. |
| 8 | 115.2 | Forty-eight times three is one hundred forty-four, and multiplying by 0.8 gives one hundred fifteen point two. |
| 9 | 3, 6 and 5 | n // 100 gives 3, n // 10 % 10 gives 6, and n % 10 gives 5. |
| 10 | It raises a TypeError | Text and a whole number cannot be added directly, and int(“5”) must convert the text first. |
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.
When code fails, read the error message for three things: the line, the error type and the value that was not what you expected. Strings and numbers do not add, input always arrives as a string, so convert the type before calculating; indexes start at 0, so a list of length 3 ends at index 2; indentation is program structure, not decoration. For counting tasks, write the range start, stop and step before calculating.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.



