Correcting Algorithms

Lesson Instructions

Watch and follow the YouTube video,  the lesson contains three parts:

Correcting Algorithms Full Lesson Video.mp4

Task - Correcting Algorithms Activity

Task - Exam Questions - Deliberate Practice

Exam Questions - Web

Mark Scheme

Question 1 (a) 

1 mark per bullet to max 2.

Question 1 (b)

One mark per bullet

E.g.

x = input(“Enter first number:”)

y = input(“Enter second number:”)

temp = x

x = y

y = temp

Question 2

1 mark per bullet

NOTE: As long as the logic is there award marks.

E.g

num1 = input(“Enter number 1:”)

num2 = input(“Enter number 2:”)

if num1 > num2 then

    print(num1)

elseif num2 > num1 then

    print(num2)

else

    print(“Numbers are the same”)

endif