The line of code after a line beginning with the word else needs to begin with a(n):
(1 point)
Responses
print statement.
print statement.
indentation.
indentation.
#
#
:
11 answers
indentation.
Which of these words is used to begin a conditional statement?
(1 point)
Responses
when
when
input
input
if
if
unit
(1 point)
Responses
when
when
input
input
if
if
unit
if
When should a double equal sign (==) be used?
(1 point)
Responses
to set the value of a decimal variable
to set the value of a decimal variable
to set the value of a float variable
to set the value of a float variable
to check whether two pieces of data are actually equal
to check whether two pieces of data are actually equal
to indicate greater than or less than
(1 point)
Responses
to set the value of a decimal variable
to set the value of a decimal variable
to set the value of a float variable
to set the value of a float variable
to check whether two pieces of data are actually equal
to check whether two pieces of data are actually equal
to indicate greater than or less than
to check whether two pieces of data are actually equal
Under what circumstances will the indented line of code immediately after an if statement be executed?
(1 point)
Responses
if the condition is false
if the condition is false
if the condition is true
if the condition is true
if the line begins with a #
if the line begins with a #
if the line contains a variable
(1 point)
Responses
if the condition is false
if the condition is false
if the condition is true
if the condition is true
if the line begins with a #
if the line begins with a #
if the line contains a variable
if the condition is true
What are the three keywords that can begin conditional statements?
(1 point)
Responses
if, elif, else
if, elif, else
if, when, then
if, when, then
if, also, then
if, also, then
if, then, else
(1 point)
Responses
if, elif, else
if, elif, else
if, when, then
if, when, then
if, also, then
if, also, then
if, then, else
if, elif, else
Which symbol must be used at the end of a line that begins with else?
(1 point)
Responses
#
#
*
*
==
==
:
(1 point)
Responses
#
#
*
*
==
==
:
: