CODE.ORG CSP UNIT 4 Boolean quiz#1

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Quizizz 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
20 questions
CPU & LMC

Quiz
•
7th - 11th Grade
18 questions
Computer Science (Python)

Quiz
•
9th Grade
20 questions
Python First Steps Homework Quiz

Quiz
•
7th - 9th Grade
20 questions
Python while loops

Quiz
•
12th Grade
20 questions
Year 8 Microbit quiz

Quiz
•
8th - 9th Grade
20 questions
AP CSP Unit 6

Quiz
•
10th - 12th Grade
14 questions
Computing Revision JCG

Quiz
•
KG - University
20 questions
JAVA FUNDAMENTALS

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade