
PYTHON SETS
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
RAVINDER B
Used 11+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following are true for objects of Python’s set type
The order of elements in a set is significant.
A set may contain elements that are mutable.
A given element can’t appear in a set more than once.
Sets are mutable.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not the correct syntax for creating a set?
set([[1,2],[3,4]])
set([1,2,2,3,4])
set((1,2,3,4))
{1,2,3,4}
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statements is used to create an empty set?
{}
set()
[]
()
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If a={5,6,7,8}, which of the following statements is false?
print(len(a))
print(min(a))
a.remove(5)
a[2]=45
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these about a frozenset is not true?
Mutable data type
Allows duplicate values
Data type with unordered values
Immutable data type
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose t = (1, 2, 4, 3), which of the following is incorrect?
print(t[3])
t[3] = 45
print(max(t))
print(len(t))
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
t = (1, 2)
print(2*t)
(1, 2, 1, 2)
[1, 2, 1, 2]
(1, 1, 2, 2)
[1, 1, 2, 2]
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
15 questions
Lógica de Programação
Quiz
•
Professional Development
15 questions
Cloud Computing Model Exam-IV PART-B
Quiz
•
Professional Development
10 questions
beans
Quiz
•
Professional Development
10 questions
NHANH TAY, NHANH MẮT
Quiz
•
Professional Development
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
15 questions
SEC+ Ch.8 Review Test
Quiz
•
Professional Development
13 questions
Excel evaluación
Quiz
•
Professional Development
12 questions
Penilaian Pengetahuan 2 KSK2023
Quiz
•
Professional Development
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
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
