Font size
WorksheetsSmallBasic and flowcharts
Total questions: 63
Worksheet time: 2hrs 14mins
Can accept any characters
•TextWindow.Read()
•TextWindow.ReadNumber()
•TextWindow.WriteLine()
•TextWindow.Write()
Gets or sets the color of the pen used to draw shapes on the Graphics Window.
GraphicsWindow.PenColor
GraphicsWindow.PenHue
GraphicsWindow.PenHex
GraphicsWindow.PenKulay
Gets or sets the Background color of the Graphics Window.
GraphicsWindow.BackgroundColor
GraphicsWindow.ForeColor
TextWindow.BackgroundColor
I can only have one variable in a program
True
False
What is a variable?
A variable is a number
A variable is a message input by the user
A variable is a location in memory that we use to store da
GraphicsWindow.Height = 100
TextWindow.WriteLine("8 + 4")
The symbol used to give comments in Small Basic is
? (question mark)
' (apostrophe)
/ (slash)
* ( asterisk)
................. means to check for check for errors and remove them.
Debugging
Bugs
Fix
Recheck
You cannont use a keyword as a variable name.
True
False
/ operator is executed before + operator.
False
True
This is a comparison operator used for non-eqality
>
<
=
<>
How do you repeat tasks?
If statements
If else statements
For or while loops
branching
What kind of statement would you use to make a decision that has two possible answers?
If else statement
While statement
For statement
Sub routine
What kind of statement would you use to make a decision that has more than two possible answers?
If statement
For loop
While loop
If Elseif statement
What would you store a section of code in that you need to reuse several times in different places throughout your program?
Subroutine
While Loop
Branching
For Loop
Which flowchart shape is this?
Decision Box
Input / Output box
Process box
Start / Stop box
Which flowchart shape is this?
Decision Box
Input / Output box
Process box
Start / Stop box
Which flowchart shape is this?
Decision Box
Input / Output box
Process box
Start / Stop box
Which flowchart shape is this?
Decision Box
Input / Output box
Process box
Start / Stop box
What is an algorithm?
a step by step set of instructions
a musical instrument
a programming language
a piece of hardware
An algorithm is a sequence of instructions that needs to be in the right order and it needs to be ......
short
precise
complicated
written in English
An algorithm is used to create a _____________________ such as a game or an application.
application
sequence
instruction
program
How many arrows come out of the end symbol in the flowchart?
0
1
2
3
This flowchart is made to...
Calculate the area and perimeter of a square
Output figures of different sizes
Calculate the area and perimeter of a circle
Find out how long it takes to get to the moon
This flowchart is made to ...
Check whether a number is odd or even
Decide if we like a number or not
Calculate the remainder of a number + 2
Help people with Maths
What does sequence mean?
To create a pattern
To do something in order
To do something randomly
To repeat something over and over again
This flowchart is made to ...
find out which of two numbers is the biggest
add two numbers together and output the larger result
input two numbers and expand them
This flowchart has a major flaw. It is
Not using diamonds for decisions
Asking too many questions
Being illegible for horses
Helping people who think they are horses realise they are not
What will happen if the user's book return is late?
Sends them an SMS (text)
Does not send them an SMS (text)
How are symbols connected together in a flowchart?
Symbols do not get connected together in a flowchart
With lines and an arrow to show the direction of flow
By numbers
"D"
What does it mean when a flowchart path splits into two or more paths?
In a flowchart, what does the process symbol with double lines indicate?
Select the greater than symbol.
>
<
>=
<=
Select the less than symbol.
>
<
>=
<=
Select the which step should be completed first in an algorithm to get ready for school.
Have breakfast
Get out of bed
Brush my teeth
Leave the house
The purpose of drawing this flowchart is ..................
print the multiplication table of No 3
print the multiplication table of No 12
print the numbers from 1 to 12
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
What is the first step when solving a problem?
Algorithm
Program Design
Program Testing
Identify the problem
The program .......................... means making sure that the program is free of errors.
Design
testing
Solving
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
