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

Shawn Kenner

Used 63+ times

FREE Resource

Student preview

quiz-placeholder

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Choose the correct definition for Conditional Statement

affects the sequence of statements followed in a program by executing different statements based on the value of a Boolean expression

stores information as a number, String, or Boolean

joins together two or more strings end-to-end to make a new string

an ordered sequence of characters

2.

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

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?

1

2

3

4

4.

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

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

A county fair charges different prices based on the day of the week and age of the visitor. The pricing rules are shown below.

On Monday and Wednesday children 5 and under get in free ($ 0). For all other days and ages the cost is ten dollars ($ 15).


The visitor's age is stored in the variable age, the day of the week is stored in a variable day, and the price in dollars is stored in the variable price. Which piece of code will correctly decide the price for each ticket.

Media Image
Media Image
Media Image
Media Image

7.

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

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?