
Code.org Video 2 Conditional Statements Quiz
Authored by Anka Vonic
Computers
9th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an if statement in a computer program?
To stop the program from running
To run multiple blocks of code simultaneously
To run a specific block of code if a condition is false
To run a specific block of code if a condition is true
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an else statement in a conditional statement?
To stop the program from running
To run multiple blocks of code simultaneously
To run a specific block of code if a condition is false
To run a specific block of code if a condition is true
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When should an else statement be used in a program?
When the program needs to run multiple blocks of code
When the if statement is false
When the if statement is true
When the program needs to stop running
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an else if statement in a conditional statement?
To run a specific block of code if a condition is true
To run a specific block of code if a condition is false
To run multiple blocks of code simultaneously
To stop the program from running
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if the order of else if statements is mixed up in a program?
The program will run more efficiently
The program will stop running
The program will not run at all
The program will not behave as intended
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a conditional statement, what does the else condition represent?
The condition that is always true
The condition that is always false
The default condition when all previous conditions are false
The condition that stops the program from running
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a boolean expression in a conditional statement?
To determine if a condition is true or false
To run a specific block of code if a condition is true
To stop the program from running
To run multiple blocks of code simultaneously
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
13 questions
Melody Tone
Quiz
•
9th Grade
10 questions
python quiz
Quiz
•
6th Grade - Professio...
13 questions
WJEC GCSE ICT Unit 1 E-Mail
Quiz
•
9th - 10th Grade
10 questions
Scratch
Quiz
•
KG - Professional Dev...
12 questions
Green Computing Quiz
Quiz
•
9th Grade
10 questions
Network Security
Quiz
•
9th - 11th Grade
11 questions
Youtube
Quiz
•
4th Grade - University
12 questions
Microsoft Office Word
Quiz
•
4th Grade - University
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
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
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade