Set 1

Set 1

12th Grade

10 Qs

quiz-placeholder

Similar activities

Commercial Fruit

Commercial Fruit

9th Grade - University

15 Qs

Royale High Quiz

Royale High Quiz

1st Grade - University

15 Qs

Nature quiz for Luna

Nature quiz for Luna

KG - Professional Development

9 Qs

SpongeBob and Patrick's Adventures

SpongeBob and Patrick's Adventures

12th Grade

10 Qs

Food Review

Food Review

9th - 12th Grade

15 Qs

who knows Richelle better

who knows Richelle better

KG - University

10 Qs

Quiz

Quiz

9th - 12th Grade

10 Qs

Fun with Food

Fun with Food

1st Grade - University

10 Qs

Set 1

Set 1

Assessment

Quiz

Other

12th Grade

Easy

Created by

Amy Austin

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is used in Python to store multiple items in a single variable, which is unordered, unchangeable, and unindexed?

List

Tuple

Set

Dictionary

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to add an item to a set in Python?

append()

add()

push()

insert()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following set operation: {'apple', 'banana', 'cherry', 'apple'}?

{'apple', 'banana', 'cherry'}

Error

{'apple', 'banana', 'cherry', 'apple'}

{'banana', 'cherry'}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python sets, what is considered the same value?

1 and 0

None and False

True and False

True and 1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you determine the number of items in a set?

length()

len()

size()

count()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a correct way to create a set?

set(('apple', 'banana', 'cherry'))

{'apple', 'banana', 'cherry'}

set['apple', 'banana', 'cherry']

set('apple', 'banana', 'cherry')

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which collection type in Python is ordered and changeable, and allows duplicate members?

Set

Tuple

List

Dictionary

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?