Tuples and Dictionaries

Tuples and Dictionaries

10th Grade

12 Qs

quiz-placeholder

Similar activities

Python Data Structures

Python Data Structures

10th Grade

10 Qs

Python Dictionary Quiz

Python Dictionary Quiz

9th - 12th Grade

10 Qs

DSZP-prog-03

DSZP-prog-03

9th - 12th Grade

10 Qs

Word Module 2 Review #2

Word Module 2 Review #2

9th - 10th Grade

15 Qs

Python

Python

6th - 10th Grade

15 Qs

Intro to IF statements

Intro to IF statements

KG - University

13 Qs

Internet terminology

Internet terminology

10th - 12th Grade

14 Qs

ITGS: 1.02 Security and 1.05 Authenticity

ITGS: 1.02 Security and 1.05 Authenticity

9th - 12th Grade

12 Qs

Tuples and Dictionaries

Tuples and Dictionaries

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Fatmah Alkhzaimi

Used 15+ times

FREE Resource

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()

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?