Question 31 The function that can be used to generate a list of index values, us
ID: 3598926 • Letter: Q
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 32
The function used to import python code and objects from other python files.
build
add
import
Question 33
An interpreter converts the entire source code into an executable.
True
False
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.
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
Question 36
def setPhone(self,
phone):
self.phone
= phone
The above code is an...
Mutator method
Accessor method
Global function
Except Function
Question 37
What does this operator mean <=
Equal
Approximately
Greater than or equal to
Less than or equal to
list()
range()
rand()
str()
Explanation / Answer
Answer:
31)
Range()
32)
Import
You can use any Python source file as a module by executing an import statement in some other Python source file.
33)
False
34)
Translates source code into machine code.
35)
Try
36)
Mutator method
37)
Less than or equal to
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.