Final Exam Chapter 5 - 6 Flashcards

1
Q

What is an Array

A

A variable with multiple indexed slots for holding data

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

What is Linked list

A

A variable that creates a chain of data where one data item points to another

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

What Queue

A

A variable that allows data to enter at one end of a collection and leave at the other end, supporting a first-in, first-out mechanism

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

What is Hash

A

A variable that has exactly two columns and (potentially) many rows of data

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

What is Set

A

A variable that contains a collection of unique data items

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

What is hash

A

a data structure that associates a name with a value

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

What is s[‘age’]

A

retrieve the value associated with the ‘age’ name in a hash called ‘s’

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

What is database system

A

a technology, like SQLite3, that can store large

quantities of data in a very efficient way

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

What s[‘wind’] = “off shore”

A

sets that value associated with “wind” in the “s” hash to the value “off shore”

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

What is s.items( )

A

provide a list of keys AND values for the hash called ‘s’

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

What is line.split(“,”)

A

split the string contained within the ‘line’ variable at every occurrence of a comma

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

What is sorted()

A

a built-in function that can sort most data structures

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

String formats let you use format

A

specifiers to format strings.

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

String specifiers let you define the type,

A

the length, and the padding used in a format

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

Breaking code into separate files is called

A

modular programming.

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

Writing modular code is like writing your

A

own libraries

17
Q

Fully Qualified Names (FQNs) are function names that

A

include module names.

18
Q

Use “from … import *” to run

A

code module functions without module names.

19
Q

Use “import …” if you need to qualify your function

A

names with a module name using an..