Question: QUESTION 21 while True: , in Python, can be used to create an infinite loop. True False 2 points QUESTION 22 The Python Framework does
QUESTION 21
-
while True: , in Python, can be used to create an infinite loop.
True
False
2 points
QUESTION 22
-
The Python Framework does inform you where an error occurred
True
False
2 points
QUESTION 23
-
____ is a critical component to being able to store data and information long term.
File Access
Memory
Print function
with
2 points
QUESTION 24
-
Error handling is also known as ___ handling
Result
Recursion
Exception
Crash
2 points
QUESTION 25
-
We use a ______ block to handle thrown exceptions.
try
except
keywords
lists
2 points
QUESTION 26
-
When does python limit access to global 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.
2 points
QUESTION 27
-
Passes multiple values into a function for processing
Global variable
Code block
Return
Parameter list
2 points
QUESTION 28
-
There is no limit to the number of except blocks a program can have.
True
False
2 points
QUESTION 29
-
When we pass a variable into a function and then modify that variable inside of the function, it also modifies the variable outside of the function that we passed into the function.
True
False
2 points
QUESTION 30
-
def calcBMI(hgt, wgt);
BMI = wgt * 703 / hgt ** 2
return BMI
What is wrong with the above code syntax
(hgt, wgt) should be (hgt; wgt)
The ; should be a :
The ** should be a ^
The function code block needs to be closed with enddef
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
