0% found this document useful (0 votes)
25 views3 pages

Chapter2 02-07-2022

This document contains information about algorithms, flowcharts, and examples of each. It includes: 1) Examples of algorithms for making tea, finding the area of a circle, and summing three numbers. Algorithms are step-by-step instructions to solve a problem. 2) Sessions about algorithms and flowcharts, including multiple choice questions and examples of flowcharts for adding numbers, finding an average, and calculating the area of a triangle. 3) Flowcharts provide a visual representation of an algorithm using standard symbols like rectangles, diamonds, and arrows to show the program flow and logic. They can help develop and document algorithms and programs.

Uploaded by

Navya Sharma
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)
25 views3 pages

Chapter2 02-07-2022

This document contains information about algorithms, flowcharts, and examples of each. It includes: 1) Examples of algorithms for making tea, finding the area of a circle, and summing three numbers. Algorithms are step-by-step instructions to solve a problem. 2) Sessions about algorithms and flowcharts, including multiple choice questions and examples of flowcharts for adding numbers, finding an average, and calculating the area of a triangle. 3) Flowcharts provide a visual representation of an algorithm using standard symbols like rectangles, diamonds, and arrows to show the program flow and logic. They can help develop and document algorithms and programs.

Uploaded by

Navya Sharma
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/ 3

Chapter-2(Algorithm and Flowchart)

Algorithm for making cup of tea- Algorithm to find area of circle(pi*r*r)


1. Start
1. Start
2. Take a pan and add water to it.
2. Read the value of radius as r.
3. Light the gas, bring water to boil.
3. Value of pi is 3.14.
4. Add sugar, tea, ginger boil it for 5 minutes
4. Compute the area as Area= 3.14*(r*r).
5. Add milk to it.
5. Print the value of Area.
6. Remove just after tea boils and rises.
6. Stop.
7. Pour the tea in a cup.
8. stop

Algorithm to find sum of three numbers.


1. Start
2. Read the first number into a
3. Read the second number into b
4. Read the third number into c
5. Add the values of a, b, c and store into s
6. Print the value of s
7. stop

Session-1 chapter-2
A-Multiple choice question
1. What is the term that means a set of instructions?
a) Flowchart b) Program c) Procedure
2. Which of the following is a step wise step process to solve any problem?
a) Algorithm b) Flowchart c) Chart
B-Answer these questions.
1. What is an algorithm?
Ans- An algorithm is a step-by-step procedure to solve any problem. itis a sequence of instructions to
perform a specific task.

2. Write two advantages of an algorithm?


Ans-
1. It is easy to understand and implement.
2. It is easy to edit, use and learn
3. It independent of any particular computer language.
Session-2 chapter-2
MCQs
1. Which characteristics defines Algorithm as “An algorithm should be very clear and precise”.
a. Finiteness b. Unambiguous c. Uniqueness
2. _________ is a plain language description of the steps in an algorithm or another system.
a. Pseudocode b. Algorithm c. None of these
Answer these questions-
1. What is Pseudocode?
Ans- Pseudocode is an informal language that helps programmers to develop algorithms or a
computer program.
2. State any two characteristics of a good algorithm.
a. Ans- Unambiguous. - it means an algorithm should be clear and concise.
b. Feasibility. - it should be possible to execute the statements of an algorithm on machine.
c. Finiteness- there should be a finite number of steps in an algorithm

Flowchart

Flowchart to add two numbers- Flowchart to Find average of three


numbers.
Flowchart to calculate Area of triangle.

Session-3
MCQ’s
1. What is the general direction of flow in any flowchart?
a. Left to right b. Top to bottom c. Both a and b
2. Which shaped symbol is used as start/stop box?
a. Parallelogram b. Rectangle c. Rounded rectangle
Answer these questions:
1. What is flowchart?
Ans- A flowchart is a pictorial or diagrammatic representation of an algorithm.

2. Write any two uses of flowchart?


Ans- The uses of flowchart are:
I. it can be used as a model of program.
II. It also serves as a documentation of program.
III. It is used for removing errors in different phases of program.
---------------------------------------------------------------------------------------------------------------------------------------------------

You might also like