CODE.ORG CSP UNIT 4 Boolean quiz#1

CODE.ORG CSP UNIT 4 Boolean quiz#1

9th - 12th Grade

17 Qs

quiz-placeholder

Similar activities

Boolean Expressions

Boolean Expressions

9th - 12th Grade

19 Qs

Unit 4 Code.org

Unit 4 Code.org

9th - 12th Grade

19 Qs

Code.org CSP Unit 4

Code.org CSP Unit 4

9th - 12th Grade

19 Qs

Code.org CSP Visualizations

Code.org CSP Visualizations

9th - 12th Grade

19 Qs

Python Next Steps Homework Quiz

Python Next Steps Homework Quiz

8th - 10th Grade

20 Qs

Dictionary in Python

Dictionary in Python

10th - 12th Grade

20 Qs

Java Strings

Java Strings

9th - 12th Grade

12 Qs

Python If Else Statements

Python If Else Statements

9th - 12th Grade

15 Qs

CODE.ORG CSP UNIT 4 Boolean quiz#1

CODE.ORG CSP UNIT 4 Boolean quiz#1

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Quizizz Content

Used 5+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?