CODE.ORG CSP UNIT 4 Boolean quiz#1

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Wayground Content
Used 5+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What number will be output by the console.log command on line 7?
50
100
200
300
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Conditional Statement
affects the sequence of statements followed in a program by executing different statements based on the value of a Boolean expression
is a statement that always executes regardless of conditions
is used to declare variables in a program
is a type of loop that repeats a block of code
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will the value of the variable bags be at the end of the flowchart shown here?
2
3
4
5
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
A concert hall charges different ticket prices based on the customer's age. The prices are shown in the table below.
Age Ticket Price
12 and younger $10
13 to 64 $15
65 and older $5
The customer's age is stored in the variable age and the price is stored in the variable price. Which piece of code will correctly decide the price for each ticket?
if (age <= 12) price = 10; else if (age >= 13 && age <= 64) price = 15; else price = 5;
if (age < 12) price = 10; else if (age < 65) price = 15; else price = 5;
if (age <= 12) price = 15; else if (age <= 64) price = 10; else price = 5;
if (age < 13) price = 5; else if (age < 65) price = 10; else price = 15;
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will the value of the variable bags be at the end of the flowchart shown here?
1
2
3
4
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What number will be output by the console.log command on line 5?
40
41
42
43
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will the value of the variable bags be at the end of the flowchart shown here?
1
2
3
4
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Subroutines

Quiz
•
9th - 11th Grade
18 questions
Python basics

Quiz
•
7th - 10th Grade
22 questions
Strings in python -1

Quiz
•
11th Grade
19 questions
Unit 4: Operators in Java

Quiz
•
9th - 10th Grade
20 questions
Python

Quiz
•
12th Grade
13 questions
if - else - elif

Quiz
•
7th - 11th Grade
14 questions
GCSE Computing - Subprograms

Quiz
•
9th - 10th Grade
16 questions
An introduction to Arduino

Quiz
•
10th - 11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade