Multiple Choice Identify the
choice that best completes the statement or answers the question.
|
|
1.
|
Comments are ignored by the Python interpreter. What symbol is needed at the
beginning of the comment?
|
|
2.
|
In the following code, the variable num is a ____?
num =
“5”
a. | string | c. | boolean | b. | float | d. | integer |
|
|
3.
|
What is used to take input from the user in Python?
a. | < > | c. | input( ) | b. | scan( ) | d. | print( ) |
|
|
4.
|
What will be printed with the following print
statement?
print(“2 + 2”)
|
|
5.
|
Which of the following is correct?
a. | Reserved words such as break can be used as a variable name | c. | A variable name can
have symbols like: @, # | b. | A variable name must start with a
letter | d. | A variable name can
start with a digit |
|