Back to the full dot-point answer
EnglandComputer ScienceQuick questions
Topic 6: Problem solving with programming
Quick questions on Program constructs: sequence, selection, repetition and iteration in Python - Edexcel GCSE Computer Science
3short Q&A pairs drawn directly from our worked dot-point answer. For full context and worked exam questions, read the parent dot-point page.
What is off-by-one in range?Show answer
range(1, 6) gives 1 to 5. Check the upper bound carefully.
What is q1?Show answer
State which Python construct repeats a known number of times. [1 mark]
What is q2?Show answer
Write a Python if statement that prints "big" when a variable n is greater than 100. [2 marks]
Have a question we have not covered?
This dot-point answer is short enough that we have not extracted many short questions yet. Read the full dot-point answer or ask Mo, our study assistant, in the chat for follow ups.