
Loop! opss!!!
Quiz
•
Other
•
University
•
Practice Problem
•
Medium
Farhana Johar
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a type of loop in most programming languages?
Which of the following is a type of loop in most programming languages?
if loop
switch loop
for loop
goto loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of using loops in programming?
to create multiple function
to declare variables
to repeat a block of code
to debug code
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop is best used when the number of iterations is known beforehand?
while
for
switch
do-while
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the given code?
1 2 3
0 1 2
0 1 2 3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword can be used to end the program immediately?
break
continue
next
return
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct increment in a 'for loop'?
i=+1
i+=1
i+1=
i:+1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output?
infinite loop
no output
print "Hello" once
syntax error
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?
Similar Resources on Wayground
12 questions
Alberta Natural Resources #2
Quiz
•
KG - University
10 questions
RH MAS level2
Quiz
•
KG - Professional Dev...
13 questions
Accounting 100
Quiz
•
University
10 questions
Competencias Ciudadanas
Quiz
•
University
10 questions
17 course French classical menu 01
Quiz
•
University
10 questions
اسئلة عامة
Quiz
•
University - Professi...
10 questions
Games SRI 2023
Quiz
•
University
15 questions
A4/B3 Maintenance Assessment Power transmission system
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
