wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

programming

Total questions: 132

Worksheet time: 41mins

Name
Class
Date
1.

Which of the following is a CONDITIONAL

a)

jump 5 times

b)

if you see an arrow then jump 5 times else sit down

c)

if you see an arrow

2.

An INPUT is

a)

information that goes INTO a computer or device

b)

information that comes OUT of a computer or device

3.

An OUTPUT is

a)

information that goes INTO a computer or device

b)

information that comes OUT of a computer or device

4.

what is a LOOP function?

a)

something that only happens once

b)

something that gets repeated

5.

What is a program

a)

A set of instruction to complete a task

b)

something you watch on TV

6.

What is a BUG in a program?

a)

a small insect

b)

an error in the code

7.

The word sequence means

a)

to stop

b)

to do something in order

8.
Loops are used to repeat parts of a program
a)
True
b)
False
9.
Iteration is an alternative term for loop.
a)
True
b)
False
10.
A WHILE loop is an example of a count-controlled loop.
a)
False
b)
True
11.
Which of the following is a count-controlled loop?
a)
FOR
b)
Else
c)
If
d)
Int
12.
A REPEAT loop will always execute at least once.
a)
True
b)
False
13.
A WHILE loop will always execute at least once.
a)
False
b)
True
14.
What is used to control if a loop should run or not?
a)
Condition
b)
If
c)
Else
d)
Fitness
15.
Which is the correct form of a FOR loop in pseudocode?
a)
FOR i=0 TO 10
b)
If i=0 To 10
c)
Else i=0 To 10
16.
Which of the following loops will stop when x reaches 10?
a)
WHILE x < 10
b)
WHILE x < 9
c)
WHILE x < 1
d)
WHILE x < 4
17.
What do code and program mean?
a)
Create a password
b)
Writing step by step the instructions that tell the computer what to do
18.

What is a computer program?

a)

a collection of instructions that performs a specific task when executed by a computer

b)

Something you can use to write a document

19.

Coding

a)

the act of creating a computer program

b)

a collection of instructions that performs a specific task when executed by a computer

c)

a loop is a sequence of instructions that is continually repeated until a certain condition is reached

20.

What is an algorithm?

a)

a well-defined procedure that allows a computer to solve a problem

b)

The first step of a computer program

21.

a named section of a program that performs a specific task. In this sense it is like a type of procedure or routine

a)

step

b)

function

c)

loop

d)

conditional statement

22.

a sequence of instructions that is continually repeated until a certain condition is reached

a)

variable

b)

function

c)

conditional statement

d)

loop

23.

an error, flaw, failure or fault in a computer program or system that causes it to produce an incorrect or unexpected result

a)

iteration

b)

virus

c)

bug

d)

variable

24.

set of rules performed if a certain condition is me, often referred to as if/then statements

a)

computer program

b)

conditional statement

c)

function

d)

algorithm

25.

some known or unknown quantity of information

a)

number

b)

variable

c)

equation

d)

algorithm

26.

refers to physically or automatically adding data to a system

a)

input

b)

output

c)

coding

d)

bug

27.

Data generated by a computer

a)

input

b)

output

c)

bug

d)

loop

28.

Which of the following is an example of an output device?

a)

mouse

b)

keyboard

c)

printer

29.

Which of the following is an example of an input device?

a)

speakers

b)

monitor

c)

keyboard

d)

printer

30.

What is a variable?

a)

Any inputted data

b)

A type of algorithm

c)

A laballed part of the computer's memory

d)

A way of repeating a block of code

31.

What type of data would your name be?

a)

Real

b)

Boolean

c)

Integer

d)

String

32.

What type of data would Pi be?

a)

Real

b)

Integer

c)

Boolean

d)

Character

33.

What type of data would the letter 'K' be?

a)

Boolean

b)

String

c)

Character

d)

Real

34.

What type of data would either True or False be?

a)

String

b)

Character

c)

Real

d)

Boolean

35.

What type of data would your age in years be?

a)

Real

b)

Integer

c)

String

d)

Boolean

36.

What term is used to describe a variable being given a value?

a)

Equals

b)

Assignment

c)

Input

d)

Algorithm

37.

What is meant by the term iteration?

a)

A list of instructions for completing a task

b)

Repeating a block of code

c)

Giving a value to a variable

d)

Breaking a problem down into simple parts

38.

What is meant by the term 'selection'?

a)

Giving a value to a variable

b)

Making a decision between different conditions

c)

Waiting for user input

d)

Outputting the result of a calculation

39.

Which of the following is NOT a mathematical operator?

a)

+

b)

=

c)

/

d)

&

40.

Which of the following is a relational operator?

a)

+

b)

-

c)

/

d)

>

41.

Which of the following is a logical operator?

a)

IF

b)

THEN

c)

AND

d)

ELSE

42.

Which of the following is NOT a logical operator?

a)

AND

b)

OR

c)

NOT

d)

IF

43.

In this algorithm, on what line is iteration first used?

a)

3

b)

4

c)

5

d)

6

44.

In this algorithm, which of the following is a variable?

a)

password

b)

loop

c)

output

d)

while

45.
Variables cannot be changed.
a)
False
b)
True
46.
Constants cannot be changed.
a)
True
b)
False
47.
Which of these values would be useful as a constant?
a)
Pi
b)
Di
c)
Ni
d)
Pie
48.
Which of these values would be used as a variable?
a)
Velocity
b)
Frequency
c)
0
d)
1
49.
The value of a constant can be changed using an expression.
a)
False
b)
True
50.
Variable names can't start with a number.
a)
True
b)
False
51.
Variable names can include spaces.
a)
False
b)
True
52.
Some specific words can't be used as variables.
a)
True
b)
False
53.
Machine Code uses mnemonics to represent instructions
a)
True
b)
False
54.
An advantage of programming in Low Level is
a)
Easier for us to understand
b)
Easier to debug
c)
Programs require less file space
55.
A disadvantage of programming in Low Level is
a)
No technical skill is required
b)
Needs to be translated before it can be executed
c)
Difficult for humans to debug
56.
An advantage of programming in High Level is
a)
Easier for us to understand
b)
Useful for device drivers
c)
Programs execute faster than other generations
57.
A disadvantage of programming in High Level is
a)
A lot of code must be translated before it can be executed
b)
Difficult to debug
c)
High level of technical skill is required
58.
What sort of relationship do the instructions have between High and Low Level languages?
a)
One to One - One high level instruction is equivalent to one low level
b)
One to Many - For every hgh level instruction there are many low level ones
59.

Binary is the only language a computer can understand

a)

True

b)

False

60.

Computers must translate everything into binary

a)

True

b)

False

61.

Which level of a programming language is Machine Code?

a)

Low

b)

High

62.

Which level of a programming language is Assembly Code?

a)

Low

b)

High

63.

Which level would create the fastest code to execute?

a)

Low

b)

Assembly

c)

High

64.

Which level would create the easiest code for humans to understand?

a)

Low

b)

Assembly

c)

High

65.

Visual Basic is an example of a High Level programming language

a)

True

b)

False

66.

Which generation?

a)

Machine Code - Low

b)

Assembly Code - Low

c)

High Level

67.

Which generation?

a)

Machine Code - Low

b)

Assembly Code - Low

c)

High Level

68.

Which generation?

a)

Machine Code - Low

b)

Assembly Code - Low

c)

High Level

69.

High Level Code is easier for humans to understand as it is written in English

a)

True

b)

False

70.
If ................then ....else ........endif  check
a)
0ne condition
b)
two conditions
c)
threee condtions
d)
many conditions
71.
What are the three algorithm constructs? 
a)
Sequence, selection, repetition 
b)
Input, output, process 
c)
Input/output, decision, terminator    
d)
Loop, input/output, process    
72.
What does this shape represent?
a)
Input/Output
b)
Decision
c)
Process
d)
Start/Stop
73.
What does this shape represent?
a)
Decission
b)
Process
c)
Input/Output
d)
Start/End
74.
What's missing ?
a)
On/Off
b)
Pink/Blue
c)
Hello/Goodbye
d)
Yes/No
75.
What is this ?
a)
Pseudocode
b)
Flow chart
c)
Syntax
76.
An identifier is the ‘name’ given to a variable. For example: 
distanceToSchool = 10
What is the value of the variable?
a)
10
b)
=
c)
distanceToSchool
77.
Which of the following assignment statements is assigning text.
a)
myName = "David"
b)
myAge = 21
78.
What does this symbol mean?
<
a)
Greater Than
b)
Less Than
79.
In the diagram shown, where is the error?
a)
A
b)
B
c)
C
d)
D
80.
Another word for repetition
a)
iteration
b)
flow
c)
input
d)
control flow
81.
What does this shape represent in flowchart?
a)
Input/Output
b)
Process
c)
Decision
d)
Start/Stop
82.
What is a flowchart?
a)
A textual representation of algorithms.
b)
A graphical representation of algorithms.
c)
A cluster of different shapes.
d)
A program code written in Logo.
83.
What command is this shape for?
a)
References another part of the program
b)
Data that is going in as input or coming out as output
c)
Processing something - a calculation or storing something into a variable
d)
Shows the direction of the program
84.
What is the difference between a flowchart and pseudocode? 
a)

A flowchart is diagramatic whilst pseudocode is written in a programming language (eg. VB or Java) 

b)
A flowchart is textual but pseudocode is diagrammatic 
c)
A flowchart is a diagrammatic description of an algorithm whilst pseudocode is a textual description of an algorithm 
d)
A flowchart and pseudocode are the same thing 
85.
What is the correct definition of an algorithm?
a)
An algorithm is a step by step instructions to solve a problem.
b)
An algorithm is a process of baking bread.
c)
An algorithm is a software used to compute numbers.
d)
An algorithm is the process of breaking problems.
86.

What’s an algorithm?

a)

A set of step-by-step instructions to resolve a problem

b)

An algorithm is a type of diagram

c)

Patterns and trends used to solve a problem

d)

A programming language

87.

What problem would you solve with an algorithm?

a)

Study

b)

Music

c)

Math

d)

All of the above.

88.

How can't an algorithm be represented?

a)

As a flowchart

b)

As pseudocode

c)

Coding

d)

As a flowchart or pseudocode

89.

Which picture can be best described as the principle of "algorithm"?

a)
b)
c)
d)
90.

Why is learning to program an important skill?

a)

Because we all need to know how computers work

b)

It teaches us how to solve problems

c)

Without it we will not be able to fix our computers in the future

d)

There is no reason to learn programming

91.

What does this flowchart symbol represent?

a)

Starting and stopping

b)

Actions

c)

Sub-routines

d)

Decisions

92.

What does this flowchart symbol represent?

a)

Starting and stopping

b)

Actions

c)

Sub-routines

d)

Decisions

93.

What does this flowchart symbol represent?

a)

Starting and stopping

b)

Actions

c)

Sub-routines

d)

Decisions

94.

What does this flowchart symbol represent?

a)

Starting and stopping

b)

Actions

c)

Sub-routines

d)

Decisions

95.

What is a Variable?

a)

It is a place where you can store some data

b)

It is a place in your code that changes

c)

It is a name given to a special sub-routine that changes how the program works

d)

It is when you want to add two number together

96.

This is a graphical representation of an algorithm

a)

Computer Program

b)

Binary Diagram

c)

Decomposition

d)

Flowchart

97.

What is an Algorithm?

a)

A picture that you use to make a program

b)

A precise set of instructions

c)

Shapes and symbols connected together

d)

Breaking a problem down into smaller tasks

98.

Loop

a)

Loops that have a predetermined beginning, end, and increment (step interval).

b)

The action of doing something over and over again.

c)

A description of the behavior of a command, function, library, API, etc.

d)

To repeat in order to achieve, or get closer to, a desired goal.

99.
What is programming?
a)
Creating a calendar of events.
b)
Writing instructions for a digital tool
c)
A list of activities like clubs and special events at a school.
100.
Order of events, commands carried by a computer exactly as they are written to run properly.
a)
Sequence
b)
Bugs
c)
Syntax
d)
Debugging
101.
Process of finding and fixing errors in the syntax so the computer program will run properly
a)
Bugs
b)
Sequence
c)
Debugging
d)
Command
102.

Specific instructions given to a computer.

a)

output

b)

list

c)

rules

d)

command

103.

Precise sequence of instructions for successfully carrying our a task. It can be written in everyday language but the steps might be capable of translation into a programming language.

a)

Decomposing

b)

Algorithm

c)

Logic

d)

Loop/ Repeat

104.
Loops are used to repeat parts of a program
a)
True
b)
False
105.
Which of the following is not a type of loop?
a)
IF
b)
Input
c)
Str
d)
Else
106.
Iteration is an alternative term for loop.
a)
True
b)
False
107.
A WHILE loop is an example of a count-controlled loop.
a)
False
b)
True
108.
Which of the following is a count-controlled loop?
a)
FOR
b)
Else
c)
If
d)
Int
109.
A REPEAT loop will always execute at least once.
a)
True
b)
False
110.
A WHILE loop will always execute at least once.
a)
False
b)
True
111.
What is used to control if a loop should run or not?
a)
Condition
b)
If
c)
Else
d)
Fitness
112.
Which is the correct form of a FOR loop in pseudocode?
a)
FOR i=0 TO 10
b)
If i=0 To 10
c)
Else i=0 To 10
113.

What is a computer program?

a)

a collection of instructions that performs a specific task when executed by a computer

b)

Something you can use to write a document

114.

a named section of a program that performs a specific task. In this sense it is like a type of procedure or routine

a)

step

b)

function

c)

loop

d)

conditional statement

115.

a sequence of instructions that is continually repeated until a certain condition is reached

a)

variable

b)

function

c)

conditional statement

d)

loop

116.

an error, flaw, failure or fault in a computer program or system that causes it to produce an incorrect or unexpected result

a)

iteration

b)

virus

c)

bug

d)

variable

117.

set of rules performed if a certain condition is me, often referred to as if/then statements

a)

computer program

b)

conditional statement

c)

function

d)

algorithm

118.

some known or unknown quantity of information

a)

number

b)

variable

c)

equation

d)

algorithm

119.
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
120.
A computer program is best described as a series of ___________.
a)
Instructions
b)
Questions
c)
Answers
d)
Numbers
121.
Which terms best describes each step in a computer program?
a)
Vague
b)
Confusing
c)
Random
d)
Specfic
122.

What is an Algorithm?

a)

A picture that you use to make a program

b)

A precise set of instructions

c)

Shapes and symbols connected together

d)

Breaking a problem down into smaller tasks

123.

Why is learning to program an important skill?

a)

Because we all need to know how computers work

b)

It teaches us how to solve problems

c)

Without it we will not be able to fix our computers in the future

d)

There is no reason to learn programming

124.

Which statement is NOT correct?

a)

Programming is writing computer code.

b)

Programming is for computers to do a task.

c)

Algorithms are used by everyone.

d)

Computer program understands a human language.

125.

Which statement is NOT correct?

a)

Algorithm is a computer language that a computer understands.

b)

Algorithm has a set of instructions to follow.

c)

One of examples of algorithms is a cooking recipe.

d)

To tell a computer to do something, a program must be written in a computer language.

126.

Which statement is NOT true?

a)

There are many different programming languages.

b)

Scratch is not a programming language.

c)

Programmers are like translators who knows how to talk to computers.

d)

Instructions for computers have to be precise and clear.

127.

What is a programming language?

a)

Written English

b)

A language that computer creates.

c)

A language that a computer understands.

d)

A series of step by step instructions

128.

Which is NOT an example of algorithm?

a)

Poem

b)

Car manual

c)

Written note for how to make a cup of tea

d)

Recipe

129.

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)

too many steps

b)

not specific

c)

function doesn't apply to every bottle

d)

instructions are out of sequence

130.

A good algorithm must be:

a)

ambiguous

b)

simple

c)

open-ended

d)

detailed

131.

_______ operators are used to compare two values of the same type.

a)

Arithmetic

b)

Relational

c)

Logical

132.

A data value that does not change during the execution of a program is _____.

a)

Variable

b)

Constant

c)

Character