Python Lutz Chapter 1 Flashcards

1
Q

T/F: Python is a [language].

A

F. Python is an interpreter

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

PVM stands for:

A

Python virtual machine

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

When you execute, ___ code is converted into ____, which is then routed to a ____

A

source code;
byte code;
virtual machine

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

a Folder is a.k.a :

A

a directory

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

what are Modules?

A

simply, modules are text files containing Python statements

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

From top to bottom, list the sequence of the Python hierarchy.

A
Program  --> 
Modules  -->
Statements
Expressions
Objects
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What datatypes/objects in Python are Immutable?

A

numbers,
strings,
tuples

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

What datatypes/objects in Python are Mutable?

A

lists,
dictionaries,
sets

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

What is a tuple?

A

a compound datatype, specifically an ordered and Immutable list

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

If a list is surrounded by Parentheses, then it’s a ____

A

tuple

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

If a term/expression is surrounded by quotation marks, then it is a ____

A

STRING

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

If a term/expression is surrounded by square brackets, then it is a _____.

A

list

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

If a term/expression is surrounded by braces/curly brackets {} , then it is a ___

A

DICTIONARY

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