NEW
Font size
S
M
L
XL
WorksheetsLoops
Total questions: 5
Worksheet time: 3mins
Name
Class
Date
1.
What is a Loop?
a)
It is a set of instructions that can do a specific task.
b)
It contains a set of instructions that a computer repeats to complete a task.
c)
It stores the value repeatedly.
d)
It runs the computer continuously.
2.
Which operator is used to add one value to the operand and returns the value?
a)
+
b)
=
c)
++
d)
==
3.
Expand: Chocolate--;
a)
Chocolate= Chocolate - Chocolate;
b)
Chocolate=-Chocolate;
c)
Chocolate= Chocolate - (any number);
d)
Chocolate= Chocolate - 1;
4.
A ___ loop repeats the code for the specified number of times.
a)
while loop
b)
for loop
c)
do-while loop
d)
repeat loop
5.
How many types of loops are there in JavaScript?
a)
4
b)
3
c)
2
d)
1
Reset
