Search Header Logo

AP CSP Unit 5 Chapter 2

Authored by Donna Dahl

Computers

KG - University

Used 353+ times

AP CSP Unit 5 Chapter 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which prompt tells the computer to move to a new line for a string output.

/newLine
/new
/n
/next

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

When a number is added to a string as shown in the code, the computer will

make the number part of the string
give an error because the types of data do not match
convert the string into a number and then add them together

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol represents "or" in JavaScript?

||
==
!=
$$

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is wrong with this line of code?

the event is not specified
"click" should be "change"
the id label "age_dropdown" cannot have and underscore
there is nothing wrong with the line of code

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A Boolean command always evaluates to true or false

Sometimes
Always
Never

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

true || false

true
false

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A benefit of using flowcharts is:

They help you program faster
They write the program for you
They are easier
They help you to visually plan a program

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?