INSY 3300 quiz 6

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:04 PM on 4/15/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

12 Terms

1
New cards

difference

removes elements in one set based on the other

2
New cards

intersect

combines common elements in both sets

3
New cards

symmetric difference

identifies elements present in only one set

4
New cards

superset

Tests if a set that contains all elements of another set (and possibly more)

5
New cards

union

combines elements in both sets

6
New cards

subset

Tests if every element of one set is also in another set

7
New cards

Select all the statements that are TRUE about a dictionary

A tuple can be a key in a dictionary

keys must be immutable in a dictionary

A string can be a key in a dictionary

8
New cards

The values of a dictionary must be unique

False

9
New cards

johns_class = set(["Monday", "Wednesday"])
marys_class = set([ "Tuesday", "Thursday"])

common_days = johns_class & marys_class

print(len(common_days))

What is the output of the above code?

0

10
New cards

johns_class = set(["Monday", "Wednesday"])
marys_class = set([ "Tuesday", "Thursday"])

all_days = johns_class | marys_class

print(len(all_days ))

What is the output of the above code?

4

11
New cards

johns_class = set(["Monday", "Wednesday"])
marys_class = set([ "Tuesday", "Thursday"])

diff_days = johns_class - marys_class

print(len(diff_days ))

What is the output of the above code?

2

12
New cards

johns_class = set(["Monday", "Wednesday"])
marys_class = set([ "Tuesday", "Thursday"])

exclusive_days = johns_class ^ marys_class

print(len(exclusive_days ))

What is the output of the above code?

4