Teacher LoginStart Learning
HomeFeaturesHow It WorksPricingResourcesPast Papers
Grammar LabStart Learning
All chapters
Computer Science 2210 · Cambridge (CAIE) O Level

Writing and amending algorithms

66 past-paper questions on Writing and amending algorithms · examined 2020–2025.

Free preview · 8 of 66 shownUnlock all 66

20258 questions

2210/21 · M/J · Q4(a) [5]Sign up to mark my answer →

Write an algorithm using pseudocode to input the telephone number, extract the 2-digit country code, output the matching country, output ‘Unknown’ if there is no matching country.

2210/21 · M/J · Q4(b) [3]Sign up to mark my answer →

Explain how you could change the algorithm to repeatedly prompt for the telephone number until the number entered is 13 characters in length.

2210/21 · M/J · Q5 [4]Sign up to mark my answer →

State the purpose of each of the library routines MOD and DIV. Give one example pseudocode statement for each.

2210/21 · M/J · Q10(b) [4]Sign up to mark my answer →

Explain how the flowchart can be changed to produce the correct output.

2210/22 · O/N · Q2(c)(ii) [2]Sign up to mark my answer →

Explain how you could improve the algorithm so that the search is more likely to find the required results.

2210/22 · O/N · Q4(b) [6]Sign up to mark my answer →

Write the pseudocode for an algorithm that will allow an email address to be input and check whether or not it contains an @ symbol.

2210/22 · O/N · Q5(c) [4]Sign up to mark my answer →

Write the pseudocode required to declare and initialise the array CodeStore[]

2210/22 · M/J · Q5c [4]Sign up to mark my answer →

Explain how you could change the corrected algorithm so that it will also: • find the height of the tallest person. • output the height of the tallest person at the end of the algorithm. Any program statements used must be fully explained.

Free preview

You're viewing 8 of 66 questions

Free members see the first 8. Join Learning DEN Pro to unlock all 66 questions on this chapter — plus AI topical search, downloadable topical PDF packs, and examiner marking on any answer. From $9/month.

AI Examiner

Don't just read the solution — get your own answer marked

Write your answer to any Computer Science past-paper question, photograph it, and Learning DEN marks it like a real examiner — marks awarded, where you lost them, and your predicted grade. 3 free gradings to start.