CLASS - VICHAPTER - Loops using block codingWorksheets
Objective Type Questions
Question 1 The if the statement is used to execute some code
if a statement is
true.
Option 1 True
Option 2 False
Answer: Option 1
Question 2 An else statement should always be after an if
statement which
executes when the code is false.
Option 1 True
Option 2 False
Answer: Option 1
Question 3 A while loop statement repeatedly executes a
statement as long as
the condition remains true
Option 1 True
Option 2 False
Answer: Option 1
Question 4 Without a statement that eventually evaluates the
while loop
condition to false, the loop will continue indefinitely
Option 1 True
Option 2 False
Answer: Option 1
Question 5 A for loop executes for a specific number of
times
Option 1 True
Option 2 False
Answer: Option 1
Question 6 A continue statement is used to skip all the
remaining statements in
the loop and moves the control back to the top of the loop.
Option 1 True
Option 2 False
Answer: Option 1
Question 7 When a break statement is encountered inside a
loop, the loop is
immediately terminated, and the program execution moves on
to the
next statement in the loop.
Option 1 True
Option 2 False
Answer: Option 1
Loops using block coding
72 | P a g e
Question 8 Doing something over and over again or repeating
code is called as
Option 1 Code
Option 2 loop
Option 3 Program
Option 4 Bug
Answer: Option 2
Question 9 Which is the correct operator for equality
testing?
Option 1 ==
Option 2 =
Option 3 !=
Option 4 +=
Answer: Option 1
Question 10 What is the output of the below pseudocode?
Option 1 5
Option 2 10
Option 3 15
Option 4 0
count = 0;
sum = 0;
while (count < 5)
{
sum = sum + count;
count = count + 1;
}
print sum;
Answer: Option 1
Question 11 Which letter won’t print while running the below
pseudocode?
Option 1 ‘d’
Option 2 ‘c’
Option 3 ‘n’
Option 4 ‘o’
for letter in "coding":
if letter ==
"i":
break
print(letter)
print("End")
Answer: Option 3
Question 12 Which letter won’t print while running the below
pseudocode?
Option 1 ‘g’
Option 2 ‘o’
Option 3 ‘d’
Option 4 ‘i’
for letter in "coding":
if letter ==
"i":
continue
print(letter)
print("End")
Answer: Option 4
Objective Type Questions
Question 1 The if the statement is used to execute some code
if a statement is
true.
Option 1 True
Option 2 False
Answer: Option 1
Question 2 An else statement should always be after an if
statement which
executes when the code is false.
Option 1 True
Option 2 False
Answer: Option 1
Question 3 A while loop statement repeatedly executes a
statement as long as
the condition remains true
Option 1 True
Option 2 False
Answer: Option 1
Question 4 Without a statement that eventually evaluates the
while loop
condition to false, the loop will continue indefinitely
Option 1 True
Option 2 False
Answer: Option 1
Question 5 A for loop executes for a specific number of
times
Option 1 True
Option 2 False
Answer: Option 1
Question 6 A continue statement is used to skip all the
remaining statements in
the loop and moves the control back to the top of the loop.
Option 1 True
Option 2 False
Answer: Option 1
Question 7 When a break statement is encountered inside a
loop, the loop is
immediately terminated, and the program execution moves on
to the
next statement in the loop.
Option 1 True
Option 2 False
Answer: Option 1
Loops using block coding
72 | P a g e
Question 8 Doing something over and over again or repeating
code is called as
Option 1 Code
Option 2 loop
Option 3 Program
Option 4 Bug
Answer: Option 2
Question 9 Which is the correct operator for equality
testing?
Option 1 ==
Option 2 =
Option 3 !=
Option 4 +=
Answer: Option 1
Question 10 What is the output of the below pseudocode?
Option 1 5
Option 2 10
Option 3 15
Option 4 0
count = 0;
sum = 0;
while (count < 5)
{
sum = sum + count;
count = count + 1;
}
print sum;
Answer: Option 1
Question 11 Which letter won’t print while running the below
pseudocode?
Option 1 ‘d’
Option 2 ‘c’
Option 3 ‘n’
Option 4 ‘o’
for letter in "coding":
if letter ==
"i":
break
print(letter)
print("End")
Answer: Option 3
Question 12 Which letter won’t print while running the below
pseudocode?
Option 1 ‘g’
Option 2 ‘o’
Option 3 ‘d’
Option 4 ‘i’
for letter in "coding":
if letter ==
"i":
continue
print(letter)
print("End")
Answer: Option 4