Question 2

OCR Computer Science June 2025 Computational thinking, algorithms and programming (J277-02)GCSE12 marks

On the specification

(a)
2.1 Algorithms2.2 Programming fundamentals
(b)(i)
2.2 Programming fundamentals
(b)(ii)
2.2 Programming fundamentals
(c)
2.5 Programming languages and IDEs
Question text

2 This flowchart uses iteration. Start INPUT x OUTPUT "OK" x = x - 2 FALSE IS x < 0? TRUE End (a) Complete the table by identifying how many times "OK" will be output for when each value is input. Input value Number of times "OK" is output 3 10 [2] (b) Iteration is a programming construct. (i) Identify and describe two different examples of iteration that can be used in a high-level language. 1 2 [4] (ii) Give the names of two other programming constructs that are used in a high-level language. 1 2 [2] (c) A programmer implements the flowchart as a program in a high-level language using an Integrated Development Environment (IDE). Identify and describe two tools that the programmer could use in the IDE to create a program from the flowchart. Tool 1 Description Tool 2 Description [4]