Question 21 while True: , in Python, can be used to create an infinite loop. Tru
ID: 3598924 • Letter: Q
Question
Question 21
while True: , in Python, can be used to create an infinite loop.
True
False
Question 22
The Python Framework does inform you where an error occurred
True
False
Question 23
____ is a critical component to being able to store data and information long term.
File Access
Memory
Print function
with
Question 24
Error handling is also known as ___ handling
Result
Recursion
Exception
Crash
Question 25
We use a ______ block to handle thrown exceptions.
try
except
keywords
lists
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.
Question 27
Passes multiple values into a function for processing
Global variable
Code block
Return
Parameter list
Question 28
There is no limit to the number of except blocks a program can have.
True
False
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
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
File Access
Memory
Print function
with
Explanation / Answer
Question 21
Answer:True
Question 22
Answer:True
Question 23
Answer: Memory
Question 24
Answer:Exception
Question 25
Answer:except
Question 26
Answer: When there is the presence of a newly created local variable with the same name as a global variable.
Question 27
Answer:Parameter list
Question 28
Answer:True
Question 29
Answer:False
Question 30
Answer:The ; should be a :
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.