SmallBasic Homework – Beechen Cliff School – Year 7
SmallBasic Homework – Variables and If statements
1. Look at the code snippet below and answer the questions:
a) What is the name of the variable in this piece of code?
b) What will be displayed if the user enters the following as their favourite food:
User enters…. The program displays…
Cake
brussel sprouts
Haribo
Debugging Errors
Look at the following examples with errors in the code. The debugging information is also shown.
Describe what the problem is and how it can be fixed:
PROBLEM 1
Page 1 of 3
SmallBasic Homework – Beechen Cliff School – Year 7
PROBLEM 2
PROBLEM 3
Page 2 of 3
SmallBasic Homework – Beechen Cliff School – Year 7
PROBLEM 4
Page 3 of 3