When do you use an else statement?
Test 3 Edhesive Review

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Scott Symons
Used 67+ times
FREE Resource
Student preview

19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To Input a variable
To handle string values
To tell what will happen when an if-statement is false.
To end an IF statement.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the code to test if num1 and num2 are the same.
if (num1 = num2)
if (num1 < num2)
if (num1 == num2)
if (num1 != num2)
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Select all the mistakes in the following: There may be more than one.
The else should have a :
The = should be ==
elseif should be elif
there is no end if
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT true about algorithms?
have an order
have clear instructions
stop in a finite amount of time
do only number calculations
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following code could be rewritten using:
not
and
or
none of the others
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What is an IF statement used for? Select all that apply.
Make True/ False decisions
Repeat sections of code
To count user input
Select between options in a program
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the code to test if the number in the variable text1 is greater than 15.
if (text1 > 15):
if (text1 >= 15):
if (text1 > "15"):
if (text1 < "15"):
Create a free account and access millions of resources
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
10 questions
Right Triangles: Pythagorean Theorem and Trig

Quiz
•
11th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
24 questions
LSO - Virus, Bacteria, Classification - sol review 2025

Quiz
•
9th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade