
C Conditionals Quiz
Authored by Ed Sepulveda
Computers
9th - 12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is used to test an expression and execute code based on its truth?
switch statement
else statement
else-if statement
if statement
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an else-if statement?
To execute code when all preceding if and/or else-if statements return false
To compare a value against multiple cases
To test an expression and execute code based on its truth
To test an expression after an existing if or else-if statement
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a ternary operator do?
Tests an expression after an existing if or else-if statement
Tests an expression and executes code based on its truth
Acts as a condensed if-else statement
Executes code when all preceding if and/or else-if statements return false
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is used to compare a value against multiple cases?
switch statement
ternary operator
if statement
else-if statement
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which logical operator is used to test multiple expressions?
&&
||
!
All of the above
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 Aided Design
Quiz
•
11th Grade
10 questions
Python with DataScience
Quiz
•
7th Grade - University
10 questions
ว30285-ทดสอบเรื่องคำสั่งแบบเงื่อนไข
Quiz
•
10th Grade
10 questions
Podstawy Pythona
Quiz
•
9th - 12th Grade
10 questions
Computer System
Quiz
•
8th - 9th Grade
10 questions
PC1.8 Evaluate computer program
Quiz
•
9th Grade
10 questions
UH EXCEL TIK
Quiz
•
10th Grade
10 questions
Lesson 2 - CPU
Quiz
•
9th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Exponent Properties
Quiz
•
9th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade