Intro to Python Final Exam Questions With
Correct Answers
A reusable chunk of code with inputs and outputs - CORRECT
| | | | | | | | | | |
ANSWER✔✔-Function
A name that can be associated with a value - CORRECT ANSWER✔✔-
| | | | | | | | | | |
Variable
A control structure for performing actions on each element of a
| | | | | | | | | | |
sequence - CORRECT ANSWER✔✔-For loop
| | | |
A control structure for branching the execution of a program - CORRECT
| | | | | | | | | | | |
ANSWER✔✔-If statement |
A data structure for mapping keys to values - CORRECT ANSWER✔✔-
| | | | | | | | | |
Dictionary
A data structure for storing elements in an ordered sequence - CORRECT
| | | | | | | | | | |
ANSWER✔✔-List
|
, A categorization of values of similar kinds that determines what you can
| | | | | | | | | | | |
do with the values - CORRECT ANSWER✔✔-Type
| | | | | |
A sequence of data stored in your computer's long term memory -
| | | | | | | | | | | |
CORRECT ANSWER✔✔-File |
Specific instances of data written directly in source code - CORRECT
| | | | | | | | | | |
ANSWER✔✔-Literal value |
A type that represents textual data - CORRECT ANSWER✔✔-String
| | | | | | | |
A collection of functions, classes, and variables available to be imported
| | | | | | | | | |
- CORRECT ANSWER✔✔-Module
| | |
A combination of data and functions that can encapsulate behavior into
| | | | | | | | | | |
a new type - CORRECT ANSWER✔✔-Class
| | | | |
An instance of a class - CORRECT ANSWER✔✔-Object
| | | | | | |
A sequence of coded instructions that manipulate data inside a
| | | | | | | | | |
computer - CORRECT ANSWER✔✔-Program, While, or Method
| | | | | |
"2.0" - CORRECT ANSWER✔✔-String
| | |
Correct Answers
A reusable chunk of code with inputs and outputs - CORRECT
| | | | | | | | | | |
ANSWER✔✔-Function
A name that can be associated with a value - CORRECT ANSWER✔✔-
| | | | | | | | | | |
Variable
A control structure for performing actions on each element of a
| | | | | | | | | | |
sequence - CORRECT ANSWER✔✔-For loop
| | | |
A control structure for branching the execution of a program - CORRECT
| | | | | | | | | | | |
ANSWER✔✔-If statement |
A data structure for mapping keys to values - CORRECT ANSWER✔✔-
| | | | | | | | | |
Dictionary
A data structure for storing elements in an ordered sequence - CORRECT
| | | | | | | | | | |
ANSWER✔✔-List
|
, A categorization of values of similar kinds that determines what you can
| | | | | | | | | | | |
do with the values - CORRECT ANSWER✔✔-Type
| | | | | |
A sequence of data stored in your computer's long term memory -
| | | | | | | | | | | |
CORRECT ANSWER✔✔-File |
Specific instances of data written directly in source code - CORRECT
| | | | | | | | | | |
ANSWER✔✔-Literal value |
A type that represents textual data - CORRECT ANSWER✔✔-String
| | | | | | | |
A collection of functions, classes, and variables available to be imported
| | | | | | | | | |
- CORRECT ANSWER✔✔-Module
| | |
A combination of data and functions that can encapsulate behavior into
| | | | | | | | | | |
a new type - CORRECT ANSWER✔✔-Class
| | | | |
An instance of a class - CORRECT ANSWER✔✔-Object
| | | | | | |
A sequence of coded instructions that manipulate data inside a
| | | | | | | | | |
computer - CORRECT ANSWER✔✔-Program, While, or Method
| | | | | |
"2.0" - CORRECT ANSWER✔✔-String
| | |