You are on page 1of 11

FIRST STEPS IN SMALL BASIC Revision Session

DIFFERENCE BETWEEN A FOR LOOP AND


A WHILE LOOP
For laps = 1 To 4 While Lily = standing
Olivia.Move(5) Olivia.Move(5)
Olivia.Turn(180) Olivia.Turn(180)
EndFor EndWhile
GEEK JOKE

A programmer went to
the grocery store. His
wife said
While you are out, go
get some milk

He never came back


WHAT HAVE WE COVERED IN THIS UNIT?
Drawing shapes using turtle
Drawing multiple shapes using for loops
Writing messages using TextWindow
Saving user input into variables
Drawing shapes according to user input by calculating
angles
Making a quiz program using IF and ELSE statements
Using random number to plot shapes on random places
in the screen
ASSESSMENT GRID
Basic Intermediate Advanced

I have included useful comments I have amended existing code to


I have amended existing code to
in some of my programs for create a simple screensaver which
create an attractive and colourful
documentation purposes uses random colours and
screensaver that runs indefinitely
coordinates
I have chosen meaningful names I have done calculations on
for the variables I have used and I numeric variables and used the
I have used variables in a program
have used both text and numeric results to draw different shapes in
variables the Graphics window
I have written an error-free
I have written working programs, I have created repeating shapes
program without help, involving a
with help, using a For loop using a For loop
For loop
I have written a quiz program
I have written a quiz program
I have written a program which which asks the user 3 questions,
which asks the user 3 questions,
writes and reads text and tells the user if they got the
and tells the user if they got the
numbers in the Text window answers right and gives them
answers right
their score at the end
I successfully completed two of I finished all the tasks in the
I finished most or all of the
the worksheets, excluding the worksheets except the extension
extension tasks in the worksheets
extension activities tasks
TASK 1

On the back of your worksheets, there


are 2 questions. You need to answer both
of those questions to the best of your
ability. You can open Small Basic to remind
yourselves of how things work.
ANSWERS Q1

For sides = 1 To 4
Turtle.Move(100)
Turtle.Turn(90)
EndFor
ANSWERS Q2
Hello is not in
speech marks

If name is a
variable it
should be
declared
beforehand

name = TextWindow.Read()
TextWindow.WriteLine(Hello + name)
TASK 2

Look at the assessment grid and see if you are


confident with the statements If you are, check if
you are able to do that in a Small Basic program
and then tick the box on the worksheet.
If you are not confident in one of the statements,
then put a ? question mark on the box and revise
that topic before the next lesson.
WHERE CAN I GET HELP?

Small Basic Guide On Revision


section of the Small Basic Online
Resource
Internet
Small Basic program internal help
A friend?
Teacher
NEXT LESSON - ASSESSMENT

End of unit assessment next lesson


Homework: Revise anything you still
feel uncomfortable on and spend some
time practising writing Small Basic
programs. You can download Small
Basic at home for free.

You might also like