
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
Similar Resources on Wayground
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
10 questions
Structures de données
Quiz
•
12th Grade
10 questions
python quiz
Quiz
•
6th Grade - Professio...
10 questions
Scratch
Quiz
•
KG - Professional Dev...
10 questions
Von Neumann Vs Harvard Architecture
Quiz
•
12th Grade
10 questions
Network Security
Quiz
•
9th - 11th Grade
10 questions
Bài 34–Nghề phát triển phần mềm
Quiz
•
10th Grade
10 questions
What is a program slides(6:16)
Quiz
•
8th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
