wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Programming Languages

Total questions: 103

Worksheet time: 55mins

Name
Class
Date
1.

............ converts high level languages into machine code one instruction at a time on-the-fly while the program is running. Each instruction is converted to machine code once the previous instruction has been executed.

a)

Compiler

b)

Interpreter

c)

Assembler

2.

............ is a program that converts high level languages into machine code before the program is run. A compiler saves the machine code, so the source code is no longer needed A compiler allows a program to be run faster  that interpreted code. 

a)

Compiler

b)

Interpreter

c)

Assembler

3.

............ converts assembly language instructions into machine code

a)

Compiler

b)

Interpreter

c)

Assembler

4.

A high level language .......

a)

use mnemonics

b)

are easier to understand

c)

Needs a translator

d)

run slower because of the layers of abstraction and there is inefficiency in translator.

5.

A low level language ......

a)

are very difficult to understand and modify

b)

is written for a specific processor architecture, and so is not portable to other computer architectures

c)

are appropriate for developing new operating systems, embedded systems and hardware device drivers

d)

are easier to understand

6.

Machine code ....

a)

is expressed in binary values 0 and 1.  

b)

is specific to a processor.

c)

are made up of two parts the operator and the operand.

d)

is portable

7.

Interpreters ....

a)

convert each instruction is to machine code once the previous instruction has been executed. 

b)

converts high level languages into machine code one instruction at a time on-the-fly while the program is running

c)

are good for debugging code because the program stops as soon as the error has been found.

d)

saves the machine code, so the source code is no longer needed

8.

Python is a high-level programming language

a)

True

b)

False

9.

Python code uses interpreter to convert it into machine code one instruction at a time on-the-fly while the program is running.

a)

False

b)

True

10.

What is a computer programming language?

4 lines
11.

All these are programming language except......................

a)

Java

b)

Javascript

c)

Python

d)

Big C

12.

Which of the following is NOT an example of a higher level language

a)

Python

b)

Ruby

c)

Java

d)

Fortran

13.

A high level computer language is a language that is difficult for computer to understand and perform. They program the language in the computers to high level. They use words such as print, if, input and while statements “

a)

True

b)

False

14.

Low level computer language is easy to learn and is used by more people this computer programming language type is as flexible and abstract and overall well functional.

a)

True

b)

False

15.

Which letter represents the right level of programming

a)

A is Low-level Programming

b)

B is High-level programming

c)

A is High level Programming

d)

B is low level programing

16.

A CPU only understands instructions in ……………………………………. form?

a)

Binary

b)

Numbers

c)

Letters

d)

none of the above

17.

The fundamental language of the computer is called……………………………….. language ?

a)

Machine

b)

Python

c)

Ruby

d)

Scratch

18.

.................. are the steps to take when you are making something using programming. It is for completing a particular task, and for functioning computers and other programmed objects.

a)

Binary Code

b)

Machine Code

c)

Algorithms

d)

Code

19.

The follwoing are all types of Algorithms excepts

a)

Recursive

b)

Greedy

c)

Dynamic

d)

Strong

20.

Python was developed by

a)

Guido van Don

b)

Guido van Gossum

c)

Guido van Rossum

d)

Guido van Sossum

21.
What is used to connect the flowchart symbols together?
a)
Rectangles
b)
Lines
c)
Arrows
d)
Patterns
22.
What is the purpose of a flowchart?
a)
To plan the program before it is made
b)
Because it is easier
23.
What symbol do flowcharts begin with?
a)
oval
b)
parallelogram
c)
rectangle
d)
diamond
24.
What is the Output if the user enters:
Yes
a)
Leave umbrella at home
b)
Take an umbrella
25.
What is the Output if the temperature is:
19
a)
Below Freezing
b)
Above Freezing
26.

What is a flowchart?

a)

A flowchart is a text-based way of designing an algorithm

b)

A flowchart is a specific programming language

c)

A flowchart is a diagram that represents a set of instructions

27.

What is the symbol for a decision in a flowchart?

a)

A parallelogram

b)

A diamond

c)

A circle

28.

Which of these is the correct symbol for a process in a flowchart?

a)

A diamond

b)

A rectangle

c)

A parallelogram

29.
On a flowchart, a decision will always have:
a)
Two exit arrows
b)
One exit arrow
c)
Three exit arrows
d)
Four exit arrows
30.

High-level languages are also known as 4GLs.

a)

False

b)

True

31.

COBOL is a 4GL.

a)

False

b)

True

32.

Fourth-generation languages are non-procedural.

a)

False

b)

True

33.

Machine language is procedural.

a)

True

b)

False

34.

In a procedural language, users define only what they want the computer to do.

a)

False

b)

True

35.

4GLs are attractive to a large number of new users which can be a disadvantage.

a)

False

b)

True

36.

Scenario: There is an algorithm in preparing rice. What is the first step in the given choices?

a)

Cook the rice

b)

Measure the rice

c)

Rinse the rise

d)

Serve the rice

37.

This is a set of steps used to complete a specific task.

a)

Flowchart

b)

Algorithm

c)

Order

d)

Routine

38.

The following image shows a simple arithmetical algorithm. What is the missing item here?

a)

123

b)

132

c)

213

d)

312

39.

“Zayd has 32 packs of stickers. Each pack has 467 stickers. He wants to know how many stickers there are in all.” What do you think is the best algorithm to use in this situation?

a)

Addition

b)

Subtraction

c)

Multiplication

d)

Division

40.

“Zayd has 32 packs of stickers. Each pack has 467 stickers. He wants to know how many packs he can give with an equal amount of stickers.” What do you think is the best algorithm to use in this situation?

a)

Addition

b)

Subtraction

c)

Multiplication

d)

Division

41.

What does this symbol represent?

a)

Represents a decision-making point

b)

Represents arithmetic operations and data manipulations

c)

Represents the start and the end of a flowchart

d)

Represents the flow of the algorithm

42.

What does this symbol represent?

a)

Represents a decision-making point

b)

Represents arithmetic operations and data manipulations

c)

Represents the start and the end of a flowchart

d)

Represents the flow of the algorithm

43.

What does this symbol represent?

a)

Represents a decision-making point

b)

Represents arithmetic operations and data manipulations

c)

Represents the start and the end of a flowchart

d)

Represents the flow of the algorithm

44.

What does this symbol represent?

a)

Represents a decision-making point

b)

Represents arithmetic operations and data manipulations

c)

Represents the start and the end of a flowchart

d)

Represents the flow of the algorithm

45.

This is a graphical representation of an algorithm.

a)

Dropdiagram

b)

Flowchart

c)

Waveform

d)

Streamshow

46.
What command is this shape for?
a)
START / STOP
b)
INPUT / OUTPUT
c)
PROCESS
d)
DECISION
47.
What does this shape represent?
a)
Input/Output
b)
Decision
c)
Process
d)
Start/Stop
48.
What does this shape represent?
a)
Decission
b)
Process
c)
Input/Output
d)
Start/End
49.
What's missing ?
a)
On/Off
b)
Pink/Blue
c)
Hello/Goodbye
d)
Yes/No
50.
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
51.
What will be displayed as output?
a)
10
b)
20
c)
30
d)
40
52.
Assume n1 = 10 ... n2 = 2 ... n3 = 2
What will be displayed as output?
a)
10
b)
20
c)
30
d)
40
53.
Assume n1 = 10 ... n2 = 20
What will be displayed as output?
a)
10
b)
20
54.
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.
55.
What is the difference between a flowchart and pseudocode? 
a)
A flowchart is diagramatic whilst pseudocode is written in a programming language (eg. Pascal 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 
56.
What is the Output if the user enters:
Yes
a)
Leave umbrella at home
b)
Take an umbrella
57.
What does this symbol mean?
<
a)
Greater Than
b)
Less Than
58.
What is this ?
a)
Pseudocode
b)
Flow chart
c)
Syntax
59.
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
60.
Which of the following assignment statements is assigning text.
a)
myName = "David"
b)
myAge = 21
61.
A flow chart is a graphical representation of a computer program in relation to its _______
a)
sequence of functions
b)
data it processes
62.
What does this shape represent in a flow chart?
a)
Instruction
b)
Loop
c)
Decision
d)
Start/End
63.
What does this shape represent in a flow chart?
a)
Instruction
b)
Loop
c)
Decision
d)
Start/End
64.
What does this shape represent in a flow chart?
a)
Instruction
b)
Loop
c)
Decision
d)
Start/End
65.
What does this flowchart symbol represent?
a)
data input / output
b)
start / end
c)
decision
d)
wait
66.
What does this flowchart symbol represent?
a)
data input / output
b)
decision
c)
start / end
d)
process / sequence
67.
What does this flowchart symbol represent?
a)
process  / sequence
b)
decision
c)
start / end
d)
wait
68.
What does this flowchart symbol represent?
a)
start / end
b)
process / sequence
c)
data input / output
d)
wait
69.
A symbol that starts or ends a flow chart is known as a...
a)
terminator
b)
decision
c)
loop
d)
sequence
70.
Another name for a terminator in a flow chart is...
a)
start / end
b)
decision
c)
process
d)
data input / output
71.
A symbol that leads to two possibilities in a flow chart is known as a...
a)
loop
b)
decision
c)
end
d)
sequence
72.
A section in a flowchart that requires an action from a user is known as a...
a)
decision
b)
loop
c)
wait
d)
input
73.
A benefit of using flowcharts is:
a)
They help you program faster
b)
They write the program for you
c)
They are easier
d)
They help you to visually plan a program
74.

This symbol indicates a question to be answered

a)

Process symbol

b)

Terminator symbol

c)

Decision symbol

d)

Document symbol

75.

This is another name for the start/end symbol

a)

Initial Symbol

b)

Terminator Symbol

c)

Programming Symbol

d)

Pseudo Symbol

76.

what is a flow chart

a)

showing the direction of water

b)

a measurement of how much flow a song has

c)

a diagram showing a sequence of actions

d)

a medical diagnosis

77.

what does this do

a)

process

b)

decision

c)

terminator

d)

input/output

78.
a)

decision

b)

process

c)

terminator

d)

input/output

79.

what is this

a)

process

b)

input/output

c)

decision

d)

terminator

80.

what is this

a)

process

b)

terminator

c)

input/output

d)

decision

81.
When notes are added to a flow chart outside of blocks, the flow chart is described as _____________________
a)
noted 
b)
commented 
c)
annotated 
d)
described
82.
A flow chart should be drawn from the ______ to the ______ of the page
a)
top to the bottom
b)
left to the right
c)
right to the left
d)
bottom to the top
83.
A symbol that starts or ends a flow chart is known as a...
a)
terminator
b)
decision
c)
loop
d)
sequence
84.
Another name for a terminator in a flow chart is...
a)
start / end
b)
decision
c)
process
d)
data input / output
85.
A symbol that leads to two possibilities in a flow chart is known as a...
a)
loop
b)
decision
c)
end
d)
sequence
86.
A symbol that automatically performs an action in a flow chart is known as a...
a)
sequence
b)
input / output
c)
decision
d)
wait
87.
A section in a flowchart that requires an action from a user is known as a...
a)
decision
b)
loop
c)
wait
d)
input
88.

This is a diagram that shows a process, system, or computer algorithm

a)

Procedure

b)

Process

c)

Flowchart

d)

Pseudocode

89.

What symbol is shown here

a)

Process

b)

Decision

c)

Terminator

d)

Input/Output

90.

What symbol is shown here

a)

Process

b)

Decision

c)

Terminator

d)

Input/Output

91.

What symbol is shown here

a)

Process

b)

Decision

c)

Terminator

d)

Input/Output

92.
Pseudocode should be generic -
It should not use any specific programming language
a)
True
b)
False
93.
What type of flowchart is shown here?
a)
selection
b)
iteration / loop
c)
sequence
94.
What type of flowchart is shown here?
a)
selection
b)
iteration / loop
c)
sequence
95.
What type of flowchart is shown here?
a)
selection
b)
iteration
c)
sequence
96.

How would we assign a value to a variable in (aqa) pseudo code?

a)

name <-- "Peter"

b)

name = "Peter"

c)

"Peter" = name

d)

name == "Peter"

97.

Which is the correct example of selection (aqa) pseudo code?

a)

if number > 10:

b)

IF number >10 THEN

c)

while number >10:

d)

WHILE number > 10

98.

Is this the correct way of writing pseudo code?

age = 16

if age > 18:

print("You are an adult")

else:

print("You are a child")

a)

Yes - looks good to me

b)

No

99.

Why is it important to be consistent with naming conventions?

a)

It looks better

b)

So variables are easily identifiable

c)

So you can see what's going on

d)

Because all programming languages are consistant

100.

what is a flow chart

a)

showing the direction of water

b)

a measurement of how much flow a song has

c)

a diagram showing a sequence of actions

d)

a medical diagnosis

101.
A flow chart should be drawn from the ______ to the ______ of the page
a)
top to the bottom
b)
left to the right
c)
right to the left
d)
bottom to the top
102.

Which one of the following statements is TRUE about Pseudo codes?

a)

It can be run on a computer.

b)

It can be expressed in diagrams.

c)

It is a method to represent an algorithm.

d)

It is written in JavaScript syntax only.

103.
What is an algorithm?
a)
A problem
b)
A solution to a problem
c)
The steps that are taken to solve a problem
d)
The words to enter when typing