Question
QUESTION 31 The function that can be used to generate a list of index values, useful in controlling a for loop: list() range() rand() str()
QUESTION 31
-
The function that can be used to generate a list of index values, useful in controlling a for loop:
list()
range()
rand()
str()
2 points
QUESTION 32
-
The function used to import python code and objects from other python files.
build
add
import
print
2 points
QUESTION 33
-
An interpreter converts the entire source code into an executable.
True
False
2 points
QUESTION 34
-
Compilers and interpreters have the following in common:
Reads the source code into machine code, all at once.
Translates machine code into byte code.
Reads the course code one line at a time.
Translates source code into machine code.
2 points
QUESTION 35
-
The _______ block is used to perform normal operations, but allow an exception to be thrown, thus ending the _______ block.
Try
Except
Throw
Catch
2 points
QUESTION 36
-
def setPhone(self, phone):
self.phone = phone
The above code is an...
Mutator method
Accessor method
Global function
Except Function
2 points
QUESTION 37
-
What does this operator mean <=
Equal
Approximately
Greater than or equal to
Less than or equal to
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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