Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Programming

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.
Which of these is most similar to a computer program?
a)
Science Book 
b)
Encyclopedia 
c)
Blue Print 
d)
Dictionary 
2.
A programmer is to a computer as a teacher is to:
a)
a desk 
b)
a student
c)
a library 
d)
a principal
3.
Imagine a car as a computer, and its engine as a program. Which of the following is an input for the engine program?
a)
gas pedal
b)
driver's seat
c)
steering wheel
d)
windshield wipers
4.
A good algorithm must be: 
a)
replacable
b)
simple 
c)
open-ended
d)
detailed
5.
What is wrong with the following "code" for opening a bottle?
1. Grip cap with index finger and thumb
2. Remove cap
3. Twist counter-clock-wise until seal is broken
a)
to many steps
b)
not specific 
c)
function doesn't apply to every bottle 
d)
instructions are out of sequence
6.
How can the following instruction be made more specific? "Meet Joe at the corner of Main Street and First Avenue."
a)
describe how you first met Joe
b)
list all the streets that intersect with First Avenue
c)
describe current weather conditions 
d)
set an exact time for the meeting
7.
Imagine writing a program that instructs a bird how to take off, fly, and land. What function is likely to be looped?
a)
lift off
b)
flap wings
c)
find landing spot
d)
land
8.
If a program has gone through many iterations, what must be true?
a)
The code is extremely complex
b)
The code has changed a great deal over time
c)
The code is written in more than one language
d)
The code once contained many bugs
9.
For a chef, what is the most important variable in preparing a meal for a dinner party?
a)
Time the party starts
b)
Distance of the grocery store
c)
Brand of the stove
d)
Number of guests
10.
In MIT App inventor a component that can detect clicks is a 
a)
textbox
b)
sprite
c)
text to speech
d)
button
11.
What is the variable when setting a thermometer? 
a)
How many people are in the room
b)
The room you are in
c)
The temperature
d)
None
12.
A computer program is best described as a series of ___________.
a)
Instructions
b)
Questions
c)
Answers
d)
Numbers
13.
Which terms best describes each step in a computer program?
a)
Vague
b)
Confusing
c)
Random
d)
Specfic
14.
A ____ is a mini-program with several lines that can be called on whenever needed.
a)
Code
b)
Function 
c)
Bug
d)
Loop
15.
 What does a loop do to a section of code?
a)
Deletes it
b)
Repeats it
c)
Reverses it
d)
Filters it
16.
What is a synonym for "iterating?"
a)
Include
b)
Improve
c)
Introduce
d)
Incomplete
17.
What is another term for a mistake in a computer program? 
a)
Bit 
b)
Bug
c)
Botch 
d)
Byte
18.
A conditional statement in plain English usually contains which pair of words?
a)
If, then
b)
And,or
c)
Either, neither
d)
But, also
19.
 If the coding steps are in the incorrect order, the computer can still execute the program.
a)
True
b)
False
20.
Code is to a program and _______ is to Snapchat. 
a)
filters
b)
bug
c)
iterate
d)
grandma