Design & Development 005 Flashcards

1
Q

What is a Data Structure?

A

It is a way to store multiple values into one variable. These are things like Lists and Dictionaries.

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

What are these?

list_example = [1,2,3]

tuple_example = (1,2,3)

set_example = {1,2,3}

dictionary_example = {
“Name”: “Owen”,
“Job”: “SD Lecturer”
}

A

These are all Data Structures in python.

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

What is a Set?

A

It is a data structure that cannot contain duplicate values.

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

What is a Dictionary?

A

It is a data structure that has a “key:value” system. This is like having variable in a list.

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

What is a Trace Table?

A

It is used to show what should output and what all values should equal. This done without the program running.

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