AmbifulWorksheets
Cheat sheet
CBSE · Class 9 · Computational Thinking and AI

Algorithms and Flowcharts

An algorithm is a finite list of exact steps; a flowchart draws it with standard symbols. Tracing follows the values step by step to find the output or a bug.

Key ideas

Remember

Ovalstart or stop
Parallelograminput or output
Rectanglea process, such as a calculation
Diamonda decision with a yes or no answer
Arrow; small circledirection of flow; connector
Swap with a spareT = A, A = B, B = T
Reverse digitsR = R × 10 + last digit of N, then remove that digit (1234 → 4321)

Watch out

Worked example

Put the steps of an algorithm for charging a tablet in order. Write the letters in order.
(a) Find the charger
(b) Check that the charging sign appears
(c) Plug the charger into the socket
(d) Connect the cable to the tablet
(e) Switch on the socket

Working: Find the charger → Plug the charger into the socket → Connect the cable to the tablet → Switch on the socket → Check that the charging sign appears

Answer: a, c, d, e, b