Question
N 11 Used to define the scope in Python { } sub indentation ( ) 4 points QUESTION 12 This programing element begins with the
N 11
-
Used to define the scope in Python
{ }
sub
indentation
( )
4 points
QUESTION 12
-
This programing element begins with the keyword def.
variables
functions
keywords
lists
4 points
QUESTION 13
-
When does python limit access to global variables/objects from within a scope?
When there is the presence of a newly created local variable with the same name as a global variable.
When there is the presence of a newly created local variable with a different name than the global variable.
When there are no new variables.
When there is the presence of any newly created variable.
4 points
QUESTION 14
-
Used to pass one or multiple values into a function for processing.
Global variable
Code block
Return
Parameter list
4 points
QUESTION 15
-
Without lists and other collection objects such as arrays, vectors, and dictionaries, the processing capability of our programs would be greatly improved.
True
False
4 points
QUESTION 16
-
One of the three programming structures that will choose one of two paths of execution based on the results of a true/false question:
Sequence
Iteration
Loop
Decision
4 points
QUESTION 17
-
Because lists are sequences, indexing and slicing work the same way for lists as they do for strings.
True
False
4 points
QUESTION 18
-
Which is the following is true about structured programming
Each structure should have one entry point, but can have multiple exit points
Each structure can have multiple entry points, but only one exit point
Each structure has no limit on the number of the entry points and exit points
Each structure should have one entry point and one exit point
4 points
QUESTION 19
-
____ within a list are identified by an index number, placed within square brackets after the name of the list. For example:
Decisions
Items
Elements
Code
4 points
QUESTION 20
-
What does the following comparison operator mean ==
Equal to
Approximately
Greater than
Not Equal
4 points
QUESTION 21
-
Boolean expressions are only true
True
False
4 points
QUESTION 22
-
Programming method for solving a problem by solving a smaller version of the same problem repeatedly.
Repetition
Problem Solving
Debugging
Recursion
4 points
QUESTION 23
-
Any problem that can be solved with recursion could be re-implemented with loops.
True
False
4 points
QUESTION 24
-
Component to a function used to get output directly from a function.
for
output
return
print
4 points
QUESTION 25
-
Define a Python list for the days of the week, and then use a loop (while or for) to print that list.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started