Skip to content
Computer ApplicationsICSE Class 8 · Chapter 3

Algorithms and Flowcharts ICSE Class 8: Characteristics, Symbols and Problems with Decision Making

Updated 15 October 2026 · Fact-checked

ICSE Class 8 Algorithms and Flowcharts defines an algorithm as a finite, step-by-step set of clear instructions for solving a problem, lists the characteristics of a good algorithm and the steps to develop one, and explains flowchart symbols. You solve problems with sequence and decision making only; loops are not included.

What Algorithms and Flowcharts is about

Before a computer can solve a problem, someone must work out exactly what steps to follow. That plan, written in plain language, is an algorithm; drawn as a picture, it is a flowchart. Only after that is the plan turned into a program.

The CISCE Class VIII Computer Studies curriculum asks you to learn:

  • an introduction to algorithms: definition and use;
  • the characteristics of a good algorithm;
  • the steps to develop an algorithm, and writing algorithms;
  • the definition of a flowchart and the symbols used;
  • solving problems by writing algorithms and drawing flowcharts up to decision making (loops are excluded).

Everyday example: making a cup of tea. Input: water, milk, tea leaves, sugar. Process: boil, add, simmer, strain. Output: a cup of tea. Every algorithm has this input → process → output shape.

Weightage: CISCE publishes no question paper, marking scheme or chapter weightage for Class VIII Computer Studies: your school sets and marks the exam. Algorithms and Flowcharts sits in the Theme: Algorithms and Flowcharts theme of the CISCE Curriculum for Upper Primary Classes (VI-VIII).Source: CISCE Curriculum for Upper Primary Classes (VI-VIII), RDCD 2016

Key concepts

Algorithm: definition and use

An algorithm is a finite sequence of clear, step-by-step instructions for solving a particular problem or doing a task.

Uses:

  • It helps us think through a problem before writing a program.
  • It is written in simple language, so anyone can follow and check it.
  • It is independent of any programming language: the same algorithm can be coded in Java, Python or any other language.
  • Errors in logic are easier to find and correct at this stage.

Example: area and perimeter of a rectangle
1. Start.
2. Input length L and breadth B.
3. Area = L × B.
4. Perimeter = 2 × (L + B).
5. Print Area and Perimeter.
6. Stop.

With L = 12 and B = 5, the algorithm prints Area = 60 and Perimeter = 34.

Worked example

Write an algorithm to find the simple interest and amount for principal P, rate R% and time T years. Trace it for P = 5000, R = 8, T = 3.

Try it first, then show the solutionSolution
  1. 1. Start. 2. Input P, R, T. 3. SI = P × R × T ÷ 100. 4. Amount = P + SI. 5. Print SI and Amount. 6. Stop.
  2. Trace: SI = 5000 × 8 × 3 ÷ 100 = 1200; Amount = 5000 + 1200 = 6200.

Answer: SI = 1200, Amount = 6200

Characteristics of a good algorithm
CharacteristicMeaning
Inputtakes zero or more values from outside
Outputproduces at least one result
Definitenessevery step is clear and unambiguous: it means exactly one thing
Finitenessit ends after a limited number of steps
Effectivenessevery step is simple and can actually be carried out
Language independenceit can be turned into any programming language

A bad step: 'Add some sugar.' (How much? Not definite.)
A good step: 'Add 2 teaspoons of sugar.'

A set of steps that never stops (for example, 'Go back to step 1' with no way out) breaks finiteness, so it is not an algorithm.

Worked example

Which characteristic is missing in each? (i) 'Divide the bill among the friends and pay a fair amount.' (ii) A set of steps with no output.

Try it first, then show the solutionSolution
  1. (i) 'A fair amount' is vague, so definiteness is missing.
  2. (ii) An algorithm must produce at least one output, so output is missing.

Answer: (i) Definiteness (ii) Output

Steps to develop an algorithm

1. Understand the problem: read it carefully and know what is asked.
2. Identify the input: what data are given?
3. Identify the output: what result is wanted?
4. Plan the process: the formula or decisions needed to get from input to output.
5. Write the steps in order, starting with Start and ending with Stop.
6. Test (dry run) the algorithm with sample data, including boundary values (for example, exactly 40 marks for a pass mark of 40), and correct any errors.

Example: 'Find whether a student has passed if the pass mark is 40.'

  • Input: marks M. Output: 'Pass' or 'Fail'.
  • Process: decide whether M ≥ 40.
  • Test with M = 40 (Pass) and M = 39 (Fail).

Worked example

For the problem 'convert a temperature from Celsius to Fahrenheit', state the input, output and process, and test with 35 °C.

Try it first, then show the solutionSolution
  1. Input: Celsius C. Output: Fahrenheit F. Process: F = C × 9 ÷ 5 + 32.
  2. Test: F = 35 × 9 ÷ 5 + 32 = 63 + 32 = 95.

Answer: 95 °F

Flowchart and its symbols

A flowchart is a diagram of an algorithm, in which each kind of step is drawn as a standard symbol and the symbols are joined by arrows that show the order of steps.

SymbolShapeUsed for
Terminaloval (rounded rectangle)Start and Stop
Input/OutputparallelogramInput (read) or Output (print, display)
Processrectanglecalculations and assignments, such as Area = L × B
Decisiondiamond (rhombus)a question with Yes/No (True/False) answers; two exits
Flow linearrowdirection of flow
Connectorsmall circlejoins parts of a flowchart, for example across pages

Rules for drawing:

  • Exactly one Start and at least one Stop.
  • Flow normally goes top to bottom or left to right.
  • A decision box has one entry and two labelled exits (Yes and No).
  • Arrows must not cross where avoidable; every path must reach Stop.
  • Write short, clear text in each box.

Worked example

Name the flowchart symbol for (i) Print 'Pass' (ii) Is M ≥ 40? (iii) SI = P × R × T ÷ 100 (iv) Stop.

Try it first, then show the solutionSolution
  1. (i) Output: parallelogram. (ii) Decision: diamond.
  2. (iii) Process: rectangle. (iv) Terminal: oval.

Answer: Parallelogram; diamond; rectangle; oval

Decision making: one and two conditions

A decision step asks a question whose answer is Yes or No, and the algorithm follows a different path for each.

Greater of two numbers
1. Start.
2. Input A, B.
3. If A > B then print A, else print B.
4. Stop.
Flowchart: Start → [Input A, B] → ◇ A > B? → Yes: [Print A] / No: [Print B] → Stop.
Trace: A = 17, B = 29 → 17 > 29 is No → prints 29.

Odd or even
1. Start. 2. Input N. 3. If N % 2 = 0 (remainder 0 when divided by 2) then print 'Even', else print 'Odd'. 4. Stop.
Trace: N = 27 → remainder 1 → Odd.

Positive, negative or zero (two decisions)
1. Start. 2. Input N.
3. If N > 0, print 'Positive'.
4. Else, if N < 0, print 'Negative'.
5. Else print 'Zero'.
6. Stop.
Trace: N = −7 → not > 0, is < 0 → Negative.

Worked example

In the 'greater of two numbers' algorithm, what is printed when A = 8 and B = 8? Is that acceptable?

Try it first, then show the solutionSolution
  1. 8 > 8 is false (No), so the else branch prints B, which is 8.
  2. Since both are equal, printing 8 is correct; a better algorithm could add a check to print 'Both are equal'.

Answer: 8; correct, though an 'equal' message would be clearer.

Decisions inside decisions

Some problems need several decisions one after another (a chain) or one inside another (nested).

Largest of three numbers A, B, C (nested)
1. Start. 2. Input A, B, C.
3. If A > B then

  • if A > C, print A, else print C.

4. Else

  • if B > C, print B, else print C.

5. Stop.
Trace: A = 15, B = 25, C = 20 → A > B? No → B > C? Yes → prints 25.

Grade from marks (chain of decisions)
1. Start. 2. Input M.
3. If M ≥ 90, grade = 'A'; else if M ≥ 75, grade = 'B'; else if M ≥ 60, grade = 'C'; else grade = 'D'.
4. Print grade. 5. Stop.
Trace: M = 82 → not ≥ 90, is ≥ 75 → B. Check boundaries: 90 → A, 60 → C, 59 → D.

Leap year (year Y)

  • If Y is divisible by 400 → leap year;
  • else if Y is divisible by 100 → not a leap year;
  • else if Y is divisible by 4 → leap year;
  • else → not a leap year.

Traces: 2024 → leap; 1900 → not leap; 2000 → leap; 2023 → not leap.

Worked example

Trace the 'largest of three' algorithm for A = 30, B = 10, C = 45, showing each decision.

Try it first, then show the solutionSolution
  1. A > B? 30 > 10: Yes. Then A > C? 30 > 45: No.
  2. So print C = 45.

Answer: 45

Algorithms and Flowcharts in real life

Each concept, met in an everyday situation. Read the situation, answer the question in your own words, then compare with the model answer. The one-line hook is what to remember.

Decision in a bill

Suppose an electricity board charges ₹5 per unit for the first 100 units and ₹7 per unit for every unit above 100.

Write the decision step of the algorithm and find the bill for 60 units and for 130 units.

Try it first, then show the solutionSolution
  1. If U ≤ 100 then Bill = U × 5, else Bill = 100 × 5 + (U − 100) × 7.
  2. 60 units: 60 × 5 = ₹300. 130 units: 500 + 30 × 7 = ₹710.

Answer: ₹300 and ₹710

Memory hook: One question, two paths: a decision box.

Algorithm in a shop

Imagine a shop that gives 10% off when the bill is more than ₹2000.

Write the algorithm and trace it for bills of ₹2500 and ₹1800.

Try it first, then show the solutionSolution
  1. Start; input Amount; if Amount > 2000 then Pay = Amount − 10% of Amount, else Pay = Amount; print Pay; Stop.
  2. ₹2500 → 2500 − 250 = ₹2250; ₹1800 → not more than 2000 → ₹1800.

Answer: ₹2250 and ₹1800

Memory hook: Input, decide, output.

Definiteness

Suppose a recipe card says 'Bake until it looks done', and two friends bake the same cake for 20 and 45 minutes.

Which characteristic of an algorithm does the card lack, and how would you fix it?

Try it first, then show the solutionSolution
  1. 'Looks done' can mean different things to different people, so the step is not definite.
  2. Fix: 'Bake at 180 °C for 30 minutes, or until a toothpick comes out clean.'

Answer: Definiteness; give an exact time and test.

Memory hook: A computer cannot guess: every step must mean one thing.

Topics in this chapter

Algorithms and Flowcharts: syntax and key facts

Shape of every algorithm
  1. 1.Input
  2. 2.Process
  3. 3.Output
Start first, Stop last.
Characteristics
Input, Output, Definiteness, Finiteness, Effectiveness
Plus language independence.
Flowchart symbols
Oval: Start/Stop; Parallelogram: Input/Output; Rectangle: Process; Diamond: Decision; Arrow: flow; Circle: connector
Decision has two labelled exits.
Even test
N % 2 = 0 → Even, otherwise Odd
% gives the remainder.
Decision pattern
If condition then step A, else step B
Exactly one branch runs.

Algorithms and Flowcharts: diagrams to practise

Practise each one on paper: draw it from the checklist, then tick off every label.

Flowchart: greater of two numbers

Draw a flowchart to input two numbers and print the greater.

Draw

  1. An oval marked Start at the top.
  2. A parallelogram: Input A, B.
  3. A diamond: Is A > B?
  4. Yes exit to a parallelogram: Print A; No exit to a parallelogram: Print B.
  5. Both paths joining an oval marked Stop.

Label

  • Start
  • Input A, B
  • A > B ?
  • Yes
  • No
  • Print A
  • Print B
  • Stop

Watch out: Label both exits of the diamond. Use arrows on every line.

Flowchart: pass or fail

Draw a flowchart to input marks and print Pass if marks are 40 or more, otherwise Fail.

Draw

  1. Start (oval) → Input M (parallelogram).
  2. Diamond: Is M ≥ 40?
  3. Yes → Print 'Pass'; No → Print 'Fail' (parallelograms).
  4. Both → Stop (oval).

Label

  • Start
  • Input M
  • M ≥ 40 ?
  • Print Pass
  • Print Fail
  • Stop

Watch out: Use ≥ (not >) so that exactly 40 passes.

How the school exam asks Algorithms and Flowcharts

The question patterns to expect, and the method that works for each.

Question typeHow it is askedMethod
Definitions and characteristicsDefine algorithm and flowchart; list or identify characteristics.IODFE: input, output, definiteness, finiteness, effectiveness.
SymbolsDraw and name symbols; which symbol for a given step?Read/print → parallelogram; calculate → rectangle; question → diamond.
Write an algorithmSequence problems (area, interest, conversion) and decision problems (greater, odd/even, pass/fail, grade).Start, input, process or decision, output, stop.
Draw a flowchartConvert an algorithm or problem into a flowchart.One symbol per step; label Yes/No.
Dry runTrace an algorithm or flowchart with given values; find the error.Follow each step and write the value after it; test boundaries.

Tricks to remember Algorithms and Flowcharts

Short memory aids. Say each one aloud once, then use it on a question the same day.

  • IODFE: 'I Owe Dad Five Eggs'

    Input, Output, Definiteness, Finiteness, Effectiveness.

    Use it when: Characteristics of a good algorithm.

  • Shapes by job

    Oval = open and close (Start/Stop); Parallelogram = pass data in or out; Rectangle = work; Diamond = decide.

    Use it when: Flowchart symbols.

  • Diamond has two doors

    Every decision diamond must have two labelled exits: Yes and No.

    Use it when: Drawing decision boxes.

  • Test the edge

    Always try the boundary value (40 for a pass mark of 40).

    Use it when: Dry runs.

Algorithms and Flowcharts: exam-level solved questions

Ordered from exam level to HOTS. Cover the solution, write your own, then compare step by step.

Example 1: Decision symbol · 1 mark · MCQExam level

Which flowchart symbol is used for a decision?
(a) rectangle
(b) parallelogram
(c) diamond
(d) oval

Try it first, then show the solutionSolution
  1. A decision asks a Yes/No question.
  2. It is drawn as a diamond.

Answer: (c)

Example 2: Define and characterise · 2 marks · Short answerExam level

Define an algorithm and state any three characteristics of a good algorithm.

Try it first, then show the solutionSolution
  1. An algorithm is a finite sequence of clear, step-by-step instructions to solve a problem.
  2. Characteristics: definiteness, finiteness, effectiveness (also input and output).

Answer: As above

Example 3: Odd or even · 4 marks · Long answerHarder exam level

Write an algorithm and draw a flowchart to check whether a number is odd or even. Trace it for 34 and 51.

Try it first, then show the solutionSolution
  1. Algorithm: 1. Start. 2. Input N. 3. If N % 2 = 0 print 'Even' else print 'Odd'. 4. Stop.
  2. Flowchart: Start (oval) → Input N (parallelogram) → diamond 'N % 2 = 0?'.
  3. Yes → Print 'Even'; No → Print 'Odd' (parallelograms) → Stop (oval).
  4. Trace: 34 % 2 = 0, so Yes → prints Even; 51 % 2 = 1, so No → prints Odd.

Answer: Even; Odd

Example 4: Grade algorithm · 3 marks · Short answerHarder exam level

Write an algorithm to print a grade: A for 90 and above, B for 75 to 89, C for 60 to 74 and D below 60. Give the output for the boundary marks 75, 74 and 100.

Try it first, then show the solutionSolution
  1. Start; input M; if M ≥ 90 then G = 'A', else if M ≥ 75 then G = 'B', else if M ≥ 60 then G = 'C', else G = 'D'; print G; Stop.
  2. 75 → not ≥ 90, is ≥ 75 → B; 74 → not ≥ 75, is ≥ 60 → C.
  3. 100 → ≥ 90 → A.

Answer: B, C, A

Example 5: Spot the problem · 3 marks · Short answerHarder exam level

Identify what is wrong with each and correct it: (i) a flowchart where the decision 'Is age ≥ 18?' has only a Yes exit (ii) an algorithm step 'If marks > 40 print Pass' when the pass mark is 40 (iii) a parallelogram used for 'Total = A + B'.

Try it first, then show the solutionSolution
  1. (i) A decision must have two exits; add a No path (for example, Print 'Not eligible').
  2. (ii) A student with exactly 40 would fail; use marks ≥ 40.
  3. (iii) A calculation is a process; use a rectangle.

Answer: As above

Example 6: Largest of three · 4 marks · Long answerHOTS / competency

Write an algorithm for the largest of three numbers and dry run it for (12, 7, 9) and (6, 6, 2).

Try it first, then show the solutionSolution
  1. Start; input A, B, C; if A > B then (if A > C print A else print C) else (if B > C print B else print C); Stop.
  2. (12, 7, 9): A > B? 12 > 7 Yes → A > C? 12 > 9 Yes → prints 12.
  3. (6, 6, 2): A > B? 6 > 6 No → B > C? 6 > 2 Yes → prints 6, which is correct even though A and B are equal.
  4. Both answers match the largest values.

Answer: 12 and 6

Example 7: Leap year · 3 marks · Short answerHOTS / competency

Write the decision steps to test whether a year is a leap year, and test them for 2100, 2400 and 2028.

Try it first, then show the solutionSolution
  1. If Y % 400 = 0 → leap; else if Y % 100 = 0 → not leap; else if Y % 4 = 0 → leap; else → not leap.
  2. 2100: not divisible by 400, divisible by 100 → not leap. 2400: divisible by 400 → leap.
  3. 2028: not by 400 or 100, divisible by 4 → leap.

Answer: 2100 not leap; 2400 leap; 2028 leap

Case-study practice (Section B style)

Read the situation, then answer every part. In a school exam set on the board pattern this is a 6-mark question split into 2 + 2 + 2 marks.

Voting booth helper

Suppose your class is designing a simple kiosk for a mock school election. It must input a student's age and print 'Eligible' if the age is 13 or more, and 'Not eligible' otherwise. A teammate wrote: 1. Start 2. Input age 3. If age > 13 print 'Eligible' 4. Stop.

  1. (i) · 2 marks

    Find two errors in the teammate's algorithm.

    Answer

    Answer: Uses > instead of ≥; no else branch

    A 13-year-old would wrongly not be shown 'Eligible' because the test should be age ≥ 13; and there is no output for ineligible students, so add 'else print Not eligible'.

  2. (ii) · 2 marks

    Write the corrected algorithm.

    Answer

    Answer: Start; input age; if age ≥ 13 print 'Eligible' else print 'Not eligible'; Stop

    1. Start. 2. Input age. 3. If age ≥ 13 then print 'Eligible', else print 'Not eligible'. 4. Stop.

  3. (iii) · 2 marks

    Name the symbols you would use for steps 2 and 3, and give the output for ages 12 and 13.

    Answer

    Answer: Parallelogram, diamond; Not eligible, Eligible

    Input → parallelogram; the decision → diamond (with outputs in parallelograms). Age 12 → Not eligible; age 13 → Eligible.

Where the marks are

How a typical answer is split into step marks. Show every step: a right final answer alone rarely earns full marks.

Draw and name the flowchart symbols for input/output and process. (2 marks)

StepMarks
Parallelogram: input/output1
Rectangle: process1

Algorithm and flowchart (15 marks): An electricity board charges ₹5 per unit up to 100 units and ₹7 per unit for units above 100. (a) Write the input, output and process. (b) Write an algorithm to input units and print the bill. (c) Draw the flowchart. (d) Dry run for 80 and 150 units. (e) State two characteristics of a good algorithm that your answer shows. (15 marks)

StepMarks
(a) Input: units U; output: bill; process: decision on U ≤ 100 and the two formulas2
(b) Start; input U; if U ≤ 100 then Bill = U × 5 else Bill = 500 + (U − 100) × 7; print Bill; Stop4
(c) Correct symbols: oval Start/Stop, parallelogram input/output, diamond decision with Yes/No, rectangles for both calculations, arrows4
(d) 80 units → ₹400; 150 units → 500 + 350 = ₹8503
(e) Any two: definiteness, finiteness, input, output, effectiveness, with a reason2

Where students lose marks in Algorithms and Flowcharts

The slips examiners see most often, and what to write instead.

  • Mistake: Leaving out Start or Stop

    Every algorithm and flowchart must begin with Start and end with Stop.

    Do this: Write them first, then fill the middle.

    Usually costs: 1 mark.

  • Mistake: Unlabelled decision exits

    The examiner cannot tell which path is Yes and which is No.

    Do this: Label both arrows from every diamond.

    Usually costs: 1 mark.

  • Mistake: Wrong symbol for a step

    Calculations go in rectangles; input and output in parallelograms.

    Wrong working

    Rectangle for 'Input A, B'

    Right working

    Parallelogram for 'Input A, B'

    Do this: Ask: am I reading/printing (parallelogram) or calculating (rectangle)?

    Usually costs: 1 mark per symbol.

  • Mistake: Using > when the condition says 'or more'

    The boundary value is then handled wrongly.

    Do this: '40 or more' means ≥ 40.

    Usually costs: 1 mark.

  • Mistake: Using loops

    The Class VIII curriculum stops at decision making; loops are excluded.

    Do this: Solve with sequence and decisions only.

    Usually costs: Answers may not match the expected method.

Practice questions on Algorithms and Flowcharts

Write each answer on paper first. Open the hint only if you are stuck, and the answer only when you have finished.

  1. Q1 · 1 mark · MCQExam level

    The flowchart symbol for a calculation is the:
    (a) oval
    (b) rectangle
    (c) diamond
    (d) parallelogram

    Hint

    Process.

    Answer

    (b)

  2. Q2 · 1 mark · Very short answerExam level

    Which characteristic means every step must have only one meaning?

    Hint

    Clear.

    Answer

    Definiteness.

  3. Q3 · 2 marks · Short answerExam level

    Write an algorithm to find the area and perimeter of a rectangle.

    Hint

    L × B; 2(L + B).

    Answer

    1. Start. 2. Input L, B. 3. Area = L × B. 4. Perimeter = 2 × (L + B). 5. Print Area, Perimeter. 6. Stop.

  4. Q4 · 2 marks · Short answerExam level

    State the use of the connector symbol and the flow line.

    Hint

    Joining; direction.

    Answer

    The connector (small circle) joins different parts of a flowchart, for example across pages; flow lines (arrows) show the direction of flow from one step to the next.

  5. Q5 · 1 mark · Assertion-reasonHarder exam level

    Assertion (A): A set of instructions that never ends is not an algorithm.
    Reason (R): An algorithm must have finiteness.
    (a) (A) is true and (R) is false.
    (b) (A) is false and (R) is true.
    (c) Both (A) and (R) are true, and (R) is the correct explanation for (A).
    (d) Both (A) and (R) are true, but (R) is not the correct explanation for (A).

    Hint

    It must stop.

    Answer

    (c)

  6. Q6 · 2 marks · Short answerHarder exam level

    Write an algorithm to convert Celsius to Fahrenheit and find the output for 100 °C.

    Hint

    F = C × 9/5 + 32.

    Answer

    Start; input C; F = C × 9 ÷ 5 + 32; print F; Stop. For 100 °C: 180 + 32 = 212 °F.

  7. Q7 · 3 marks · Short answerHarder exam level

    Write an algorithm to print whether a number is positive, negative or zero. Trace for −7 and 0.

    Hint

    Two decisions.

    Answer

    Start; input N; if N > 0 print 'Positive', else if N < 0 print 'Negative', else print 'Zero'; Stop. −7 → Negative; 0 → Zero.

  8. Q8 · 3 marks · Short answerHarder exam level

    Draw a flowchart to input age and print 'Can vote' if age is 18 or more, otherwise 'Cannot vote'. What is printed for 17?

    Hint

    Diamond with ≥.

    Answer

    Start (oval) → Input age (parallelogram) → diamond 'age ≥ 18?' → Yes: Print 'Can vote'; No: Print 'Cannot vote' (parallelograms) → Stop (oval). For 17: Cannot vote.

  9. Q9 · 3 marks · Short answerHarder exam level

    List the six steps to develop an algorithm.

    Hint

    Understand to test.

    Answer

    Understand the problem; identify input; identify output; plan the process; write the steps in order; test with sample data and correct errors.

  10. Q10 · 2 marks · Short answerHarder exam level

    The steps to swap two numbers are: T = A; A = B; B = T. Dry run with A = 4, B = 9 and give the final values. Why is T needed?

    Hint

    Write values after each step.

    Answer

    After T = A: T = 4. After A = B: A = 9. After B = T: B = 4. Final A = 9, B = 4. T keeps the old value of A, which would otherwise be lost when A = B runs.

  11. Q11 · 3 marks · Short answerHOTS / competency

    Write an algorithm to find whether three lengths can form a triangle (each pair of sides must add to more than the third). Test with (3, 4, 8) and (5, 6, 7).

    Hint

    Three conditions joined by AND.

    Answer

    Start; input a, b, c; if a + b > c and a + c > b and b + c > a then print 'Triangle possible' else print 'Not possible'; Stop. (3, 4, 8): 3 + 4 = 7 is not > 8 → Not possible. (5, 6, 7): all true → Triangle possible.

  12. Q12 · 3 marks · Short answerHOTS / competency

    A student's flowchart for 'greater of two numbers' prints A whenever A ≥ B and B otherwise. Another student says it gives a wrong answer when the numbers are equal. Who is right? Suggest an improvement.

    Hint

    What is the 'greater' of 8 and 8?

    Answer

    The flowchart is not wrong: for equal numbers it prints A, which equals the greater value. But it does not tell the user that they are equal. Improvement: add a first decision 'A = B?' → Yes: print 'Both are equal'; No: continue with 'A > B?'.

Test your recall

Answer in your head or on paper first, then open the card. Pulling an answer out of memory makes it stick far better than re-reading.

  1. 1.Define algorithm.Show answer

    A finite sequence of clear, step-by-step instructions to solve a problem.

  2. 2.Define flowchart.Show answer

    A diagram of an algorithm using standard symbols joined by arrows.

  3. 3.Symbol for Start/Stop?Show answer

    Oval (terminal).

  4. 4.Symbol for input/output?Show answer

    Parallelogram.

  5. 5.What does finiteness mean?Show answer

    The algorithm ends after a limited number of steps.

  6. 6.How many exits does a decision box have?Show answer

    Two (Yes and No).

  7. 7.What does N % 2 give?Show answer

    The remainder when N is divided by 2.

Best order to study it

  1. Learn the definition and uses of an algorithm.
  2. Learn the characteristics (IODFE) with good and bad examples.
  3. Learn the six steps to develop an algorithm.
  4. Learn the flowchart symbols and drawing rules.
  5. Practise sequence problems, then single decisions, then two or more decisions.
  6. Dry run every algorithm with boundary values.

Quick revision checklist

The night before the exam: can you do each of these without looking?

  • Can you define algorithm and flowchart?
  • Can you list five characteristics of a good algorithm?
  • Can you draw all six symbols and name their uses?
  • Can you write an algorithm for odd/even and for the greater of two numbers?
  • Can you draw a flowchart with a decision?
  • Can you dry run an algorithm with given values?

Algorithms and Flowcharts: frequently asked questions

Is an algorithm the same as a program?

No. An algorithm is the plan in plain language; a program is that plan written in a programming language that a computer can run.

Can an algorithm have no input?

Yes. An algorithm may need zero inputs (for example, printing the first 10 letters of the alphabet), but it must give at least one output.

Why are loops not used at Class VIII?

The CISCE Class VIII curriculum limits algorithms and flowcharts to sequence and decision making; repetition (loops) comes later.

What is a dry run?

Following the steps of an algorithm or flowchart by hand with sample values, writing down what happens at each step, to check that it works.

Based on: CISCE Curriculum for Upper Primary Classes (VI-VIII), Computer Studies (Class VIII); CISCE RDCD: Curriculum Pre-School to Class VIII