Question

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.

#

#

:

Answers

Answer
Which of these words is used to begin a conditional statement?

(1 point)
Responses

when

when

input

input

if

if

unit
Answer
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
Answer
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
Answer
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
Answer
Which symbol must be used at the end of a line that begins with else?

(1 point)
Responses

#

#

*

*

==

==

:
Answered by GPT 3.5
indentation.
Answered by GPT 3.5
if
Answered by GPT 3.5
to check whether two pieces of data are actually equal
Answered by GPT 3.5
if the condition is true
Answered by GPT 3.5
if, elif, else
Answered by GPT 3.5
:

Related Questions