8.1 Programming Constructs - IF Statements 
Email *
Name *
1 point
Which is NOT a data type in Python?
1 point
Clear selection
What will this program output?
*
1 point
Captionless Image
Which of the following pieces of code will display a message on the screen and store in a variable?
*
1 point
Which of the following pieces of code will convert a string variable into an integer variable (one that contains a number not text)?
*
1 point
Look at the flowchart (open the image by clicking on it), what would the program do?
1 point
Captionless Image
What will be outputted?
*
1 point
Captionless Image
What is the output?
*
1 point
Captionless Image
‘If’ is a decision making statement
*
1 point
An If statement can be executed multiple times
*
1 point
The ‘else’ statement is optional in Python
*
1 point
The code inside ‘If’ statement is executed only once
*
1 point
When the if condition is false, it exits the program
*
1 point
The program generates an error message if the "else" statement is not defined
*
1 point
This operator in python means that one value is the same as the other value
*
1 point

The result of this program:

Friday = False

if Friday:

print "Jeans day!"

else:

print "Uniform day"

*
1 point
What is my result?
mickey = mouse                                   
if mickey == mouse:                           
         print("Mickey is a mouse")
else:                                                             
         print("Minnie rules")  
*
1 point
What happens to the code in the body of an "if" statement if the condition is false?
*
1 point
Which of these can be paired with an "if" statement to represent other outcomes of a scenario?
*
1 point
Which of these is used to add a third, fourth, etc outcome to a scenario?
*
1 point
What will be the output of the code?
*
1 point
Captionless Image
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. - Terms of Service - Privacy Policy

Does this form look suspicious? Report