Search Header Logo

AP CSP Unit 4

Authored by Suneetha Pedi

Computers

9th - 12th Grade

Used 4+ times

AP CSP Unit 4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

What is output by line 6?

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

What is output by line 5?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is output by the program?

less than 10

less than 20

less than 30

30 or more

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is output by the program?

Option A

Option B

Option C

Option D

Option E

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

What is needed to complete the code?

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

What will the value of bags be at the end of the program?

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

Jasmine is writing a shopping app. She has created a variable to keep track of the number of items in the shopping cart. Every time someone clicks the "addItemButton", she would like the variable to increase by 1.


What code should Jasmine insert where it says <missing code> in order for her app to work?

cart total = 1;

cartTotal + 1;

cartTotal = cartTotal +1;

var cartTotal = cartTotal + 1;

var cartTotal + 1;

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?