Chapter 4
Chapter 4
A:- Connector
5. Who was the developer of flowchart?
A:- Herman Goldstein and John Von Neumann
6. Which symbol indicates a decision?
A:- Diamond
7. How much flow line should come out from a process symbol?
A:- one
8. Which is independent of programming language?
A:- Algorithm
Q-5 Define.
1. Algorithm:- A systematic list of instructions to perform a task is known as
algorithm.
2. Flowcharts:-Flowchart is the pictorial depiction in which symbols are
used to show various operations and decision to be followed in solving
problem.
3. Looping:- Looping means to repeat a set of instructions until a specific
condition is fulfilled.
Q-6 Answer the following.
1. What is an algorithm?
Ans:- An algorithm is a set of rules and sequential steps that define how a
particular problem can be solved in finite and ordered sequence. An
algorithm is a basic element of programming in any of the computer
languages.
2. What are the advantages of algorithm?
Ans:-it has a definite procedure.
➢ It is independent of programming language.
➢ It is easy to debug as every step is got its own logical sequence.
3. What is a flow chart?
Ans:-a flowchart is a pictorial representation in which symbols are used to
show the various operations and decisions to be followed in solving
problem. A flowchart is concise in nature.
4. What are the benefits of preparing a flowchart of the problem?
Ans:-flowcharts helps in debugging process.
➢ With flowcharts, problem can be analyses in more effective way.
➢ Program flowcharts serve as a good program documentation.
5. Give difference between algorithm and flowchart.
Ans:- Algorithm Flowchart
1. Step by step formation 1. Box by box formation
2. Specific programming language used. 2. Used of logical and signs is the main
tool.
3. Mostly run to complete or manage 3. Can be used in general terms to solve
program implementations. any problem related to and individual or
group.
START
READ r
PRINT AREA
END
2. Convert temperature Fahrenheit to Celsius
START
READ F
C=5/9*(F-32)
PRINT C
END
3.Flowchart for an algorithm which gets number and prints sum of their value.
START
READ A and
B
C=A+B
PRINT C
END
I=10
WRITE I
I=I+2
YES
I<=100
NO
END
START
READ A and
B
TRUE Is A>B
FALSE
PRINT A PRINT B
END