When do you use an else statement?
CPModule 3 Making Decisions

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Marcia Bernas
Used 15+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To tell what will happen when an if-statement is false
To end an IF statement
To handle string values
To Input a variable
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Consider the following code:
word = "kangaroo"
if (word == "KANGAROO"):
print ("TRUE")
else:
print ("FALSE")
What is output?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code:
if (90 < = x <= 100)
it should be rewritten as:
if (90 < = x <= 100):
if (90 < = x and <= 100):
if (90 < = x and x <= 100):
Nothing, the if statement is correct
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT true about all algorithms?
All algorithms can only do number calculations
All algorithms have clear instructions
All algorithms stop in a finite amount of time
All algorithms have an order
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following code could be rewritten using:
if (x > 12):
if (x < 34):
not
or
and
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the code to test if num1 and num2 are NOT the same.
if (num1 != num2 )
if (num1 == num2 )
if (num1 = num2)
if (num1 < num2 )
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Both conditions must be true
and
!=
or
==
not
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Java Conditional Constructs

Quiz
•
9th - 10th Grade
23 questions
Python Επανάληψη πριν τα Χριστούγεννα (Κεφ3 & 4 & Συμβολοσειρές)

Quiz
•
11th - 12th Grade
20 questions
Toán tử trong C ++

Quiz
•
10th - 12th Grade
20 questions
GD2 - C++ 1.15 Quiz on Algorithms, Flowcharts & Pseudocode

Quiz
•
9th - 12th Grade
20 questions
Latihan Soal USP Informatika

Quiz
•
9th Grade
30 questions
Introduction to Problem Solving and Algorithms

Quiz
•
10th - 12th Grade
25 questions
Subroutines

Quiz
•
9th - 11th Grade
20 questions
C++

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University