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

Python basics yr7

Python basics yr7

6th - 9th Grade

20 Qs

10.4 Python Lists

10.4 Python Lists

7th - 10th Grade

14 Qs

Python Lists

Python Lists

11th Grade

20 Qs

Python First Steps Homework Quiz

Python First Steps Homework Quiz

7th - 9th Grade

20 Qs

GCSE Computing - Subprograms

GCSE Computing - Subprograms

9th - 10th Grade

14 Qs

Unit 4 Code.org Csd

Unit 4 Code.org Csd

9th - 12th Grade

19 Qs

Python while loops

Python while loops

12th Grade

20 Qs

C Programming Quiz

C Programming Quiz

12th Grade - University

20 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?