Algorithms and flowcharts – A Level Information Technology (9626)

10 questions

0 / 0Answer a question to start your score.
New quizSaved 0

Quick quiz: 10 random questions from this topic. Answer them all, then open the Summary.

Advertisement
1
9626/12/O/N/23 · Question 9Oct/Nov 2023Paper 128 marks
Loading question…
Question text

9
Sukhjinder, a mathematics student, has defined a procedure using pseudocode. It calculates the
area of a parallelogram by multiplying the base by the height. All parallelograms will have an area
of less than 1000.
The procedure Sukhjinder has written is:
PROCEDURE parallelogram(base,height)
base*height
area
ENDPROCEDURE
He has also begun writing an algorithm which calls the procedure and then passes back the area.
The main algorithm accepts inputs of the base and the height of 10 parallelograms, one at a time.
It will output the areas of the largest and smallest parallelograms.
Complete the algorithm for Sukhjinder by filling in the missing lines.
0
count
1000
smallest
…
WHILE count < 10
INPUT base, height
…
IF area < smallest
THEN
…
…
…
…
…
…
ENDIF
…
…
… [8]

2
9626/11/O/N/23 · Question 7Oct/Nov 2023Paper 118 marks
Loading question…
Question text

7
A company employs workers as:
•
labourers who are paid $18 per hour
•
office workers who are paid $22 per hour
•
managers who are paid $30 per hour.
A computer programmer has written part of an algorithm in pseudocode.
The completed algorithm will calculate and output the wage for each worker.
The inputs will be:
•
the number of workers
•
the job code for each worker (L for labourer, O for office worker or M for manager)
•
the number of hours each worker has worked.
If L, O or M is not entered for the job code then the message ‘Invalid job code’ will be output.
The algorithm will terminate when all the workers’ details have been entered. It will use the
CASE…ENDCASE construct to determine the rate of pay.
Complete the algorithm by filling in the missing lines.
…
INPUT number
REPEAT
INPUT jobcode, hours
…
'L' : rate
18
…
…
…
…
…
…
count
count + 1
…
[8]

3
9626/13/O/N/23 · Question 8Oct/Nov 2023Paper 136 marks
Loading question…
Question text

8
The average (mean) of a set of 10 numbers is calculated by:
•
adding the numbers together to get a total
•
dividing the total by 10.
Juan has attempted to draw a flowchart of an algorithm which finds the average of 10 numbers.
He has made some mistakes and omitted to include some boxes.
Start
count ← 0
Input number
total ← total + number
yes
is count = 10?
no
average ← total / number
Suggest six improvements he should make to his flowchart.
1 …
…
2 …
…
3 …
…
4 …
…
5 …
…
6 …
… [6]

Advertisement
4
9626/13/O/N/23 · Question 9Oct/Nov 2023Paper 138 marks
Loading question…
Question text

9
A programmer is writing an algorithm in pseudocode to determine whether a number is a factor of
another number.
Y is a factor of X if the result of X/Y is a whole number.
In pseudocode INT(W) returns the whole number part of W.
If W is the same as INT(W) that means W is a whole number.
Complete the algorithm, including the missing first line, in pseudocode. Each THEN or ELSE
statement should be on a separate line to the action resulting from it. The algorithm uses:
•
W to store the result of X divided by Y
•
Z to store the value of INT(W).
The algorithm must output the values of Y and X together with an appropriate message if Y is a
factor of X or if Y is not a factor of X.
…
W←X/Y
Z=INT(W)
…
…
…
…
…
… [8]

5
9626/11/M/J/24 · Question 8May/June 2024Paper 116 marks
Loading question…
Question text

8
Create a pseudocode algorithm to allow a number to be entered and to output a result when the
number is:
•
divided by 4 if it is less than 8
•
divided by 8 if it is between 8 and 12 inclusive
•
divided by 12 if it is any other number.
Write the pseudocode algorithm using CASE...ENDCASE.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]

6
9626/12/F/M/25 · Question 12Feb/March 2025Paper 128 marks
Loading question…
Question text

12 Employees log in to their company’s database with a User ID and password.
A login screen is displayed. A user enters their User ID.
If employees have forgotten their password, they click on a ‘Forgot Password?’ button.
Draw a program flowchart to represent the following process.
•
If the ‘Forgot Password?’ button is clicked, a message box appears and asks them to enter
their User ID.
•
A check will be performed to see if the system recognises the User ID.
•
If the User ID is not recognised, an error message is displayed and the user will be returned
to the start of the process.
•
If the User ID is recognised, a security question is asked.
•
The user’s response to the security question will be checked. If the user’s response is correct,
then an email containing the password reminder will be sent to the user’s email address.
•
If an incorrect response is given, an error message will be displayed and the user will be
returned to the start of the process.
Draw your program flowchart on the opposite page.
[8]
ĬÙú¾Ġ´íÈõÏĪÅĊàú¸þ×
,
,
Draw your program flowchart below.
ĬÛú¾Ġ´íÈõÏĪÅĊàü¸þ×
,
,
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge
ĬÙú¾Ġ´íÈõÏĪÅĊÞú¸Ā×

7
9626/11/M/J/21 · Question 2May/June 2021Paper 1110 marks
Loading question…
Question text

2
There are a number of different ways that data can be directly input to a computer.
(a) Tick the most accurate statement referring to the inputting of text using an Optical Character
Reader.
✓
It is a lot slower to enter large amounts of text than an inexperienced user typing
it in
It can be used to read ordinary handwriting
It is always completely accurate, with no mistakes being made
It is more expensive to scan the text than to pay someone to type in the text
[1]
(b) Tick the most accurate statement referring to the inputting of examination paper answers
using an Optical Mark Reader.
✓
It is very suitable for entering text
It can read marks made on an otherwise blank piece of paper
It is much more accurate than data being keyed in by a person
If the marks are not in a dark enough pencil, they are still always read correctly
[1]
(c) Evaluate, by weighing up the advantages and disadvantages, the use of MICR for inputting
text.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
… [8]

8
9626/13/M/J/24 · Question 7May/June 2024Paper 138 marks
Loading question…
Question text

7
Draw a program flowchart, in the space provided, that will allow an examination mark to be entered
and then output an appropriate message giving the correct grade, as shown in the table. All marks
are integers.
Mark
Message
85 or more
Grade A
70 or more
Grade B
50 or more
Grade C
Any other mark
Grade U
[8]

Advertisement
9
9626/13/M/J/22 · Question 8May/June 2022Paper 137 marks
Loading question…
Question text

8
A microprocessor-controlled car park barrier is used to allow cars to enter a car park. When a
car approaches the barrier, the barrier automatically rises to allow the car to enter. It does not
lower until the car is safely clear of the barrier system. There is a light sensor and light beam
source immediately before the barrier. No tickets are issued by the system. The system operates
continuously while it is switched on.
Complete this pseudocode algorithm to describe the processing involved. Your pseudocode
algorithm should include IF…THEN statements.
REPEAT
INPUT reading from induction loop
…
…
…
…
…
…
…
…
…
…
…
…
…
… [7]

10
9626/12/F/M/22 · Question 7Feb/March 2022Paper 128 marks
Loading question…
Question text

7
The average (mean) of a set of numbers can be found by adding the numbers together and
dividing the resulting total by how many numbers there are in the set.
Write an algorithm in pseudocode to enter and find the average of a set of numbers using a
REPEAT…UNTIL loop. Your algorithm must work for different sets of numbers.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [8]

Advertisement