Selection and repetition change the shape of a flowchart. A decision diamond has two exits — Ya (yes) and Tidak (no) — so the flowchart branches. When an arrow loops back to an earlier step, the steps repeat until the condition changes.
What your child will learn
- Draw a decision with Ya and Tidak branches
- Show repetition with an arrow that loops back
- Write pseudocode with JIKA… MAKA… JIKA TIDAK and ULANG
- Trace a flowchart to find its output
Everyday flowcharts
Planting a seedling: MULA → isi pasu dengan tanah → tanam anak benih → siram → is the soil damp? If Tidak, siram again (loop); if Ya → letak di tempat cerah → TAMAT.
Tracing means following a flowchart step by step with real values — the best way to check that it works before turning it into a program.
Example questions
Here are a few questions like the ones in the first quest. Can you solve them?
1. Soalan “Adakah tanah lembap?” dilukis dalam simbol…
🪴- rombus
- segi empat tepat
- segi empat selari
- bujur
Show answer
Answer: rombus. Soalan Ya/Tidak ialah keputusan.
2. Ulangan dalam carta alir ditunjukkan dengan anak panah yang…
- terus ke tamat
- tiada hujung
- berpatah balik ke langkah sebelumnya
- berwarna merah
Show answer
Answer: berpatah balik ke langkah sebelumnya. Langkah yang sama dilaksanakan semula.
3. Mesin layan diri menyemak sama ada wang yang dimasukkan…
🥤- berwarna
- berbau
- mencukupi
- berat
Show answer
Answer: mencukupi. Minuman dikeluarkan jika wang mencukupi.
4. Suhu 30 °C ke atas atau di bawah 30 °C?
- 31 °C
- 22 °C
- 32 °C
- 28 °C
- 35 °C
- 25 °C
Baskets: Hidupkan kipas · Matikan kipas
Show answer
Answer: Hidupkan kipas: 31 °C, 32 °C, 35 °C · Matikan kipas: 22 °C, 25 °C, 28 °C. JIKA suhu 30 °C ke atas, MAKA hidupkan kipas.
Tips for grown-ups
- Draw a flowchart for “Is it a school day?” with your child.
- Trace a simple loop together: start at 1 and add 2 until you pass 10.