To which of the following the "in" operator can be used to check if an item is in it?

python quiz

Quiz
•
Computers
•
University
•
Hard
Sujata B
Used 2+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
lists
tuples
dictionaries
All of the above
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Python code?
>>>t=(1,2,4,3)
>>>t[1:3]
(1,2)
(1,2,4)
(2,4)
(2,4,3)
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What will be the output of the following Python code?
d = {"john":40, "peter":45}
d["john"]
40
50
"jhon"
"peter"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
>>>t = (1, 2)
>>>2 * t
(1, 2, 1, 2)
[1, 2, 1, 2]
(1, 1, 2, 2)
[1, 1, 2, 2]
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
How do you add an element to end of list in python?
list.add(element)
list.append(0,element)
list.append(element)
list.extend(element)
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
How do you find the number of elements in a list in python?
list.size()
list.count()
list.length()
len(list)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the result of the following code:
list1=[1,2,3]
list2=list1
list2[1]=4
print(list1)
[1,2,3]
[1,4,3]
[4,2,3]
error
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Round 1

Quiz
•
University
10 questions
Python Unit 3

Quiz
•
University
16 questions
Fundamentos de Python

Quiz
•
University
15 questions
Python Quiz (Basics,List,Tuple)

Quiz
•
University
15 questions
Python

Quiz
•
University
10 questions
Q2 - Python

Quiz
•
University
7 questions
Python Day 8

Quiz
•
University
15 questions
PyTron

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade