0% found this document useful (0 votes)
5 views3 pages

Designing, Creating & Refining Algorithms - Week Test

The document discusses algorithms for determining if a number is odd or even, including an incomplete flowchart for the algorithm. It presents two examples of condition-controlled loops in programming, illustrating how variables are manipulated within the loops. The document is aimed at GCSE Computer Science students studying algorithm design and programming concepts.

Uploaded by

Hifza Rana
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

Designing, Creating & Refining Algorithms - Week Test

The document discusses algorithms for determining if a number is odd or even, including an incomplete flowchart for the algorithm. It presents two examples of condition-controlled loops in programming, illustrating how variables are manipulated within the loops. The document is aimed at GCSE Computer Science students studying algorithm design and programming concepts.

Uploaded by

Hifza Rana
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Designing, Creating & Refining Algorithms - GCSE . OCR .

Computer Science

1. An algorithm decides if a number is odd or even. An odd number divided


by 2 will give the remainder 1. The flowchart statements have been written
for the algorithm, but the flowchart is incomplete
2. The following program uses a condition-controlled loop.

a = 20
b = 1
while a >= b
a = a - b
b = b + 2
endwhile
print(b)
3. The following program uses a condition-controlled loop.
x = 10
y = 2
while x > 0
x = x - y
endwhile
print(x)

You might also like