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

Pretest TIK

Pretest TIK

10th Grade

20 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

LA1.C1: Introduction to Small Basic

LA1.C1: Introduction to Small Basic

9th Grade

15 Qs

Latihan PSAS Kelas 9

Latihan PSAS Kelas 9

9th Grade - University

20 Qs

12AIT - All About W3C <3

12AIT - All About W3C <3

10th Grade - University

18 Qs

WJEC GCSE ICT Unit 1 E-Mail

WJEC GCSE ICT Unit 1 E-Mail

9th - 10th Grade

13 Qs

Unit 8 Practice Test For CSP

Unit 8 Practice Test For CSP

9th Grade

16 Qs

TO PAS AIJ

TO PAS AIJ

11th 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

Create a free account and access millions of resources

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?