Dictionary Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is this used to represent?

A

Hash tables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What kind of a data type is this?

A

An abstract data type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What languages is this built into?

A

python and visual basic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does a dictionary allow?

A

easy addition and removal of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly