CODE.ORG CSP UNIT 4 Boolean quiz#1

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Wayground Content
Used 6+ 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
21 questions
Python Strings

Quiz
•
11th Grade
15 questions
Code.org Unit 5 Lesson 15 Assessment

Quiz
•
9th - 12th Grade
15 questions
OCR GCSE Logic Gates

Quiz
•
11th Grade
12 questions
Java Strings

Quiz
•
9th - 12th Grade
16 questions
LA3.C3: Variables

Quiz
•
9th Grade - University
15 questions
if-else-if and Logical Operators

Quiz
•
9th - 12th Grade
15 questions
Python Built-in Functions

Quiz
•
11th - 12th Grade
20 questions
Python Lists and Strings

Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade