
C Conditionals Quiz
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Ed Sepulveda
FREE Resource
Enhance your content in a minute
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
R082 Book Cover Assets planning
Quiz
•
7th - 12th Grade
10 questions
python
Quiz
•
10th Grade
10 questions
DTJSQuiz
Quiz
•
11th Grade
10 questions
Scratch (28th March)
Quiz
•
KG - University
10 questions
Drawing tools safety procedure
Quiz
•
10th Grade
10 questions
Software Design and Development Quick Quiz 3
Quiz
•
11th - 12th Grade
10 questions
Initial Assessment - Cybersecurity Awareness
Quiz
•
9th Grade - Professio...
10 questions
0610-Microbit
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
