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

Algorithm&programming _G

This Grade 8 revision worksheet covers topics such as loops, variable naming, flowcharts, pseudocode, and arithmetic operators. It includes tasks like identifying valid and invalid variable names, writing Python programs for loops and summation, creating flowcharts, and writing pseudocode for multiples. Additionally, there are bonus tasks involving factorial calculation and printing numbers in reverse order.

Uploaded by

aryasgopal1996
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Algorithm&programming _G

This Grade 8 revision worksheet covers topics such as loops, variable naming, flowcharts, pseudocode, and arithmetic operators. It includes tasks like identifying valid and invalid variable names, writing Python programs for loops and summation, creating flowcharts, and writing pseudocode for multiples. Additionally, there are bonus tasks involving factorial calculation and printing numbers in reverse order.

Uploaded by

aryasgopal1996
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Grade 8 – Revision Worksheet 1 ​ Name: ________

Topics: for Loop, while Loop, Series Printing, Sum of Series, Variable Naming, Flowcharts,
Pseudocode, if-else Statements, and Arithmetic Operators

1.​ Look at the following variable names and mark them as Valid ( ✅) or Invalid (❌). If
invalid, explain why.

Variable Name Valid or Invalid? Reason (if invalid)

student_name

1stRank

total-Marks

_count

break

2.​ Write a Python program using a for loop to print numbers from 1 to 10.

3.​ Write a Python program using a while loop to print even numbers from 2 to 20.
Grade 8 – Revision Worksheet 1 ​ Name: ________

4.​ Write a Python program to find the sum of the first 10 natural numbers (1 + 2 + 3 +
... + 10).

5. Draw a flowchart to print numbers from 1 to 5

6. Write pseudocode to print the first 5 multiples of 3 (3, 6, 9, 12, 15) using a for loop.

Bonus Section

1.​ Write a Python program to print that accepts an integer input from the user,uses a for
loop to calculate factorial of a given number using a for loop.

If 5 is the input : 5×4×3×2×1=120

2.​ Modify the for loop program to print the numbers in reverse order (10 to 1).

You might also like