ExamVeda
Login
Home
11
Which statement can be used to terminate the current iteration and move to the next one in a loop?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
12
In a while loop, what is the role of the condition?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
13
What is the purpose of the else clause in a loop?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
14
In Python, which loop ensures that the body of the loop is executed at least once?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
15
In Python, what is the purpose of the pass statement?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
16
Which loop is guaranteed to execute at least once?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
17
What is the purpose of the continue statement in loops?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
18
What is the output of the code:
for i in range(2, 8, 2):
    print(i)
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
19
What does the range() function return when used without specifying a start and step value?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
20
What is the output of the following code:
for i in range(1, 6):
    print(i)
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board