
Unit 4, Lesson 6: Logic (IF)
Quiz by McCartney, Callie R
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
- Q1
Which set of code will do the following?
"WHEN the upButton is clicked, move the shape up to x=20."
30s - Q2
Which set of code will do the following?
"Check once when the computer reaches that spot in the code for the upButton to be clicked. If it is, change the x value to 20"
30s - Q3
Which code will choose between TWO sets of code to run JUST ONE of them?
30s - Q4
How does an IF-Else make a decision?
It evaluates a numerical expression down to true or false. It then runs the first set of code if the expression is true OR the second set of code if the expression is false.
It evaluates a boolean expression down to true or false. It then runs the first set of code if the expression is true OR the second set of code if the expression is false.
It evaluates a numerical expression down to true or false. It then runs the first set of code if the expression is false OR the second set of code if the expression is true.
It evaluates a boolean expression down to true or false. It then runs the first set of code if the expression is false OR the second set of code if the expression is true.
30s - Q5
Which code will choose between ONE set of code to run? Which code will choose to run OR not to run the set of code?
30s - Q6
Which code will choose between THREE sets of code to run JUST ONE of them?
30s - Q7
Which If-Statement will run the code inside the block?
30s - Q8
Which If-Else-If Statement will run the code in the Else-If block?
30s