Quiz Complete, well Done!
If you try to change the value of a constant, a
will occur.
The difference between the actual value and the rounded value of a float is called
.
What is a variable?
Which of the following is a Python reserved word?
When comparing two floating-point numbers for equality, what approach is generally recommended instead of using the '==' operator?
Which of the following is NOT a consequence of limited floating-point precision?
is the shorthand operator for addition and assignment.
Which variable type is used to store true/false values in Python?
Which of the following is a sensible variable name for a variable that stores a person's age?
Python provides a built-in function called
that gets user input from the keyboard.
scope
Which of the following is NOT a valid variable name in Python?
What happens when you try to convert the string '2.718' to a float?
constant
What is the correct variable type for storing whole numbers in Python?
Variables are used to store and manipulate
in a program.
What is the scope of a variable?
What happens if you try to assign a value to a variable that hasn't been declared?
What does the 'str' variable type stand for in Python?
declaration