Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Introduction to Programming

Total questions: 27

Worksheet time: 27mins

Name
Class
Date
1.

What is an algorithm?

a)

A sequence of steps that lead to the solution of a problem.

b)

An infinite set of steps

c)

A drawing

d)

a programming language

2.

What are algorithms used for?

a)

To plan out the solution to a problem

b)

As a platform to program a solution

c)

To test a solution to a problem

3.

Which of these is NOT an algorithm?

a)

Following recipe instructions

b)

Working out how an engine works

c)

Tying your shoelaces

d)

Making a cup of coffee

4.

What does an algorithm need to be (choose more than 1)

a)

Clear instructions

b)

Exact

c)

Easy to understand

d)

Complex

5.

What is decomposition?

a)

Searches the computer's memory for data

b)

Repeats a program

c)

Getting small part of a problem and adding them together

d)

Breaking down a complex problem

6.

You are at the yellow arrow, pointing in the direction indicated. How would you move to fill in the 2 black squares?

a)

Straight, Turn right, Straight x 1, Fill Square, Straight x 2, Turn left, Straight x 1, Fill Square

b)

Straight x 2, Turn right, Straight x 1, Fill Square, Straight x 2, Turn left, Straight x 1, Fill Square

c)

Straight x 2, Turn right, Straight x 1, Fill Square, Straight x 2, Turn right, Straight x 1, Fill Square

d)

Straight x 2, Turn right, Straight x 1, Fill Square, Straight x 2, Turn left, Straight x 2, Fill Square

7.
What is pseudocode?
a)
Simplified programming language, that is not a specific language
b)
Complicated programming language
c)
Simple programming language, which is linked to a specific language
d)
A type of cheese
8.
What does this pseudocode do?
print "Hello"
a)
Nothing
b)
Prints the word "Hello" to the output
c)
hello is print in pseudocode
d)
The code won't work
9.

How can an algorithm be represented?

a)

As a flowchart only

b)

As pseudocode only

c)

As a flowchart or pseudocode

10.
What does this symbol mean?
<
a)
Greater Than
b)
Less Than
11.
What is this ?
a)
Pseudocode
b)
Flow chart
c)
Syntax
12.
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
13.

What problem would you solve with an algorithm?

a)

Study

b)

Music

c)

Math

d)

All of the above.

14.

How can't an algorithm be represented?

a)

As a flowchart

b)

As pseudocode

c)

Coding

d)

As a flowchart or pseudocode

15.

What section of a Pascal program is used to declare variables and assign data types? ......

a)

BEGIN

b)

CONST

c)

VAR

d)

TYPE

16.

The actual instructions for the program to run can be found after _____________

a)

The 'WRITELN' statement

b)

The 'VAR' statement

c)

The 'BEGIN' statement

d)

The 'CONST' statement

17.

Which of the following is a valid Pascal output statement?

a)

print('Hello Class!');

b)

println('Hello Class!');

c)

write("Hello Class!');

d)

writeln('Hello Class!');

18.

What is this ( := )?

a)

The equal sign

b)

The assignment operator

c)

The assignment sign

d)

The equal operator

19.

In the programming language Pascal, which of the following is NOT a standard data type?

a)

floating point

b)

char

c)

boolean

d)

integer

20.

What would be the result of the following Pascal statement?

write( 'Total is', 20 );

a)

Total 20

b)

Total = 20

c)

20

d)

Total is 20

21.

Which statement is the correct one for input in Pascal?

a)

input(num);

b)

scanf(num)

c)

readln(num);

d)

inputln(num);

22.

Which is the correct variable declaration statement?

a)

name := string;

b)

string : name;

c)

name : string;

d)

string := name;

23.

Briefly Compare High Level Languages vs Low Level Language

4 lines
24.

In your own words. What is Syntax?

4 lines
25.

Explain the use of Internal & External Documentation.

4 lines
26.

. 

. 

The action of fixing errors on your code

a)

coding

b)

hacking

c)

debugging

d)

algorithm

27.

Define 2 of the following terms:

webpage, website, URL, HTML, HTTP

4 lines