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

Algorithms&Flowchart - Qs V Computer 1

An algorithm is a sequence of instructions to solve a problem systematically. A loop repeats a section of code until a condition is met, while a decision box evaluates a condition and follows one of two flow lines. A flowchart uses shapes and lines to represent the steps of an algorithm visually. The start shape begins the flowchart and stop shapes end it. A counter in a loop counts the number of repetitions. Key steps to write an algorithm are to define the problem, list inputs, describe steps, and test the algorithm. Flowcharts allow communicating logic visually but can become complex, while loops repeat code and branching allows different outputs based on conditions.

Uploaded by

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

Algorithms&Flowchart - Qs V Computer 1

An algorithm is a sequence of instructions to solve a problem systematically. A loop repeats a section of code until a condition is met, while a decision box evaluates a condition and follows one of two flow lines. A flowchart uses shapes and lines to represent the steps of an algorithm visually. The start shape begins the flowchart and stop shapes end it. A counter in a loop counts the number of repetitions. Key steps to write an algorithm are to define the problem, list inputs, describe steps, and test the algorithm. Flowcharts allow communicating logic visually but can become complex, while loops repeat code and branching allows different outputs based on conditions.

Uploaded by

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

Class 5 Computer chapter- 7 Algorithms And Flowcharts

D. Short answer questions.

1. What is an algorithm?

Ans. An algorithm is a sequence of instructions that are used for solving a problem in a systematic
way.

#2 Describe a loop.

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

3. What is the decision box?

Ans. The decision box shows evaluation of a condition or statement and follows exactly one of the
two flow lines.

4. Where do you place the start and stop shapes in a flow chart?

Ans. We should place the start shape in the beginning of the flow chart and stop shapes in the end
of a flow chart.

5. What is counter?

Ans. A counter is present in the loop which counts number of times a section has been repeated. it
gets raised after every repetition.

E. Long answer questions.

1. What are the steps to write an algorithm?

Ans. The various steps to write an algorithm are as listed below.

• Define the problem clearly.


• List the inputs.
• Describe the steps needed to complete the task.
• Choose data set to verify that the algorithm works.

2. Give advantages and disadvantages of flow chart.

Ans. Advantagesof flow chart.

• It is a convenient method to solve problems and communicate the logic to others


• It is an important tool for planning and designing a new system.
• It acts as a guide or blueprint while programming on the computer.
• It promotes logical accuracy.
disadvantages of a flow chart
• Sometimes, programme logic becomes cumbersome. In such a case the flow chart looks
complex and clumsy.
• Is a programme needs alterations, its flow chart may have to be redrawn completely.
• It is quite costly to produce and difficult to use and manage.

3. What are the rules to draw off flow chart?


Ans. You should keep in mind the following rules while creating a flow chart to make it
accurate

• Every flow chart has a start symbol and a stop symbol.


• Only one flowline comes out from a process symbol.
• The general direction of flow in any flow chart is from top to bottom or left to right
• Only one flowline is used to connect the start and stop symbols.
• The decisione box has only one entry point but two exit points. one exit point
shows the true condition and the other exit point shows the falls condition.

4. Distinguish between loop and branching statements.

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

branching flow charts allow you to define a specific condition according to which you get the output.

Pick the correct options.

1. What would you do first while solving a problem ? answer.... a. collect information
2. Which of the following is a pictorial representation of a problem solving process?
Answer.....c.Flow chart
3. Which of the following state direction and connection between symbol of a flow chart?
Answer.... flowlines
4. Which of the following help to connect different segments of a flow chart? Answer.... a.
Connectors
5. Which of the following is the process of repeating a section a number of times until the
specified condition is met? Answer.....c. loop
B. fill in the blanks
1. In a flow chart, each operation is represented by drawing a specific Geo metrical shape.
2. The flowlines represent flow off execution of instructions.
3. Every flow chart has a start symbol and a stop symbol.
4. Only one Flowline is used to connect the start and stop symbols.
5. The decision box has only one entry point but two exit points.
State true or false
• An algorithm can be written only in low level language. True
• It is taped off an algorithm must be precisely defined. True
• a flow chart is an important tool for planning and designing a new system. True
• in a loop, a counter is present to count the repetition of statements. True
• no multiple else statements are allowed with one if. True

You might also like