b.
== is used in logical expressions while = is used in assignment statements
Which of the following statements about the "==" and "=" symbols are true?
Select one:
a.
== is more likely to produce "True" answers while = is more likely to produce "False" answers
b.
== is used in logical expressions while = is used in assignment statements
c.
== and = can be used interchangeably; they mean the same thing
d.
= is used in logical expressions while == is used in assignment statements
5 answers
Which of the following "if" statements correctly asks if the value in the "condition" variable is greater than 5?
Select one:
a.
condition (if > 5):
b.
if (condition > 5):
c.
(condition > 5).if
d.
if (condition greater than 5)
Select one:
a.
condition (if > 5):
b.
if (condition > 5):
c.
(condition > 5).if
d.
if (condition greater than 5)
b.
if (condition > 5):
if (condition > 5):
How do you identify the statements that will execute when an "if" expression evaluates to True?
Select one:
a.
Mark them with opening and closing curly braces { }
b.
Highlight each statement with the same color as the "if" statement
c.
Mark them with opening and closing square braces [ ]
d.
Indent them to the right underneath the "if" statement
Select one:
a.
Mark them with opening and closing curly braces { }
b.
Highlight each statement with the same color as the "if" statement
c.
Mark them with opening and closing square braces [ ]
d.
Indent them to the right underneath the "if" statement
d.
Indent them to the right underneath the "if" statement
Indent them to the right underneath the "if" statement