Worksheets › Class 6 › Loops and Conditions
Class 6 · Computational Thinking and AI worksheetLoops 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.
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.
Repeating a set of steps again and again is called a:
- condition
- pixel
- bug
- loop
Answer
(d) loop
- 2.
Start with n = 8. While n is 114 or less: say n, then add 6 to n. How many numbers are said?
- 18
- 17
- 19
- 20
Answer
(a) 18
8, 14, …, 110: (110 − 8) ÷ 6 + 1 = 18
- 3.
x = 1 Repeat 7 times: x = x + 11 What is x at the end?
- 89
- 77
- 67
- 78
Answer
(d) 78
1 + 7 × 11
Section B · short answer
- 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.
- 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
- 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.