1673862750795.std 5 Algorithm & Flow Chart Assignment

You might also like

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

Podar International School, Ambegaon

2022-23
Std: V ASSIGNMENT Topic: Algorithm and Flowchart
Q 1 Answer the following questions:
1. List any two important things that we need to do while drawing a flowchart?
Ans: The flowchart should be clear, neat and easy to follow
The usual direction of the flow of a procedure or system (arrow) is from
left to right or top to bottom.

2. How many flow lines should enter into a decision symbol while drawing a flowchart?
Ans. Only one
3. Which flowchart symbol is used to make decisions/conditions?
Ans. Decision/Diamond Box
4. What do you mean by looping?
5. Ans. Repetition of a sequence of steps until a specific condition is fulfilled is
called a loop.
6. Draw a flowchart symbol which is used to indicate the direction of flow.
Ans. Flow lines
7. List uses of a flowchart.

Ans:  To identify the method or process to solve a problem.

 to plan the sequence of commands in a computer program.

 to convey ideas and solutions.


8. Differentiate between algorithm and flowchart.
Ans: The sequential set of steps that are followed in order to solve any problem
or to complete a task is called an algorithm.
The graphical or the pictorial form of an algorithm is called the Flowchart. It
has some standard symbols which are used to convey a specific meaning.

9. Write down any two characteristics of a good algorithm.


Ans:  Each instruction should be clear and have only one meaning.
Each instruction should be performed in finite time.
 No instruction should be repeated infinitely, that is, the algorithm must end.
 The algorithm must have an end statement after executing all statements.
 After the instructions are executed, the user should get the results.
10. Define: i. Algorithm: The sequential set of steps that are followed in order
to solve any problem or to complete a task is called an algorithm.
ii. Flowchart: The graphical or the pictorial form of an algorithm is called the
Flowchart. It has some standard symbols which are used to convey a specific
meaning.
iii. Computer Program: The instructions written in a language which computer
can understand is called computer program. The main steps followed while
writing Programs are
Algorithm – Creating an Algorithm
Flowchart – Drawing a flowchart from an algorithm
Program – Converting a flowchart into a computer program
Q.II Arrange the following algorithm in correct order:
 Calling a friend over the Telephone
Step 1: Talk to friend
Step 2: If busy, hang up phone, wait 5 minutes, jump to step 2
Step 3: Pick up the phone and listen for a dial tone
Step 4: Press each digit of the phone number on the phone Step
Step 5: Hang up phone
Ans. Step 1: Pick up the phone and listen for a dial tone
Step 2: Press each digit of the phone number on the phone
Step 3: If busy, hang up phone, wait 5 minutes, jump to step 2
Step 4: Talk to friend
Step 5: Hang up phone
Q.III Write an algorithm and draw a flowchart for the following:
1. To Print “Hello World” 10 times

2. Making a cup of Tea


Q. IV Do as directed:

1. Draw the flowchart symbol which is used to represent a single step such as Sum
= A+ B
Ans. Process Box
2. Draw the flowchart symbol which is used for decision making.
Ans:

3. Draw a flowchart to compute the breadth of a rectangle of a given area and length...
(Breadth = Area/Length)

4. Study the flowchart and answer the questions given below.

a. In the flowchart above, what will be the first action you take?
Ans. Take one step forward
b. What will be the final result of your actions if you follow the flowchart above from
start to finish?

Ans. Take 50 steps forward


Q V: Draw a flowchart for baking a chocolate cake. The algorithm has been given
below.
Step 1: Start
Step 2: Mix all the ingredients and spread it in pan.
Step 3: Bake at 350 0

Step 4: Test it with a fork. If it is ready go to step 5 otherwise go to step 3.


Step 5: Remove it from the oven and serve hot.
Step 6: Stop.

Q VI: what will be the output of the following flowchart? Describe it:

Ans: At first sum and count variables are assigned with value ‘0’. A value from
the user is taken and stored in variable n. Next the number stored in n is added
with the value stored in sum, and the result is stored in sum. i.e., sum = sum +
n. Then the count is incremented by 1 and check if count is less than 5. If this
condition is TRUE then another number will be taken from user. If the
condition is FALSE then it will print the value stored in variable sum. For eg: If
n = 1, 2, 3, 4, 5 then the result will be sum = 15.
Q VII: Write an algorithm to convert a temperature from Fahrenheit (F) to Celsius (C). The
formula to do this is C = 5/9*(F-32). Draw a flowchart by using the algorithm.

Ans: Algorithm:
Step 1: Start
Step 2: Get temperature in Fahrenheit ‘F’.
Step 3: Calculate temperature with formula C=5/9*(F-32)
Step 4: Print C
Step 5: Stop

Flowchart:

Q VIII: Choose the correct answer:


1) It indicates the sequence of steps and direction of flow in a flowchart.
a) Input box b) Process box c) Terminator symbol d) Flow line
2) The instructions written in a language that computer can understand is
called .
a) computer program b) procedure c) algorithm d) flowchart
Q IX: Write the use of the following symbols of a flowchart.

Ans: a. It represents the inputs required for the process or outputs of the process.
b. It is used to check conditions and compare and take decisions based on the
outcome. The next step will be based on this outcome that can be either ‘yes’ or ‘no’.
c. It represents the actual processing part of a flowchart, such as a calculation.

Q X. Draw the symbols you will use in a flowchart for the statements:

a. Get the values of three numbers in X, Y and Z

b. End a process

c. Check whether X is greater than zero

d. Calculate the sum of X and Y


Ans:

You might also like