Computational Thinking and Programming Skills – Python
Question Paper & Mark Scheme (Merged) May 2025 [VERIFIED]
for more: tyrionpapers.com
8 5 2 5 /1B
IB/G/Jun25/G4003/E11
, 2
Do not write
outside the
Answer all questions.
box
0 1 Figure 1 shows a program written in Python.
Line numbers are included but are not part of the program.
Figure 1
1 # Python program
2 a =1
3 b =1
4 c =5
5 while b < c:
6 a=a+a
7 b=b+1
8 print(a)
0 1 . Where is an arithmetic operation first used in the program in Figure 1?
1
Shade one lozenge.
[1 mark]
A Line number 1
B Line number 5
C Line number 6
D Line number 8
0 1 . 2 Which of the following is a false statement about the program in Figure 1?
Shade one lozenge.
[1 mark]
A This program contains a comment.
B This program uses assignment.
C This program uses concatenation.
for more: tyrionpapers.com
IB/G/Jun25/8525/1B
, 3
Do not write
outside the
D This program uses iteration.
for more: tyrionpapers.com
IB/G/Jun25/8525/1B
, 4
Do not write
outside the
0 1 . State the relational operator used in the program in Figure 1. box
[1 mark]
0 1 . 4 Complete the trace table for the program in Figure 1.
You may not need to use all the rows in the table.
[4 marks]
for more: tyrionpapers.com
IB/G/Jun25/8525/1B