Python - Set Methods - 7

Python - Set Methods - 7

12th Grade

10 Qs

quiz-placeholder

Similar activities

~Royale High~

~Royale High~

KG - University

8 Qs

Project Data

Project Data

3rd Grade - University

10 Qs

Control Account (Sales Control Account)

Control Account (Sales Control Account)

12th Grade

9 Qs

Stock and Ramp: A Lookback Pre-break

Stock and Ramp: A Lookback Pre-break

12th Grade

14 Qs

Programming Concepts Quiz

Programming Concepts Quiz

10th Grade - University

15 Qs

NRF Customer Service & Sales - IC Practice

NRF Customer Service & Sales - IC Practice

9th - 12th Grade

10 Qs

Royale high quiz

Royale high quiz

KG - 12th Grade

10 Qs

IED: Unit 3

IED: Unit 3

9th - 12th Grade

11 Qs

Python - Set Methods - 7

Python - Set Methods - 7

Assessment

Quiz

Other

12th Grade

Hard

Created by

Amy Austin

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method adds an element to the set?

push()

append()

insert()

add()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method removes all the elements from the set?

clear()

removeAll()

delete()

empty()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method returns a set containing the difference between two or more sets?

difference()

diff()

minus()

subtract()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method returns a set that is the intersection of two other sets?

intersect()

intersection()

join()

cross()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method removes the specified item from the set?

remove()

delete()

discard()

erase()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method returns whether two sets have an intersection or not?

isdisjoint()

hasIntersection()

crosses()

intersects()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method returns whether another set contains this set or not?

isContained()

issubset()

contains()

isInside()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?