Computational thinking, algorithms and programming June 2025, Question 1 9 marks
A program asks a user to enter a number. Only integer values between 1 and 100 (inclusive) are accepted. The program is tested.
Tick (β) one or more boxes in each row to identify the type or types of test for each example of test data.
Reveal mark scheme
An algorithm is written for the program.
Complete the algorithm for the program.
num = input("Enter a number between 1 and 100")
if num........ AND........ then
print("accepted")
print("not accepted")
endif
Reveal mark scheme
Give the identifier of one variable used in the algorithm in part (b)(i).
Reveal mark scheme
Give one Boolean operator used in the algorithm in part (b)(i).
Reveal mark scheme