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

KS4 - Python Turtle

KS4 - Python Turtle

9th - 11th Grade

15 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

9th - 12th Grade

20 Qs

Unit 6. Mathematical Library Methods

Unit 6. Mathematical Library Methods

9th - 10th Grade

20 Qs

Logic gates

Logic gates

10th Grade

18 Qs

Logic Gates

Logic Gates

9th - 11th Grade

20 Qs

Python programming -recap

Python programming -recap

7th - 10th Grade

12 Qs

Unit 2 Technology Systems Hardware

Unit 2 Technology Systems Hardware

11th - 12th Grade

20 Qs

Trace Tables

Trace Tables

12th Grade

17 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

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