wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Topic 7 - Programming

Total questions: 32

Worksheet time: 16mins

Name
Class
Date
1.
In a flow chart a rectangle shape is used when?
a)
Any action like a calculation or assigning variables is required
b)
A decision is needed like a question or IF statement
c)
An input or output is needed
2.
What is Pseudo code?
a)
A simple way of describing a set of instructions that does not have to use specific syntax of a programming language
b)
A programming language
c)
A way of coding a program
3.
What is Pseudo code used for?
a)
To plan algorithms using plain English
b)
To program every piece of software
c)
To plan algorithms using a specific programming language
4.
What shape represents a decision in a flow chart?
a)
A diamond
b)
An oval
c)
A rectangle
5.
What is an algorithm?
a)
A set of step by step instructions for a computer to follow to solve a problem
b)
Software that analysis data
c)
A hardware device that stores data
6.
What are algorithms used for?
a)
Algorithms can be used in many different areas where instruction sets are needed
b)
Algorithms are only used by computers 
c)
Algorithms are only used in planning
7.
What is a bubble sort?
a)
An algorithm that sorts a list of numbers into the correct order 
b)
An algorithm that finds the highest number in a list
c)
An algorithm that fins the lowest number in a list
8.
What is a variable?
a)
Data that is stored in a memory location that can be changed
b)
Data that is stored in a memory location that cannot be changed
c)
Data that is produced by a computer, that cannot be changed
9.
What is syntax?
a)
The set of rules about how to use a particular programming language
b)
A way to plan algorithms in plain English
c)
The structure used to create a flowchart
10.
When is an expression used?
a)
In a statement when working with values
b)
To create an algorithm
c)
To debug a problem
11.
Why might a compiler report that there is a syntax error in a particular line of code?
a)
The line contains a type eg a ‘,’ instead of ‘.’
b)
It is a random error caused by external factors
c)
The program has been typed out in the wrong font
12.
Which of these methods executes a program line by line and checking for errors as it goes?
a)
Interpreting
b)
Compiling
c)
Translating
13.
Which method takes a high- level program and converts all lines in one go into a single runnable line?
a)
Compiling
b)
Executing
c)
Formatting
14.
Which computer language creates a simulated computer called a ‘virtual machine’?
a)
Java
b)
Python 
c)
PHP
15.
What is a high-level language?
a)
An unambiguous language that can be understood by a human being and be converted by a computer to a low-level language
b)
Good use of language when writing essays that are likely to get high marks
c)
A computer language that can be run by the CPU but is very difficult for human beings to understand
16.
What is machine code?
a)
A low-level language that can be broken down into single instructions corresponding to logic circuits inside a computer's CPU
b)
The ID number, found on the back of a computer
c)
A type of bar code
17.
What is a semantic error?
a)
A mistake in the program code that does not stop the program from running but causes an unexpected result
b)
A miscommunication between two or more developers so that the individual program parts do not work together properly
c)
It is the same as a syntax error
18.
What causes runtime errors?
a)
Mistakes that do not stop a program from running but instruct the system to do something impossible
b)
Programs that take too long to execute
c)
Programs that expect the operator to perform physical activity
19.
What is the purpose of debugging a computer program?
a)
Ensure there are no errors in logic or syntax that might cause functionality problems
b)
Removing small insects from the computer hardware
c)
Making sure that all lines of code have been written in the correct programming language
20.
What is a breakpoint?
a)
A place or time at which an interruption or change is made.
b)
The location on the hard drive where part of the file system is broken
c)
A human condition where the frustration of not being able to find the cause of an error becomes too much
21.
What is a string?
a)
A type of variable that hold data values made up of ordered sequences of characters
b)
A type of variable that hold data values made up of ordered sequences of characters
c)
A type of variable that hold characters
22.
In computing terms, what is the difference between the data values 2 and “2”?
a)
2 is an integer, "2" is a character
b)
There is no difference, they are both characters
c)
2 is an integer, "2" is a string
23.
Which method of iteration should not result in an infinite loop?
a)
FOR loop
b)
REPEAT loop
c)
WHILE loop
24.
Which programming construct allows an algorithm to repeat instructions?
a)
Iteration
b)
Selection
c)
Repetition
25.
Which method of iteration may result in the iteration never actually occurring?
a)
WHILE loop
b)
FOR loop
c)
REPEAT loop
26.
Which method of iteration repeats until a condition is met?
a)
REPEAT loop
b)
FOR loop
c)
WHILE loop
27.
What type of data structure is an array?
a)
Static and mutable
b)
Dynamic and immutable
c)
Static and immutable
28.
Which of the following is not a valid array?
a)
names=("Tom", "Ali", 22, "Connie")
b)
names=("Tom","Ali","22","Connie")
c)
scores=(2,3,5,4,2,1)
29.
In terms of an array, what is an index?
a)
A value which points to a data element in an array
b)
The first element in an array
c)
A list of all the elements in an array
30.
Which of the following statements is a sensible method of representing two choices?
a)
IF THEN ELSE
b)
CASE
c)
WHILE loop
31.
What is this ?
a)
Flow Chart
b)
Pseudo Code
c)
Syntax
32.
What is this ?
a)
Pseudocode
b)
Flow chart
c)
Syntax