Feel free to use or edit a copy
includes Teacher and Student dashboards
Measures 1 skill from
Measures 1 skill from
Track each student's skills and progress in your Mastery dashboards
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
10 questions
Show answers
- Q1What is meant by iteration?Iteration is a looping a section of codeIteration is executing the lines in order line by lineIteration is checking whether a condition is falseIteration is checking whether a condition is true45s3.2.2.b
- Q2What is the difference between a definite iteration and indefinite iteration?An indefinite iteration will loop a certain amount of times and a definite iteration will loop until a condition is metA definite iteration will loop a certain amount of times and a indefinite iteration will loop until a condition is metA definite and indefinite iteration will loop foreverA definite and indefinite iteration will check if a condition is true60s3.2.2.b
- Q3What does REPEAT UNTIL mean?The loop will continue until a condition is metThe section of code will iteration while a condition is trueThe section of code will iterate to the maximum numberThe section of code will iterate for a certain amount of times45s3.2.2.b
- Q4Which is the correct structure for a REPEAT-UNTIL loop?REPEAT UNTILFOR i <-- 1 to 10 END FORREPEAT END REPEATWHILE END WHILE45s3.2.2.b
- Q5What is the purpose of this piece of code?To check if the number is higher or lower than the guessTo loop from 1 to 10To check if the number is equal to the guessIt will keep repeating forever45s3.2.2.b
- Q6Why would you use a WHILE iteration instead of a REPEAT UNTIL?It uses less amount codeA while loop is significantly fasterIt's less processor heavyA REPEAT UNTIL must happen at least once and this may not always be desirable.45s3.2.2.b
- Q7Which program will set off an alarm if the temperature goes below 10 degrees?REPEAT OUTPUT warningBeep() temp <-- USERINPUT END WHILEtemp <-- USERINPUT WHILE temp < 10 OUTPUT warningBeep() temp <-- USERINPUT END WHILEtemp <-- USERINPUT WHILE TRUE warningBeep() temp <-- USERINPUT END WHILEtemp <-- USERINPUT WHILE temp = 10 OUTPUT warningBeep() temp <-- USERINPUT END WHILE120s3.2.2.b
- Q8What is meant by a count-controlled loop?A count-controlled loop will loop foreverA count-controlled loop will check if a condition is trueA count-controlled loop will be an indefinite loopA count-controlled loop will iterate a certain amount of times45s3.2.2.b
- Q9Which is the correct format for a count-controlled loop?temp <-- USERINPUT WHILE temp = 10 OUTPUT warningBeep() temp <-- USERINPUT END WHILEtemp <-- USERINPUT WHILE temp < 10 OUTPUT warningBeep() temp <-- USERINPUT END WHILEREPEAT OUTPUT warningBeep() temp <-- USERINPUT END WHILEFOR i <-- 1 to 10 END FOR45s3.2.2.b
- Q10Which program will ask the user to work out the average test score for 30 pupils. The teacher needs to input each score?FOR i <-- 1 to 20 mark <-- USERINPUT totalScore = mark + totalScore END FOR average = totalScore / 30DO mark <-- USERINPUT totalScore = mark + totalScore UNTIL average = totalScore / 30WHILE MARK < 30 mark <-- USERINPUT totalScore = mark + totalScore average = totalScore / 30FOR i <-- 1 to 30 mark <-- USERINPUT totalScore = mark + totalScore END FOR average = totalScore / 30120s3.2.2.b