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

Year 7 SmallBasic Homework Guide

Uploaded by

lajos.boni
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)
21 views3 pages

Year 7 SmallBasic Homework Guide

Uploaded by

lajos.boni
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

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
2. 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

LOOPS
3. (a) What Shape will this code draw?

(b) How can you predict this?

(c) How can I adapt it to draw an octagon?

Page 3 of 3

You might also like