
RL Python Basics Quiz 2

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Aahnik Daw
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
string = "Python is awesome"
string[9:3:-1]
' si no'
' '
' si noh'
'i no'
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
my_dict = {
"apple": 5,
"banana": 10,
"brinjal": 30
}
my_dict.items() will give ?
all the values
all the keys
the entire dictionary
tuple of key value pairs
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How can I delete all the items from a set in python ?
my_set = {1,2,3,4,5,6}
my_set.clear()
for item in my_set:
my_set.remove(item)
for item in my_set:
my_set.discard(item)
my_set.discard()
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
s1 = {3,4,5,6}
s2 = {2,3,9,6,12}
s1.intersection(s2)
{3, 6}
{2,3,6}
{5,9,6}
{3,4,5,6}
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Find the elements in set a that are not in set b
a - b
a.union(b)
a.intersection(b)
a.symmetric_difference(b)
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
a = {1,2,3,4,5}
b = {2,3,4,9 , 10}
c = {6,7,8,9}
print(a.isdisjoint(b))
print(b.isdisjoint(c))
print(a.isdisjoint(c))
False
False
True
True
False
False
False
True
False
False
True
True
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
a = {1,2,3,4,5,10}
b = {2,3,4,9 , 10}
c = {6,7,8,9}
print((a-b).issubset(a))
print(a.issubset(b))
print(b.issuperset(c))
print(a.symmetric_difference(c).issuperset(b))
True
False
False
True
False
False
False
True
False
True
False
True
True
True
False
False
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Google Docs

Quiz
•
9th Grade
11 questions
Python Boolean

Quiz
•
11th - 12th Grade
10 questions
Python Strings

Quiz
•
12th Grade
13 questions
python A

Quiz
•
10th Grade
13 questions
MS Powerpoint Quiz

Quiz
•
9th Grade
12 questions
Python set

Quiz
•
10th Grade
13 questions
Program Development - Python: Errors

Quiz
•
8th - 10th Grade
10 questions
Python Basics

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade