Python Sets
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Easy
surag patel
Used 1+ times
FREE Resource
Student preview

32 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of these is a set?
myset = ('apple', 'banana', 'cherry')
myset = ['apple', 'banana', 'cherry']
myset = {'apple', 'banana', 'cherry'}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Set items cannot be removed after the set has been created.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A set cannot have two items with the same value.
True
False
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Select the correct function for returning the number of items in a set:
fruits = {'apple', 'banana', 'cherry'}
print(___________(fruits))
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False. You can access set items by referring to the index.
True
False
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Check if "apple" is present in the fruits set.
fruits = {"apple", "banana", "cherry"}
if "apple" _______ fruits: print("Yes, apple is a fruit!")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code:
thisset = {'apple', 'banana', 'cherry'}
print('banana' not in thisset)
What will be the printed result?
True
False
{'apple', 'cherry'}
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
Already have an account?
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Computers
40 questions
Introduction to Microsoft Word
Quiz
•
8th - 12th Grade
85 questions
Word Processing Review
Quiz
•
8th - 9th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
39 questions
UNIT 7 and UNIT 8 — Multiple Choice Question Bank (Extracted)
Quiz
•
9th Grade
31 questions
Python Conditionals Review
Quiz
•
9th - 12th Grade