wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

2122 Small Basic

Total questions: 35

Worksheet time: 17mins

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 does the following code do?

GraphicsWindow.Height = 100
a)
Sets the graphics window to be 100 px high 
b)
Sets the graphics window to be 50 px high
c)
Sets the text window to be 100 px high
d)
Creates a graphics window
12.
What does the following code do?

TextWindow.Height = 100
a)
Sets the graphics window to be 100 px high 
b)
Sets the graphics window to be 50 px high
c)
Sets the text window to be 100 px high
d)
Creates a graphics window
13.
What does the following code do?

GraphicsWindow.PenColor
a)
Changes the pen size 
b)
Changes the fill colour of a shape
c)
Changes the pen colour
d)
Creates a graphics window
14.
What does the following code do?

TextWindow.WriteLine("Hello")
a)
Asks the user to write "Hello"
b)
Displays thec urrent date
c)
Displays the word "Hello"
d)
Adds the value "Hello" to the variable "TextWindow"
15.
What is a variable?
a)
A location to store a value
b)
A date 
c)
A time 
d)
None of the above
16.
Which of these is used to create images?
a)
TextWindow
b)
GraphicsWindow
17.
What does this line of code do?

ContinueForEver = "Yes"
a)
Prints the word “Yes” on the screen
b)
Tells the program to loop forever
c)
Sets the variable ContinueForEver to “Yes”
d)
Sets the variable Yes to "ContinueForEver"
18.
What will be displayed in the Text Window?

TextWindow.WriteLine("8 + 4")

a)
8 + 4
b)
12
19.
What will be displayed in the Text Window?

animal = "lion"

TextWindow.WriteLine(animal)
a)
lion
b)
Lion
c)
animal
d)
Error
20.
What code would you use to read a user's input into a variable?
a)
TextWindow.WriteLine
b)
TextWindow.Read()
c)
Text.Window(read)
d)
WindowTextReadWrite
21.
To make the pen go up you can use...
a)
PenUp()
b)
Turtle.PenUp()
c)
Turtle.Pen(Up)
d)
Turtle.Pendown()
22.
Which of these pieces of code will not work
a)
Turtle.PenDown()
b)
Turtle.TurnLeft(100)
c)
Turtle.Move(50)
d)
Turtle.Show()
23.
An algorithm is..
a)
A series of steps that is followed in order
b)
A type of logic gate
c)
PowerPoint
d)
A binary number 
24.
Turtle.Speed can
a)
Make the turtle go quicker
b)
Make the turtle dissapear
c)
Stop the pen from drawing 
d)
Make the turtle delete 
25.
What will be displayed in the Text Window?
a)
tiger
b)
animal
26.
Giving a value to a variable e.g. name = "Tim" is called..?
a)
Making
b)
Attaching
c)
Listing
d)
Assigning
27.
To multiply two values in Small Basic, which operator should you use?
a)
**
b)
*
c)
x
d)
X
28.
A value that can be assigned to a text window such as Backgroundcolor = "Blue" is a..?
a)
Property
b)
Statement
c)
Program
d)
Array
29.

A small program inside a program that can be reused multiple times is known as a?

a)

Sub-Routine

b)

Loop

c)

Branch

d)

Variable

30.

Turtle.X = 50

Turtle.Y = 200

a)

this codes set location of the turtle

b)

this codes set size of the turtle

c)

this codes set move of the turtle

d)

this codes set turn of the turtle

31.

Gets or sets the color of the pen used to draw shapes on the Graphics Window.

a)

GraphicsWindow.PenColor

b)

GraphicsWindow.Penwidth

c)

GraphicsWindow.BackgroundColor

d)

GraphicsWindow.Penhue

32.

I can only have one variable in a program

a)

True

b)

False

33.

Which of these variables names is correct?

a)

1name

b)

70

c)

my name

d)

myname

34.

A (a)   is a set of instruction written for the computer to perform a particular task

35.

You cannont use a keyword as a variable name.

a)

True

b)

False