Lists and operators
Quiz
•
Other
•
Professional Development
•
Hard
Aparna Gadepalli
Used 6+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Logical AND operator returns true if?
Both operands are true
Either operand is true
Both operands are false
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operators checks for the equality of two operands
=
==
Both
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Operands of the logic operator must be of which type?
Numeric
Boolean
String
All of the above
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
nums = list({1:'one',2:'two'})
print(nums)
Syntax error
[1,2]
['one','two']
Runtime error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an invalid list object?
list(“Hello”)
[10, 1.235+5j, ‘python’]
[(1,2), (3,4)]
All are valid
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The list.pop() function wil'
Remove first element from the list
Remove last element from the list
Add an element to the list
Will delete the list
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
x = x[x for x in range of 10 if x<5]
print (x)
[1,2,3,4,5]
[]
[5,6,7,8,9]
[0,1,2,3,4]
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
15 questions
Football Quiz
Quiz
•
KG - Professional Dev...
10 questions
Work Experience Preparation - Christmas Term
Quiz
•
Professional Development
10 questions
Exoictic cars.
Quiz
•
5th Grade - Professio...
12 questions
Roofing Terms
Quiz
•
Professional Development
10 questions
NSD Quiz 2!
Quiz
•
Professional Development
16 questions
Surf Awareness Deep Dive
Quiz
•
Professional Development
20 questions
Digital Payments Awareness
Quiz
•
Professional Development
14 questions
Health and safety
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Other
10 questions
Identifying Phishing Emails Quiz
Quiz
•
Professional Development
14 questions
2019 Logos
Quiz
•
Professional Development
7 questions
Tone and Mood Quick Check
Quiz
•
Professional Development
32 questions
Abbreviations and Equivalents
Lesson
•
6th Grade - Professio...
5 questions
11.4.25 Student Engagement & Discourse
Lesson
•
Professional Development
