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

Peace On Green Earth Public School: Kundrathur, Chennai - 600069

The document contains coding class notes for Class VII at Peace On Green Earth Public School, focusing on sequencing with block coding. It defines key concepts such as algorithms, building blocks of algorithms, and differentiates between sequencing and iteration. Additionally, it provides examples of algorithms for finding natural numbers and distributing chocolates at a birthday party.

Uploaded by

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

Peace On Green Earth Public School: Kundrathur, Chennai - 600069

The document contains coding class notes for Class VII at Peace On Green Earth Public School, focusing on sequencing with block coding. It defines key concepts such as algorithms, building blocks of algorithms, and differentiates between sequencing and iteration. Additionally, it provides examples of algorithms for finding natural numbers and distributing chocolates at a birthday party.

Uploaded by

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

Peace On Green Earth Public School

Kundrathur, Chennai – 600069


CODING CLASS NOTES
LN - 2 SEQUENCING WITH BLOCK CODING

Class – VII

I. ANSWER THE FOLLOWING

1. Define an algorithm.
An algorithm is a step by step procedure to solve a particular problem.
Advantages of algorithms
 Simple to understand.
 Definite procedure is followed.
 Programming becomes easier.

2. Name the three building blocks of an algorithm.


The three building blocks of an algorithm are
 Sequencing
 Selection
 Iteration

3. Differentiate between sequencing and iteration.


Sequencing:
Sequencing in programming means to follow the steps of an
instruction one after another.
Iteration :
Iteration is a control statement used to repeat a block of code multiple

times until a given condition is satisfied.

4. What are nested loops? Where are they used?


1. When there is loop inside another loop, it is called a nested loop.
2. Nested loops are used where multiple conditions need to be
checked during a program.

5. What is a bug?
A bug is a terminology used to describe any unexpected problem in
your program that generates incorrect output.
Ex. Any deviation in the expected and actual output of the program is
said to be bug.
6. What is selection in programming?
Selection refers to the situation in which the algorithm needs to make
a choice between two or more alternatives.

7. Write an algorithm for finding all natural numbers between from 1 to 50.
Step 1 : Start
Step 2 : Start loop from 1 to 100.
Step 3 : Check if (number > 0) and (number <=100)
then print the number
else
move to next number.
Step 4 : Stop.

8. Write an algorithm and flowchart for distributing chocolates in a birthday

party.
Step 1 : Start
Step 2 : Take one chocolate from the bag
Step 3 : Give chocolate to the students.
Step 4 : Check if there are any student left who did not get the chocolates
If yes, then go the step 2.
Step 5 : Stop.

START

Yes

Take one chocolate out of the bag

Give chocolate to the students

Are there any


student left who did
not get chocolate

No

STOP

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy