Request edit access
Python Basics Quiz Examples
Questions exemplary of the type to be expected during our in-class quiz
Declaring Variables
Select the syntax for declaring a variable in Python
0 points
What is the result of this expression? (in Python 3 of course!)
(1/3)**3 == 1/(3**3)
0 points
Since Python is dynamically typed (variables, arguments, etc don't have declared types), there is no way for the programmer to determine the type of a value.
0 points
Given that "x = list()", what is the result of this expression?
0 if not x else x[-1]
0 points
What is the result of: range(1, 4)[2]
0 points
What is the name for this construct:
[x + 1 for x in range(4)]
0 points
Which is NOT a way to learn more about the contents of a variable and what you can do with it?
0 points
The section titled "Tuples, a key part of Python" is mostly...
0 points
To excel in the quiz, a good strategy is to
0 points
Submit
This form was created inside of Colorado State University. Report Abuse - Terms of Service - Additional Terms