
Complex if statements
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Easy
Barbara Anderson
Used 2+ times
FREE Resource
Enhance your content in a minute
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=
>=
!=
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Will both the onMouseMove and onMouseDrag execute when you click and drag the mouse?
no
yes
sometimes
Only if done very quickly
Similar Resources on Wayground
10 questions
Diagnoses and Identification of Faulty Computer and Network
Quiz
•
9th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
9 questions
IT related jobs
Quiz
•
9th Grade
12 questions
1.2.4. Types of Programming Language
Quiz
•
12th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
10 questions
Contact Center Sevices
Quiz
•
7th - 10th Grade
10 questions
ICT as Platform for Change
Quiz
•
11th - 12th Grade
10 questions
emtech
Quiz
•
12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
15 questions
Internet Vocabulary Notebook Check #2 - CTEA(2024)
Quiz
•
12th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
39 questions
UNIT 7 and UNIT 8 — Multiple Choice Question Bank (Extracted)
Quiz
•
9th Grade
50 questions
Money Matters Fall 2025 Final Exam — Worksheet Questions
Quiz
•
12th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade
