[go: up one dir, main page]

0% found this document useful (0 votes)
10 views2 pages

Pseudo Code

The document contains a series of tasks requiring the writing of pseudocode for various programming problems, including printing numbers, calculating sums, checking even or odd numbers, finding factors, averaging numbers, calculating factorials, reversing strings, and checking voting eligibility. It also includes true/false questions regarding the characteristics and rules of pseudocode. Each task emphasizes the logic of programming without focusing on specific syntax.

Uploaded by

etashhussain1
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)
10 views2 pages

Pseudo Code

The document contains a series of tasks requiring the writing of pseudocode for various programming problems, including printing numbers, calculating sums, checking even or odd numbers, finding factors, averaging numbers, calculating factorials, reversing strings, and checking voting eligibility. It also includes true/false questions regarding the characteristics and rules of pseudocode. Each task emphasizes the logic of programming without focusing on specific syntax.

Uploaded by

etashhussain1
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/ 2

1. Write the pseudocode for a program that prints the numbers from 1 to 10.

2. Write pseudocode to calculate the sum of numbers from 1 to N, where N is

input by the user.

3. Write pseudocode to input a number from the user and check if it is even or

odd.

4. Write pseudocode for a program that takes in a positive integer and prints all

the factors of that number.

5. Write pseudocode to find the average of a list of 5 numbers entered by the

user.

6. Write pseudocode for a program that calculates the factorial of a number N.

7. Write pseudocode to reverse a string input by the user.

8. A variable in pseudocode can only store integers.

o True / False

9. Pseudocode is used to describe the logic of a program without worrying

about syntax.

o True / False

10. The "FOR" loop in pseudocode can only be used for fixed repetitions (e.g.,

from 1 to 10).

o True / False

11. Pseudocode is language-specific, meaning it must follow the rules of a

particular programming language like Python or Java.


o True / False

12. Design a pseudocode for a program that asks the user to enter their age and

checks if they are eligible to vote (18 or older).

13. Design a pseudocode for a program that calculates the area of a rectangle,

given the length and width as input.

14. Write pseudocode to count how many vowels (a, e, i, o, u) are in a string

input by the user.

You might also like