Search Header Logo

Tuples and Dictionaries

Authored by Fatmah Alkhzaimi

Computers

10th Grade

Used 16+ times

Tuples and Dictionaries
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Choose the immutable data type.

Tuples

Set

List

Dictionaries

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A dictionary is an example of a sequence type

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A Python dictionary stores

value - key pairs

values

keys

key - value pairs

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following creates an empty dictionary? You can choose more than one answer

D = dict()

D = ()

D = []

D = {}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

t = (1, 2, 3, 4)

t.append(5)

print (len(t))

1

Error

5

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Items are accessed by their position in a dictionary

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_________method will returns number of key-value pairs in the given dictionary.

len()

del()

keys()

values()

Access all questions and much more by creating a free account

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

Already have an account?