Conditional Statements allow you to execute specific blocks of code based on conditions.
Conditional Statements

Quiz
•
Computers
•
8th Grade
•
Hard
Michelle Catarroja
Used 1+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
TRUE
FALSE
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Executes a block of code if a specified condition is true.
if statement
else statement
else if statement
switch
ternary operator
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Executes a block of code if the same condition of the preceding if statement is false.
if statement
else statement
else if statement
switch
ternary operator
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Adds more conditions to the if statement, allowing for multiple alternative conditions to be tested.
if statement
else statement
else if statement
switch
ternary operator
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluates an expression, then executes the case statement that matches the expression’s value.
if statement
else statement
else if statement
switch
ternary operator
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Provides a concise way to write if-else statements in a single line.
if statement
else statement
else if statement
switch
ternary operator
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if both expressions are true it returns true, otherwise it returns false. denotes as &&
AND
OR
NOT
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if one or both expressions are true it returns true, otherwise it returns false. denotes as ||
AND
OR
NOT
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
returns true for false statements and false for true statements. denotes as !
AND
OR
NOT
Similar Resources on Quizizz
14 questions
Conditionals in JavaScript

Quiz
•
7th - 8th Grade
14 questions
Coding Conditionals

Quiz
•
6th - 8th Grade
10 questions
L2 Selection in Programming

Quiz
•
8th Grade
10 questions
Operators & IF Statements

Quiz
•
7th - 8th Grade
10 questions
Excel If function WSC 4.2.3

Quiz
•
7th Grade - University
10 questions
Programming - Selection in an Algorithm

Quiz
•
1st - 11th Grade
10 questions
Quiz#5

Quiz
•
8th Grade
10 questions
Reference and Pointers in C++

Quiz
•
6th - 8th 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
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

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

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons

Quiz
•
8th Grade