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
Similar Resources on Wayground
15 questions
AI Trivia

Quiz
•
Professional Development
20 questions
Embedded Systems and Automation

Quiz
•
Professional Development
10 questions
Java Strings

Quiz
•
1st Grade - Professio...
10 questions
Introducción a Variables y Tipos en Python

Quiz
•
Professional Development
10 questions
Snakes

Quiz
•
3rd Grade - Professio...
10 questions
AKHLAK Sharing ERM

Quiz
•
Professional Development
20 questions
Data Structure

Quiz
•
Professional Development
10 questions
PPDM - Introdução

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development