PYTHON - 14.07.2023
Quiz
•
Computers
•
University
•
Hard
N.ILAYARAJA IT
Used 3+ times
FREE Resource
Enhance your content in a minute
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code snippet do?
my_list = [1, 2, 3, 4, 5]
result = [num for num in my_list if num % 2 == 0]
Doubles each element in my_list.
Filters out even numbers from my_list.
Filters out odd numbers from my_list.
Reverses the order of elements in my_list.
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following are true of Python lists
A given object may appear in a list more than once
There is no conceptual limit to the size of a list
These represent the same list:
['a', 'b', 'c']
['c', 'a', 'b']
All elements in a list must be of the same type
A list may contain any type of object except another list
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a keyword?
Reserved Word
Predefined Word
Keywords are part of the syntax and they cannot be used as an identifier.
All of them
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def m(list):
v = list[0]
for e in list:
if v < e: v = e
return v
values = [[3, 4, 5, 1], [33, 6, 1, 2]]
for row in values:
print(m(row), end = " ")
3 33
1 1
5 6
5 33
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the arithmetic operator which is used to calculate exponential.
*
%
!
**
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output for − min(''hello world'')
e
a blank space character
w
none
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
print(type(3.14))
int
float
str
bool
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
System and network support and management
Quiz
•
11th Grade - Professi...
20 questions
C - Structures
Quiz
•
University
20 questions
DreamWeaver CS6
Quiz
•
University
20 questions
The Firm and Its Environment
Quiz
•
University
20 questions
3°DS _AV2_R2 3TEC_PM_Programação Mobile _12_20 Quizizz
Quiz
•
11th Grade - University
20 questions
English Writing Skills Quiz
Quiz
•
University
19 questions
DSA Quest 1.0
Quiz
•
University
20 questions
MIDTERM-SW3 MARKETING COMMUNICATION
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
