Dictionary-Built in functions- len,clear,get

Dictionary-Built in functions- len,clear,get

11th Grade

5 Qs

quiz-placeholder

Similar activities

Vocabulary Do Now 1

Vocabulary Do Now 1

9th - 12th Grade

10 Qs

A Level - Data Structures 1

A Level - Data Structures 1

11th Grade

10 Qs

Python Lists and Dictionaries

Python Lists and Dictionaries

11th - 12th Grade

7 Qs

Dictionary-Review

Dictionary-Review

11th Grade

10 Qs

CS Python Fundamentals Test 12 PRACTICE

CS Python Fundamentals Test 12 PRACTICE

9th - 12th Grade

10 Qs

Project Stem Python

Project Stem Python

9th - 12th Grade

10 Qs

H466 - Arrays, Records, Tuples and Lists

H466 - Arrays, Records, Tuples and Lists

11th Grade - University

10 Qs

Python Brain Teaser

Python Brain Teaser

4th Grade - Professional Development

6 Qs

Dictionary-Built in functions- len,clear,get

Dictionary-Built in functions- len,clear,get

Assessment

Quiz

Computers

11th Grade

Medium

Created by

KIRAN THAYIL

Used 3+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

______ method returns the number of key-value pairs in the given dictionary.

count()

len()

sum()

number()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Name the built in function that removes all items from the dictionary.

clear()

remove()

delete()

pop()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to return a value for the given key?

return()

access()

get()

values()

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Dictionaries are ____, which means we can modify its values.

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Keys in a dictionary must be ______.