Quiz Complete, well Done!
What is the correct variable type for storing whole numbers in Python?
Which of the following is not a valid variable name?
Which of the following is an example of a string?
What does the 'str' variable type stand for in Python?
Using a reserved word as a variable name will result in a
.
What happens when you try to perform arithmetic operations on variables with different types in Python?
What happens when you try to convert the string '2.718' to a float?
The difference between the actual value and the rounded value of a float is called
.
What is the scope of a variable?
assignment
To perform division in Python, we use the
operator.
In most programming languages, a variable is declared using a
and a name.
What data types can variables hold?
Which of the following is a sensible variable name for a variable that stores a person's age?
What is the output of len('Coding')?
What is the output of 'Hello World'[1:4]?
In programming, what is the purpose of initializing a variable?
What is string indexing?
If you try to change the value of a constant, a
will occur.
Which notation is used for string indexing in Python?