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

Yr7- Understanding computers Lessons 1-3

Yr7- Understanding computers Lessons 1-3

7th - 11th Grade

20 Qs

Cell Phone Vocabulary

Cell Phone Vocabulary

9th - 12th Grade

12 Qs

Vocabulary of Computer

Vocabulary of Computer

12th Grade

15 Qs

Networking Quiz

Networking Quiz

8th - 9th Grade

15 Qs

Bài 11. Tệp và quản lý tệp

Bài 11. Tệp và quản lý tệp

10th Grade

20 Qs

Informatika

Informatika

10th Grade

20 Qs

Traffic Light Project Quiz

Traffic Light Project Quiz

9th Grade

17 Qs

CSS - Computer Systems Services

CSS - Computer Systems Services

12th Grade

20 Qs

CODE.ORG CSP UNIT 4 Boolean quiz#1

CODE.ORG CSP UNIT 4 Boolean quiz#1

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Wayground Content

Used 12+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?