
Complex if statements
Authored by Barbara Anderson
Computers
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is optional in an if statement?
if
:
else
Comparison statement
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many else's can you have in an if statement?
one
as many as needed
several
none
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you know which if an else goes with?
It goes with the one with the same comparison statement
It goes with the first if in the program
It goes with the if directly above it
It goes with the if with the same name
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When does an if statement's body run?
When it is next in the code sequence
When the comparison statement returns True
When the comparison statement returns False
After an else
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
X=5
y=5
Which checks to see if x and y are the same in an if statement?
x=y
x equals y
x!=y
x==y
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When should you use an elif statement?
When checking two outcomes
When checking one outcome
When checking more than two outcomes
When you want to run two difference scenarios
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which comparison operator checks to see if two variables are not equal?
<>
NOT=
>=
!=
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Computer Applications Q3
Quiz
•
10th Grade
10 questions
Cyber Security
Quiz
•
1st - 10th Grade
10 questions
Inspire - AI Trivia
Quiz
•
11th Grade
10 questions
Parcial-Dibujo
Quiz
•
12th Grade
10 questions
Empowerment Technologies Quiz 2
Quiz
•
11th Grade
13 questions
Algoritmos y Decisiones
Quiz
•
11th Grade
10 questions
Unit 4 Advanced AP CSP
Quiz
•
9th - 12th Grade
12 questions
Spreadsheet Starter
Quiz
•
7th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade