REVISION WORKSHEET - Pseudocodes

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

REVISION WORKSHEET

Topic - Pseudocodes

Question 1. Write a pseudocode to find the area of a circle given the radius.
Question 2. Write a pseudo code that reads two numbers and multiplies them together and
prints out their product.
Question 3. Write a pseudocode to check if a given number is even or odd.
Question 4. Write a pseudo code that tells a user that the number they entered is not a 5 or
a 6.
Question 5. Write a pseudocode to obtain the length and width of a rectangle from the user.
Calculate and output the area. If the length and width are equal, output a message that the
figure is a square.
Question 6. Write a pseudocode to obtain three test scores of a student. Calculate the
average test score and output this value. If the average score is greater than 75% output a
message indicating that the student is promoted to the next class.
Question 7. Write a pseudocode to input 10 numbers and find their average.
Question 8. Write a pseudocode to display all the multiples of 3 within the range 10 to 50.
Question 9. Write a pseudocode to find the sum of all integers between 100 and 200 which
are divisible by 9.

Question 10. Write a pseudocode to input a month number between 1 and 12 and display
the corresponding month’s name.

Question 11. The average temperature of a city is stored in an array Temp. The array stores
temperature values for the month of December. Write a pseudocode to print this array in
reverse order.

Question 12. Write a program to use the loop to find the factorial of a given number.

The factorial (symbol !) means to multiply all whole numbers from the chosen number down
to 1. For example: calculate the factorial of 5.

5! = 5 × 4 × 3 × 2 × 1 = 120

Programs that use if-else statement

Question 1: Write a pseudocode to input any alphabet and check whether it is a vowel or a
consonant.

Question 2: Write a pseudocode to input angles of a triangle and check whether the triangle
is valid or not.

Question 3: Write a pseudocode to find the maximum between three numbers.


Question 4. Write a pseudocode to input month number and print number of days in that
month.

Question 5. Write a pseudocode to check whether a year is leap year or not.

Question 6. Write a pseudocode to input 2 numbers and an operator (+, -, *, /). Let the
pseudocode calculate the result as per the desired operation input by the user. Display an
appropriate error message if any invalid operator is entered other than the 4 basic arithmetic
operators.

Programs that use loops

Question 7. Write a pseudocode that inputs two given integers start and end. The output
printed is all numbers from start to end series of numbers.

Question 8. Write a pseudocode to find the sum of first 10 natural numbers.

Question 9. Write a pseudocode to input an integer and display the cube of the number upto
a given integer.
9

You might also like