
5.1Loops in Swift
Authored by Dipak Mondal
Computers
4th Grade
Used 9+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of loop would you use to play your favorite song 3 times?
for loop
forever loop
until loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of loop would you use for flying your Flappy character until the space key is pressed?
for loop
forever loop
until loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of loop would you use to keep a digital clock running?
for loop
forever loop
until loop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A piece of code that you can call whenever you want it.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is coding?
Repeated actions in the program
Algorithmic thinking skills
Telling a computer what to do.
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to turn a switch on?
toggle()
activateSwitch()
toggleSwitch()
onSwitch()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For loops can be useful for
fastening a handle made of rope
running a block of code over and over for a set number of times
encircling an object
keeping a privileged group informed
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?