0% found this document useful (0 votes)
33 views1 page

Pseudocode-Practice-Questions-Loops - For IGCSE CS

The document contains a series of practice questions for writing pseudocode involving loops and basic operations. It includes tasks such as multiplying numbers, checking user input against specific values, categorizing numbers into color options, printing multiples, counting even numbers, calculating averages, sorting numbers, and calculating a running sum. Each question is designed to help users practice and understand pseudocode logic and structure.
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)
33 views1 page

Pseudocode-Practice-Questions-Loops - For IGCSE CS

The document contains a series of practice questions for writing pseudocode involving loops and basic operations. It includes tasks such as multiplying numbers, checking user input against specific values, categorizing numbers into color options, printing multiples, counting even numbers, calculating averages, sorting numbers, and calculating a running sum. Each question is designed to help users practice and understand pseudocode logic and structure.
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

PSEUDOCODE – LOOPS – PRACTICE QUESTIONS

1. Write pseudocode that reads two numbers and multiplies them together and print out
their product.
2. Write pseudocode that tells a user that the number they entered is not a 5 or a 6.
3. Write pseudocode that performs the following: Ask a user to enter a number. If the
number is between 0 and 10, write the word blue. If the number is between 10 and 20,
write the word red. If the number is between 20 and 30, write the word green. If it is any
other number, write that it is not a correct color option.
4. Write pseudocode to print all multiples of 5 between 1 and 100 (including both 1 and
100).
5. Write pseudocode that will count all the even numbers up to a user defined stopping
point.
6. Write pseudocode that will perform the following.
a) Read in 5 separate numbers.
b) Calculate the average of the five numbers.
c) Find the smallest (minimum) and largest (maximum) of the five entered
numbers.
d) Write out the results found from steps b and c with a message describing what
they are
7. Write a pseudocode that reads in three numbers and writes them all in sorted order.
8. Write a pseudocode that will calculate a running sum. A user will enter numbers that will
be added to the sum and when a negative number is encountered, stop adding numbers
and write out the result.

Muhammad Ibrahim 9C

4-5-25

You might also like