
RL Python Basics Quiz 2
Authored by Aahnik Daw
Computers
9th - 12th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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)
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))
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))
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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
11 questions
HEALTH AND SAFETY 9
Quiz
•
7th - 9th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
Ứng xử trong môi trường số
Quiz
•
10th Grade
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
10 questions
SHORTCUT PADA KEYBOARD
Quiz
•
10th - 12th Grade
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade