Dictionary Flashcards
1
Q
What is this used to represent?
A
Hash tables
2
Q
What kind of a data type is this?
A
An abstract data type
3
Q
What is it?
A
abstract data type consisting of associated pair of itmes when each pair consists of a key and a value.
4
Q
What languages is this built into?
A
python and visual basic
5
Q
What does a dictionary allow?
A
easy addition and removal of data
6
Q
What are some operations on a dictionary?
A
- create an empty dictionary
- add a new key:value pair
- delete a key:pair
- amend a value of key:pair
- return a value associated with a key
- check if item exists in dictionary
- return the length of a dictionary