Quiz Complete, well Done!
What is a string?
Python provides a built-in function called
that gets user input from the keyboard.
Which of the following is NOT a valid variable name in Python?
Define a variable as a storage location that can hold a
.
What is the scope of a variable?
assignment
Which of the following values can a Boolean variable have?
Which method is used to concatenate strings in Python?
The
operator is used for exponentiation in Python.
What is string slicing?
Which of the following is not a Python reserved word?
Variables are used to store and manipulate
in a program.
To convert an integer to a float in Python, you can use the
function.
What happens if you try to assign a value to a variable that hasn't been declared?
What is the output of len('Coding')?
What is the result of 8 - 3?
Variable
global variable
Which of the following is an example of a constant?
The
operator is used to invert the value of a boolean.