Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Year 8 - Small Basic Programming Quiz

Total questions: 18

Worksheet time: 8mins

Name
Class
Date
1.
What is Small Basic?
a)
Text based programming
b)
Pictoral based programming
2.
What can you do in Small Basic?
a)
Fix Hardware
b)
Create a Computer Programme
c)
Hack Compu
3.
Which key is used to run a program in Small Basic? 
a)
Enter
b)
F5
c)
F10
d)
F12
4.
What code would you use to write a message to the screen?
a)
TextWindow.Title
b)
TextWindow.WriteLine
5.
Text in speech marks e.g. "Hello World!" are called?
a)
Variables
b)
Booleans
c)
Strings
d)
Text Operators
6.

What does this code do: GraphicsWindow.BackgroundColor="red"

a)

Change the background colour to red

b)

Draw a Square

c)

Create a house

d)

Draw a Blue Line

7.
What is this called?
a)
Black Box
b)
Text Window
8.
A storage area that can change
a)
Differing
b)
Variable
9.
What code would you use to read the user's answer?
a)
TextWindow.Read()
b)
TextWindow.WriteLine
10.
To temporarily store a value in Small Basic you need to create a..?
a)
Operator
b)
Variable
c)
Statement
d)
Text Window
11.
What is this called?
a)
Black Box
b)
Text Window
12.
What is the name of the area where you are writing your code?
a)
Editor
b)
Code Window
13.
What will be displayed in the Text Window?
a)
tiger
b)
animal
14.
A variable that contains a whole number is called an..?
a)
String
b)
Boolean
c)
Integer
d)
Real Number
15.

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()

16.
What should be at the end of every condition?
a)
EndIf
b)
EndFor
c)
EndWhile
d)
EndSub
17.

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

a)

Writeline

b)

TextWindow

c)

name

d)

Read

18.
How many Sweets does the user start off with in the program?
a)
10
b)
20
c)
15
d)
0