
Conditions logic operators comparison coding
Authored by Joe Rowe
Computers
9th - 12th Grade
Used 14+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What syntax compares using "Equal to" ?
=
==
!=
>=
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What syntax compares using "Not equal to" ?
=
==
!=
>=
3.
MATCH QUESTION
1 min • 1 pt
compare
health to
4
health == 4
assign 3 to x
boolean
assignment
operator
=
comparison
operator
==
true or false
x = 3
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A condition is __________.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
var age = 17;
if ( age > 17 ) {
print("you are old enough to vote);
}
Testing a condition
True condition
Always true
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
var yourHealth = 0;
var yourFood = 1;
if ( yourHealth < 1 | | yourFood < 1 ) {
print("you are dead");
}
Testing two conditions
You are dead
you are alive
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if ( x > 200 && y > 200)
True when 100 is value of x
compound condition testing x and y
true when 100 is value of y
true if 0 is the value of x and y
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?