Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

End of year quiz: Small Basic

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What code would you use to write a message to the screen?

a)

TextWindow.Title

b)

TextWindow.WriteLine

2.

Text in speech marks e.g. "Hello World!" are called?

a)

Variables

b)

Booleans

c)

Strings

d)

Text Operators

3.

What is this called?

a)

Black Box

b)

Text Window

4.
To temporarily store a value in Small Basic you need to create a..?
a)
Operator
b)
Variable
c)
Statement
d)
Text Window
5.
What will be displayed in the Text Window?
a)
tiger
b)
animal
6.
What will be displayed in the Text Window?
a)
20
b)
15 + 5
7.
A variable that contains a whole number is called an..?
a)
String
b)
Boolean
c)
Integer
d)
Real Number
8.

How do you read input from the user and store it in a variable?

a)

input = TextWindow.Read()

b)

input = TextWindow.GetText()

c)

TextWindow.Read()

d)

input = TextWindow.WriteLine()

9.

How do you repeat tasks?

a)

If statements

b)

If else statements

c)

For or while loops

d)

branching

10.

What kind of statement would you use to make a decision that has two possible answers?

a)

If else statement

b)

While statement

c)

For statement

d)

Sub routine

11.
What should be at the end of every condition?
a)
EndIf
b)
EndFor
c)
EndWhile
d)
EndSub
12.
In the loop:  FOR i = 1 TO 100   What is i?
a)
The Counter
b)
The Condition
c)
The Branch
d)
The Property
13.

name = TextWindow.Read() – Which part of this code is the variable?

a)

Writeline

b)

TextWindow

c)

name

d)

Read

14.
What happens if you do one letter wrong in the code?
a)
It will still work
b)
It won't work
c)
It will work a bit
d)
It will work but only for a while
15.
How do you get the turtle to turn?
a)
Turtle.Move (100)
Turtle.move (100)
b)
Turtle.Turn (45)
c)
Turtle.Speed= 5
Turtle.Speed = 5
16.
How many Sweets does the user start off with in the program?
a)
10
b)
20
c)
15
d)
0
17.
What happens to the sweets in the program?
a)
They get reduced by 1 with every loop of the While Loop
b)
They get reduced by 2 with every loop of the While Loop
c)
They get halved with every loop of the While Loop
d)
They go down to 0 straight away.
18.
Why is TextWindow.Read() used in this program?
a)
To take an input from the user
b)
To print out to the screen
c)
To print out a letter
d)
To write a variable to the screen
19.
What happens to the background colour if the user does not enter a valid day?
a)
It turns red
b)
Nothing
c)
It goes green
d)
It turns blue
20.
What will be displayed in the Text Window?

TextWindow.WriteLine("8 + 4")

a)
8 + 4
b)
12