Thursday 18 August 2022

2. Flowchart and Algorithm Std - VIII ICT

 

2. Flowchart and Algorithm  

Std - VIII

=========================================================================


-------------------------------------------------------------------------------


Answer the following:

1. Define the term flowchart.

Answer: A flowchart is a pictorial representation of steps or an algorithm used for solving a particular pro


2. What is an Algorithm?

Answer: Algorithm is a set of sequential steps to solve any logical or a mathematical problem. An algorithm language is written in a simple language.


3. What is the use of Input / Output box?

Answer: Input / Output box is used for accepting input or giving output of the program.


4. When do we use the Process box?

Answer: Process box is used for writing the processing instructions and doing calculations.


5. What do we use of the Decision box?

Answer: Decision box is used for checking or applying any condition in the program.


6. What is an algorithm?

Answer: An algorithm is a set of instructions given to computer to solve any mathematical or logical problem.


7.Describe a loop. 

Ans. A loop is used to repeat a section of code a number of times until the specified condition is met.


7. What are the three steps to write a program?
Answer: 
1. Write an algorithm
2. Design a flowchart based on the algorithm
3. Conversion of flowchart into program.

8. What are the characteristics of an algorithm?
Answer: 
1. Input
2. Output
3. Finiteness
4. Well-ordered
5. Unambiguous
6. Effectiveness

9. Name four different symbols used in a flowchart.
Answer: 
1. Start or Stop box
2. Input or Output box
3. Processing box
4. Decision box
5. Flow lines
6. Connector

10. Define the following:
1. Decision box                                          2. Input/Output box
3. Processing box                                      4. Connector

Answer: 
1. Decision Box: It is used to indicate some decision making process on data.

2. Input or Output box: It is used to indicate the input or output of data.

3. Processing box: It is used to indicate the processing of data or some calculation.

4. Connector: It is used to connect the various sections of a flowchart to maintain its linear flow.


Write the difference between Algorithm and Flowchart.

Flowchart

Algorithm

Block by block information diagram representing the data flow.

Step by step instruction representing the process of any solution.

It is a pictorial representation of a process.

It is a stepwise analysis of the work to be done.

The solution is shown in a graphical format.

The solution is shown in a non-computer language like English.

Easy to understand as compared to the algorithm.

It is somewhat difficult to understand.

Easy to show branching and looping.

Difficult to show branching and looping

Flowchart for a big problem is impractical

The algorithm can be written for any problem

Difficult to debug errors.

Easy to debug errors.

It is easy to make a flowchart.

It is difficult to write an algorithm as compared to a flowchart.



D. Match the following:

Column A

Answer

Column B

1. Processing box

b. rectangle

a. circle

2. Decision box

d. diamond

b. rectangle

3. Input/Output box

e. parallelgram

c. arrow

4. Connector

a. circle

d. diamond

5. Flow lines

c. arrow

e. parallelgram


Fill in the blanks:

1. An algorithm is a set of sequential steps that are developed in solving any problem.

2. The start/stop box symbol represents the starting or ending point of a program.

3. The processing box is used for writing the processing instructions.

4. The input/output box is used to display input and output of a program.

5. The decision box represents all comparisons and decisions.

6. The connectors are used to connect one part of flowchart to another.

7. An algorithm is a set of sequential steps that are developed in solving any problem.

8. The start/stop box symbol represents the starting or ending point of a program.

9. The connectors are used to connect one part of flowchart to another.


State True or False:

1. A flowchart is not a pictorial representation of steps to get the solution of a problem. (False)

2. Algorithm means a set of rules which specify how to solve some problems. (True)

3. Flowcharts are helpful in analyzing the logic of problems. (True)

4. Connectors are used to connect the boxes. (True)

5. The general direction of flow in any flowchart is from bottom to top or right to left. (False)

6. The general direction of flow in any flowchart is from top to bottom or left to right. (True)

7. A flowchart uses some complex symbols.(True)

8. A flowchart is drawn after writing the algorithm. (True)

9. A computer can only understand the instructions given in its language. (True)

10. The arrows in a flowchart are known as line segment. (True)

11. Algorithms are difficult to understand and implement. (False)

12. A flowchart always begins with the start symbol and ends with the stop symbol. (True)


A. Multiple choice questions:

1. How many steps are there to write a program on computer?
a. two                           b. three                      c. four                       d. five
Answer: three

2. Graphical representation of an algorithm is called:
a. procedure               b. graph                     c. flowchart              d. chart
Answer: flowchart

3. It is a step-by-step procedure to solve any problem.
a. flowchart                b. algorithm              c. instruction            d. perimeter
Answer: algorithm

4. Which shape is used for the processing box?
a. rectangle                 b. square                   c. circle                      d. star
Answer: rectangle

5. These lines indicate the control of flow of instructions in a flowchart.
a. control lines           b. flow lines              c. display lines         d. print lines
Answer: flow lines




Examples of flowcharts in programming

1. Add two numbers entered by the user.

Flowchart to add two numbers in programming

example of a flowchart to display 1 to 10 numbers is as follows:

Using loop in a flowchart


No comments:

Post a Comment