Weekly Contest #11

Quiz
•
Education
•
University
•
Medium
TechXNinjas undefined
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is used to exit a loop prematurely?
return
break
exit
close
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about the "do-while" loop?
It is similar to the "while" loop
It does not support a loop condition
The loop body is executed at least once
It can only be used for counting
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
................. can only test for equality, where as ....................... can evaluate any type of the Boolean expression.
switch, if
if, switch
if, break
continue, if
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the "elif" statement in Python?
To handle exceptions
To create a loop
To define a function
To check additional conditions after the initial if statement
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?
for i in range(5):
if i == 3:
continue
print(i)
0 1 2 3 4
0 1 2
0 1 2 3
0 1 2 4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?
def function(x):
return x * 3
numbers = [1, 2, 3, 4, 5]
result = list(map(lambda num: function(num), numbers))
print(result)
[3, 6, 9, 12, 15]
[1, 2, 3, 4, 5]
[1, 3, 9, 16, 25]
[3, 4, 5, 6, 7]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the del statement?
Deletes a file from the filesystem
Removes an element from a list by value
Removes an attribute from an object
Exits the program
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
DFC20113 Chapter 3

Quiz
•
University
9 questions
Tynker Tynker

Quiz
•
3rd Grade - Professio...
10 questions
Unit 2

Quiz
•
University
10 questions
News Item Grade XII

Quiz
•
University
10 questions
Getting Started with Functions

Quiz
•
University
10 questions
TUTORIAL 1 UNDERSTANDING CIRCULAR BUSINESS MODELS

Quiz
•
University
14 questions
2600 Final Exam Review

Quiz
•
University
10 questions
WEEK 10 - JAVA

Quiz
•
University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Education
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University