Online test · 10 questions

Loops & Conditions

Pick the best answer for each question, then submit. Auto-graded — your score is saved to your dashboard.

Q1The main purpose of a loop is to…
Q2for (let i = 1; i <= 3; i++) runs how many times?
Q3Which makes a decision in code?
Q45 % 2 equals…
Q5Which numbers make i % 2 === 0 true?
Q6In i++, after one run i goes from 3 to…
Q7What does the loop body do each repeat in our star example?
Q8Which pairs an idea with its keyword correctly?
Q9A game checking "is health 0? then game over" uses a…
Q10Why are loops useful for drawing many similar shapes?