Midterm 1 Flashcards

1
Q

executes the body for each value of a sequence, hash, terable

A

for loop

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

returns its value one at a time

A

iterable

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

jumps out of the current loop beyond the else

A

break

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

jumps to top of the loop

A

continue

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

does no operation

A

pass

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

a sequence of arbitrary items

A

list

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

an ordered set of items

A

sequence

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

a value can not be changed in place

A

immutable

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

build a list by running a for loop through a sequence

A

list comprehension

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

a sequence of items that are immutable

A

tuple

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

returned when nothing appears to be returned

A

None

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

a mapping (key and value)

A

dictionary

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

a value can be changed in place

A

mutable

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

leads the computer through necessary steps as the program runs

A

interpreter

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

integrated development environment

A

IDE

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

ties together utilities, library components, and operating system commands into complete programs

A

scripting language

17
Q

computer that doesn’t exist, but has a defined language

A

virtual machine

18
Q

function to create an iterable

A

range()

19
Q

function that decides what type an input should be

A

eval()