wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Small Basic Challenge

Total questions: 18

Worksheet time: 27mins

Name
Class
Date
1.
Which letter represents the first part of the program?
a)
E
b)
G
c)
F
d)
I
2.
Which letter represents the second block of code?
a)
H
b)
I
c)
G
d)
B
3.
Which letter represents the third part of the program?
a)
G
b)
I
c)
C
d)
B
4.
Which letter represents the fourth part of the program?
a)
D
b)
A
c)
I
d)
H
5.
Which letter represents the fifth part of the program?
a)
C
b)
B
c)
A
d)
F
6.
Which letter represents the sixth part of the program?
a)
B
b)
A
c)
D
d)
E
7.
Which letter represents the seventh part of the program?
a)
A
b)
E
c)
C
d)
G
8.
Which letter represents the eighth part of the program?
a)
F
b)
G
c)
C
d)
D
9.
Which letter represents the ninth part of the program?
a)
D
b)
H
c)
C
d)
F
10.
What does the code in section E do?
a)
Give a name to the Text Window
b)
Give a name to the program file
c)
Give a name to a variable
d)
Give a name to the Graphics Window
11.
What does the code in section H do?
a)
Define Variables
b)
Define Constants
c)
Count the number of cities
d)
Count the number of variables
12.
What does the code in section G do?
a)
Initialise a sub routine and a For loop
b)
Initialise a For loop
c)
Initialise a sub routine
d)
Initialise an event controlled loop
13.
What does the code in section I do?
a)
Request and store user input
b)
Store and print user output
c)
Run a count controlled loop
d)
Execute an IF statement
14.
What does the code in section C do?
a)
Based on temp adds city to hot, warm or cool city count
b)
Calculates the temp for each city
c)
Calculates the number of hot, warm or cool cities
d)
Calculates the number of rainy cities
15.
What does the code in section B do?
a)
Ends temp count and add to windy and rainy count if the used entered "Yes"
b)
Counts the number of rainy and windy cities
c)
Ends the City_Calc sub routine
d)
Counts the number of windy cities
16.
What does the code in section A do?
a)
End the loop, then end the sub routine
b)
End the loop
c)
End the sub routine
d)
End the sub routine and then end the loop
17.
What does the code in section F do?
a)
Write the results of the program in the Text Window
b)
Count the number of hot, warm, cool, cold, windy and rainy cities
c)
Send the data to the printer
d)
Calculate the results of the program
18.
What does the code in section D do?
a)
Runs the City_Calc and Print sub routines
b)
Creates the City_Calc and Print sub routines
c)
Prints the City Calculation
d)
Runs the City_Calc and Print loops