Worksheets › Class 6 › Loops and Conditions

Class 6 · Computational Thinking and AI worksheet

Loops and Conditions

CBSE Computational Thinking and AI. Counting loops, repeat and while loops, nested loops, if–otherwise rules and drawing shapes with a loop. Every sheet has 20 questions in three sections and an answer key, and the questions change every time.

Open a printable sample sheet

Sample questions

Real questions from this chapter, as the app sets them. Tap Answer to see the answer and working.

Section A · multiple choice

  1. 1.

    Repeating a set of steps again and again is called a:

    1. condition
    2. pixel
    3. bug
    4. loop
    Answer

    (d) loop

  2. 2.

    Start with n = 8. While n is 114 or less: say n, then add 6 to n. How many numbers are said?

    1. 18
    2. 17
    3. 19
    4. 20
    Answer

    (a) 18

    8, 14, …, 110: (110 − 8) ÷ 6 + 1 = 18

  3. 3.

    x = 1 Repeat 7 times: x = x + 11 What is x at the end?

    1. 89
    2. 77
    3. 67
    4. 78
    Answer

    (d) 78

    1 + 7 × 11

Section B · short answer

  1. 4.

    What is a loop? Give an example from daily life.

    Answer

    Repeating steps again and again, e.g. stirring a pot "until the sugar dissolves" or doing 10 skips.

  2. 5.

    Start with n = 13. While n is 88 or less: say n, then add 6 to n. How many numbers are said?

    Answer

    13

    13, 19, …, 85: (85 − 13) ÷ 6 + 1 = 13

Section C · long answer

  1. 6.

    A robot draws using "repeat N times: move forward 20, turn right T°". (a) What N and T draw a square? (b) An equilateral triangle? (c) Why must N × T be 360?

    Answer

    (a) N = 4, T = 90. (b) N = 3, T = 120. (c) To close the shape the robot must turn through one full turn, 360°, in total.

Fresh sheets for your child

In the app, every Loops and Conditions sheet is new: the app remembers the questions your child has already had and leaves them out. Print the sheet as a PDF, or use notebook mode and write the answers in a notebook.

Coming soon for Android and iPhone.

More Class 6 Computational Thinking and AI