wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SmallBasic and flowcharts

Total questions: 63

Worksheet time: 2hrs 14mins

Name
Class
Date
1.
What is Small Basic?
a)
Text based programming
b)
Pictoral based programming
2.
Which key is used to run a program in Small Basic? 
a)
Enter
b)
F5
c)
F10
d)
F12
3.
What is this called?
a)
Black Box
b)
Text Window
4.
A storage area that can change
a)
Differing
b)
Variable
5.
To temporarily store a value in Small Basic you need to create a..?
a)
Operator
b)
Variable
c)
Statement
d)
Text Window
6.

Can accept any characters

a)

TextWindow.Read()

b)

TextWindow.ReadNumber()

c)

TextWindow.WriteLine()

d)

TextWindow.Write()

7.

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

a)

GraphicsWindow.PenColor

b)

GraphicsWindow.PenHue

c)

GraphicsWindow.PenHex

d)

GraphicsWindow.PenKulay

8.

Gets or sets the Background color of the Graphics Window.

a)

GraphicsWindow.BackgroundColor

b)

GraphicsWindow.ForeColor

c)

TextWindow.BackgroundColor

9.

I can only have one variable in a program

a)

True

b)

False

10.

What is a variable?

a)

A variable is a number

b)

A variable is a message input by the user

c)

A variable is a location in memory that we use to store da

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.
Which of these is used to create images?
a)
TextWindow
b)
GraphicsWindow
13.
What line of code would I use to create the image above?
a)
Window.DrawRect(100, 100, 40, 80)
b)
GraphicsWindow.DrawRectangle
c)
GraphicsWindow.DrawRectangle(100, 100, 40, 80)
d)
GraphicsWindow.DrawEllipse(100, 100, 40, 80)
14.
What will be displayed in the Text Window?

TextWindow.WriteLine("8 + 4")

a)
8 + 4
b)
12
15.
What will be displayed in the Text Window?
a)
20
b)
15 + 5
16.
What will be displayed in the Text Window?
a)
form
b)
Your answer to the question
17.

The symbol used to give comments in Small Basic is

a)

? (question mark)

b)

' (apostrophe)

c)

/ (slash)

d)

* ( asterisk)

18.
What symbol do i use to recall a variable?
a)
+
b)
!
c)
""
d)
@
19.

................. means to check for check for errors and remove them.

a)

Debugging

b)

Bugs

c)

Fix

d)

Recheck

20.

You cannont use a keyword as a variable name.

a)

True

b)

False

21.

/ operator is executed before + operator.

a)

False

b)

True

22.

This is a comparison operator used for non-eqality

a)

>

b)

<

c)

=

d)

<>

23.

How do you repeat tasks?

a)

If statements

b)

If else statements

c)

For or while loops

d)

branching

24.

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

25.

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

a)

If statement

b)

For loop

c)

While loop

d)

If Elseif statement

26.

What would you store a section of code in that you need to reuse several times in different places throughout your program?

a)

Subroutine

b)

While Loop

c)

Branching

d)

For Loop

27.
A variable that contains a whole number is called an..?
a)
String
b)
Boolean
c)
Integer
d)
Real Number
28.
In the loop:  FOR i = 1 TO 100   What is i?
a)
The Counter
b)
The Condition
c)
The Branch
d)
The Property
29.
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
30.
How many Sweets does the user start off with in the program?
a)
10
b)
20
c)
15
d)
0
31.
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.
32.
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
33.

Which flowchart shape is this?

a)

Decision Box

b)

Input / Output box

c)

Process box

d)

Start / Stop box

34.

Which flowchart shape is this?

a)

Decision Box

b)

Input / Output box

c)

Process box

d)

Start / Stop box

35.

Which flowchart shape is this?

a)

Decision Box

b)

Input / Output box

c)

Process box

d)

Start / Stop box

36.

Which flowchart shape is this?

a)

Decision Box

b)

Input / Output box

c)

Process box

d)

Start / Stop box

37.

What is an algorithm?

a)

a step by step set of instructions

b)

a musical instrument

c)

a programming language

d)

a piece of hardware

38.

An algorithm is a sequence of instructions that needs to be in the right order and it needs to be ......

a)

short

b)

precise

c)

complicated

d)

written in English

39.

An algorithm is used to create a _____________________ such as a game or an application.

a)

application

b)

sequence

c)

instruction

d)

program

40.

How many arrows come out of the end symbol in the flowchart?

a)

0

b)

1

c)

2

d)

3

41.
What is the purpose of an arrow in a flowchart?
a)
Shows the relationships between shapes/ the flow of information
b)
They look nice when we use them
c)
We don't use arrows
d)
Shows the way the arrow is directed
42.

This flowchart is made to...

a)

Calculate the area and perimeter of a square

b)

Output figures of different sizes

c)

Calculate the area and perimeter of a circle

d)

Find out how long it takes to get to the moon

43.

This flowchart is made to ...

a)

Check whether a number is odd or even

b)

Decide if we like a number or not

c)

Calculate the remainder of a number + 2

d)

Help people with Maths

44.

What does sequence mean?

a)

To create a pattern

b)

To do something in order

c)

To do something randomly

d)

To repeat something over and over again

45.
If I want to use a loop to make sure I check my math answers exactly three times, which loop would I use?
a)
for
b)
while
46.
Which loop can you use to keep checking if something is true? You don't know how many times you'll need it to loop?
a)
for
b)
while
47.

This flowchart is made to ...

a)

find out which of two numbers is the biggest

b)

add two numbers together and output the larger result

c)

input two numbers and expand them

48.

This flowchart has a major flaw. It is

a)

Not using diamonds for decisions

b)

Asking too many questions

c)

Being illegible for horses

d)

Helping people who think they are horses realise they are not

49.
What would be the output of this flowchart if the student scored 89?
a)
Fail
b)
Pass
c)
Merit
d)
Distinction
50.
Identify a variable within this flowchart.
a)
INPUT
b)
Start
c)
12
d)
RESULT
51.

What will happen if the user's book return is late?

a)

Sends them an SMS (text)

b)

Does not send them an SMS (text)

52.

How are symbols connected together in a flowchart?

a)

Symbols do not get connected together in a flowchart

b)

With lines and an arrow to show the direction of flow

c)

By numbers

53.
Which data type is used to store:
"D"
a)
Character
b)
String
c)
Integer
d)
Double
54.

What does it mean when a flowchart path splits into two or more paths?

a)
An error in the flowchart.
b)
Different starting points for the flowchart.
c)
Multiple possible outcomes or options
d)
A loop in the flowchart.
55.

In a flowchart, what does the process symbol with double lines indicate?

a)
decision point
b)
subroutine or sub-process
c)
input or output
d)
start or end point
56.

Select the greater than symbol.

a)

>

b)

<

c)

>=

d)

<=

57.

Select the less than symbol.

a)

>

b)

<

c)

>=

d)

<=

58.

Select the which step should be completed first in an algorithm to get ready for school.

a)

Have breakfast

b)

Get out of bed

c)

Brush my teeth

d)

Leave the house

59.

The purpose of drawing this flowchart is ..................

a)

print the multiplication table of No 3

b)

print the multiplication table of No 12

c)

print the numbers from 1 to 12

60.

Choose the corresponding flowchart for this Algorithm:

1- Start

2- N =1

3- If N < =3 Then

3-1 Print N

3-2 N =N +1

3-3 Go to step (3)

4- End

a)
b)
c)
61.

What is the first step when solving a problem?

a)

Algorithm

b)

Program Design

c)

Program Testing

d)

Identify the problem

62.

The program .......................... means making sure that the program is free of errors.

a)

Design

b)

testing

c)

Solving

63.

Design the corresponding CODES for this Algorithm on SMALLBASIC then copy/paste your answer here:

1- Start

2- N =1

3- If N < =3 Then

3-1 Print N

3-2 N =N +1

3-3 Go to step (3)

4- End

4 lines