Back to the full dot-point answer
EnglandComputer ScienceQuick questions
Topic 6: Problem solving with programming
Quick questions on Developing and debugging code: refining programs, readable code and error correction - Edexcel GCSE Computer Science
2short 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 with range?Show answer
range(1, 5) gives 1 to 4, not 1 to 5. To include 5, use range(1, 6). This is a classic logic error.
What is q2?Show answer
State one technique that makes code easier to read. [1 mark]
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.