Search for notes by fellow students, in your own course and all over the country.

Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.

My Basket

You have nothing in your shopping cart yet.

Title: Algorithm exam practice questions.
Description: The questions in this pdf are algorithm based With over 5+ questions,they are particularly helpful in getting ready for an algorithm test.The questions are phrased in an exam kinda way and maybe,they may feature in your test!! Computer based courses,those in 2nd year may find this greatly beneficial .

Document Preview

Extracts from the notes are below, to see the PDF you'll receive please use the links above


Surname:

Other Names:

ALGORITHM EXAM
QUESTIONS

Paper out of 63 Marks
...


Mariama needs to automatically create usernames from people's first names and surnames
...


For example, Dan Priestley's username would be PriestleyDa
...


...

(1)
ii) Write an algorithm that Mariama could use to create a username using the updated process

...


...


...


...


...


...

(6)
(Total 8 Marks)
Level: 8

createatest
...
uk

Page 1 of 8

2
...
 You are required to
develop an algorithm to calculate this estimate
...

Write pseudocode or draw a flowchart that represents this algorithm
...
co
...


Santos is writing a program that guesses the number of goals a team will score in a football match
...


...


...


...


...

Explain how you obtained your answer in each case
...


...


...


...


...


...


...
co
...


Write an algorithm for a computer program that does the following:
The user inputs three numbers as x1, x2 and x3
If two (or three) of the numbers are the same, the program outputs "Pair"
Otherwise, the program outputs "No pair"

...


...


...


...


...

(5)
(Total 5 Marks)
Level: 7

5
...
 They each roll a dice seven times
...

The results of Frankie's rolls are stored in an array: frankie_rolls
The results of Andre's rolls are stored in an array: andre_rolls
What a pseudocode algorithm that does the following:
Adds together all of Frankie's rolls
Adds together all of Andre's rolls
Compares the totals and outputs the name of the winner, or if its a draw
Make sure your algorithm is efficient, and leave comments explaining your code

(7)
(Total 7 Marks)
Level: 7

createatest
...
uk

Page 4 of 8

6
...
 The value of the car reduces by 10% every year
...

Write a psuedocode algorithm that:
takes as input the initial value of the car
calculates the number of years until the woman will sell the car
outputs the number of years

...


...


...


...

(5)
(Total 5 Marks)
Level: 6

createatest
...
uk

Page 5 of 8

7
...


a) Explain why 'MultiSub' is a function, rather than a procedure

...

(1)
b) Complete the trace table below for when the subroutine MultiSub(2,3) is called
...
 He replaces the following lines:

with the following:

Explain why this is a mistake

...

(2)
d) What value is returned by the function MultiSub(a,0) where a is any number?

...
co
...


A programmer is creating a 3D simulation of a school for a new computer game
...

a)
i) Describe what is meant by 'abstraction'

...


...

(2)
ii) Give one example of how the programmer could use abstraction when creating the simulation

...

(1)
b) Define the term 'decomposition'

...


...

(2)
d) Identify one additional computational thinking skil that the programmer will use when creating the simulation

...


A list is made up of the numbers 72, 56, 5, 32, 21, 12, 64, 1
Show the steps involved when sorting this list of numbers using the merge sort algorithm

(2)
(Total 2 Marks)
Level: 5
10
...

Explain why the computational thinking skill of algorithmic thinking is important, and explain how Sofia can apply it to this
problem
...


...


...


...
co
...


Krish is writing a computer program
...

Why would Krish choose to write in pseudocode before writing in a formal programming language?

...


...

(2)
(Total 2 Marks)
Level: 5

createatest
...
uk

Page 8 of 8


Title: Algorithm exam practice questions.
Description: The questions in this pdf are algorithm based With over 5+ questions,they are particularly helpful in getting ready for an algorithm test.The questions are phrased in an exam kinda way and maybe,they may feature in your test!! Computer based courses,those in 2nd year may find this greatly beneficial .