Professional Documents
Culture Documents
Chapter 1
Chapter 1
Short Questions
c. What is a flowchart?
Flowchart is diagrammatic representation of algorithm. It describes what
Operations are required to solve a given problem.
Input/ Output:
Parallelogram represents input or output.
Contains the word input or read along with
the variables and print or output along with
the output data for output operation.
Process:
A rectangular box used for processing. All
calculations appear inside the processing
symbol. Such as: “ SUM=A+B”.
Decision:
A diamond shaped symbol represents decision
in a flowchart and it contains a condition.
Extensive Questions
Page | 2
Q6. Write an algorithm that inputs marks and prints the message
“ PASS ” or “ FAIL”. Passing marks are 33.
Planning:
Input: Marks
Output required: Print “PASS” or “FAIL” after comparing marks.
Processing: Check in given range whether the given marks are equal
to PASS or FAIL and print accordingly.
Algorithm:
Step 1: Start
Let the marks be M.
Step 2: Compare the marks.
IF M≥33 then GOTO Step 3 otherwise GOTO step 4.
Step 3: Output “PASS”
Step 4: Output “FAIL”.
Step 5: Stop
A =L*B
Question 5:
Start
CM = L * 2.54
Output CM
Stop
Question 6:
Start
Input marks M
IF M ≥ 33 No
Output FAIL
Page | 5
Yes
Question 7:
Start
SUM=A+B+C+D+E+F+G+H+I
Output SUM
Stop
Question 8:
Start
PRODUCT=A*B*C*D*E*F*G*H
Stop
Question 9:
Start
Page | 6
Input N
A = 10
R=N*A
Output R No
A=A-1
A < 1?
Yes
Stop