wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Six Weeks Test 5th Form

Total questions: 23

Worksheet time: 41mins

Name
Class
Date
1.

The symbol <> means

a)

Less than and greater than

b)

Less than or greater than

c)

Equal to

d)

Not equal to

2.

The first step in solving a problem is:

a)

Develop a solution

b)

Reflect and review

c)

Understand the problem

d)

Investigate and research the problem

3.

Developing a solution is where you:

a)

Check if the solution worked.

b)

Write the steps to solving the problem.

c)

Understand the problem

4.

Which of the following statement includes loops?

a)

Sequencing

b)

Repetition

c)

Selection

d)

Ordering

5.

The LAST step in solving a program is to

a)

Evaluate solutions

b)

Test the solution

c)

Develop the algorithm

d)

Specify and design

6.

Which level of a programming language is Machine Code?

a)

Low

b)

High

7.

Which level of a programming language is Assembly Code?

a)

Low

b)

High

8.

Which of the following is an example of a conditional construct

a)

For – next

b)

If –then-else

c)

While –endwhile

d)

For –endfor

9.

Python is an example of a High Level programming language

a)

True

b)

False

10.
What is a translator?
a)
A program that converts commands into machine code
b)
A program that converts HLL to assembly code
c)
A program that converts the inputs from a keyboard
d)
A program for writing code
11.
What is an interpreter?
a)
Converts source code one instruction at a time
b)
Converts source code between 2 HLLs
c)
Converts source code between HLL and Assembly
d)
Converts keyboard presses to an ASCII code
12.

Which of the following identifiers is a valid variable name?

a)

Begin

b)

iCount

c)

Num-1

d)

5Sum

13.

The variable Custbalance stores the amount of money owed by customer. Custbalance is MOST likely of data type

a)

Integer

b)

Character

c)

Real

d)

Array

14.
What is the Output if the user enters:
Yes
a)
Leave umbrella at home
b)
Take an umbrella
15.
What is this symbol used for in a flowchart?
a)
A decision/question
b)
A task to carry out
16.

Define a flowchart?

4 lines
17.

An online news company has launched its updated article-commenting features where users can read, share, and shape stories in real-time. Users can download articles and videos on Android and iOS devices as well as on the web.


Read the scenario above in bold type then answer the following questions.

You wish to write a pseudocode algorithm calculate the funds earned by the company every time a user reads the articles. The pseudocode algorithm should accept the numbers of users and the calculate the funds by multiplying number of users by five dollars and output the total earned.

4 lines
18.

State one difference between constants and variables

4 lines
19.

Jason wants to design a computer program to calculate the total to be paid by his customers; the total number of customers is unknown. State the most appropriate looping construct to be used.

4 lines
20.

It is a good practice to create an algorithm before writing the programming code. Write a narrative algorithm to prompt for the home work score, classwork score and test score for each Stephanie then calculate and output the average score

4 lines
21.

1. Write an example of a value that can be stored in EACH of the following types of variables:


(i) Integer ………………………………………

(ii) Real ………………………………………...

(iii) Character …………………………………..

(iv) String ………………………………………

4 lines
22.

Developing an algorithm is the 4th step of solving a problem. Complete the other steps to solve a problem below in the correct order. (4 marks)

Step 1: ______________________________________________________

Step 2: ______________________________________________________

Step 3: ______________________________________________________

Step 4: Develop the algorithm for the solution.

Step 5: ______________________________________________________

4 lines
23.

A pseudocode is one way to represent an algorithm. Name one other way that an algorithm can be represented.

4 lines