Back to marketplace

Dictionaries

No description yet. This curated deck is ready for daily study.

Total cards: 9•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (9)

#1
Front (Question)

What type of data type is a dictionary?

Back (Answer)

Abstract data type

#2
Front (Question)

Define dictionary

Back (Answer)

An unordered collection of data as a set of key-value pairs

#3
Front (Question)

What data type is a key?

Back (Answer)

Any simple data type

#4
Front (Question)

Name 4 standard dictionary operations

Back (Answer)

retrieve a value associated with a particular key insert a new key-value pair into the collection remove a key-value pair from the collection update a value associated with a key

#5
Front (Question)

Advantages of using a key

Back (Answer)

Allows direct access to items stored within the collection Provides faster access to unordered data

#6
Front (Question)

How are dictionaries usually implemented?

Back (Answer)

Using hash tables

#7
Front (Question)

Are dictionaries unordered or ordered and why?

Back (Answer)

Unordered because data is arranged to optimise the speed of retrieving by key

#8
Front (Question)

How is a key used?

Back (Answer)

The same way as an index for an array is

#9
Front (Question)

What do you need to insert a new value?

Back (Answer)

A unique key and the data