0% found this document useful (0 votes)
21 views

20 IGCSE Algorithms

Uploaded by

aidenpaul.n
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

20 IGCSE Algorithms

Uploaded by

aidenpaul.n
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Here are 20 IGCSE Computer Science (2210) questions focused on algorithm codes, specifically on input and

output:

Simple Input/Output Questions


1. Write a pseudocode to read a number from the user and print whether it is even or odd.
2. Design an algorithm to take two integers as input and display their sum.
3. Create a flowchart for an algorithm that reads three numbers and outputs the largest of them.
4. Write pseudocode to take a string as input and output the number of characters in the string.
5. Design an algorithm that prompts the user to enter their name and prints it in reverse order.

Control Flow and Loops


6. Write pseudocode that takes 10 integers from the user and prints their average.
7. Design an algorithm that reads a number and prints the multiplication table up to 12.
8. Create a flowchart for a program that keeps taking input until the user enters the word "stop", and outputs
the total number of inputs given.
9. Write an algorithm that asks the user to enter a list of 5 numbers and then prints those numbers in sorted
order.
10. Write a pseudocode that takes multiple inputs from the user and outputs the sum. The process should
stop when the input is zero.

Conditional Logic
11. Write an algorithm to input a number and output whether it is a prime number or not.
12. Design a pseudocode that reads two integers and prints the larger one, but if they are equal, output
"Equal".
13. Write a flowchart for an algorithm that takes the user's age and checks if they are eligible to vote (age >=
18).
14. Create a pseudocode that asks the user to input their test score and prints "Pass" if the score is greater
than or equal to 50, otherwise "Fail".
15. Write pseudocode that takes a temperature value in Celsius as input and converts it to Fahrenheit, then
outputs the result.

Data Structures and Iteration


16. Write an algorithm to input five names and store them in an array, then output each name on a new line.
17. Design a pseudocode that takes 10 numbers from the user, stores them in an array, and outputs the
array's elements in reverse order.
18. Write a pseudocode that reads a list of 7 integers and outputs only the even numbers from the list.
19. Create a flowchart for an algorithm that takes a list of 5 numbers and outputs both the sum and the
average of the numbers.
20. Write an algorithm to input 3 strings from the user and output them in alphabetical order.

These questions target different aspects of algorithm design such as input, output, control flow, loops, and
conditional logic, all of which are part of the IGCSE CS-2210 syllabus.

You might also like