I gave the following code to my Year 12 class and asked them what it would output (multichoice):
- age = 14;
- print (“You are:”, age, “the drivers age is:”, driverage, “Sorry you have”, driversage-age, “years to go”)
They had to choose from:
b.You are: 14 the drivers age is: 16 Sorry you have 2 years to go
d.You are 14 the drivers age is 16, Sorry you have 2 years to go
Only 18% got the correct answer – which is what I expected. Students have to look carefully to get the correct answer.
I will post the answer later.