AP CSP Unit 4

AP CSP Unit 4

9th - 12th Grade

40 Qs

quiz-placeholder

Similar activities

Assessment - Unit 1 Review

Assessment - Unit 1 Review

9th - 12th Grade

45 Qs

[AP CSP] Programming with Conditionals [If, Elif, Else]

[AP CSP] Programming with Conditionals [If, Elif, Else]

9th Grade - University

35 Qs

Python set 4

Python set 4

9th - 12th Grade

44 Qs

Python Programming (non-OO) Final Review

Python Programming (non-OO) Final Review

9th - 12th Grade

40 Qs

PROGRAMMING(MIDTERM EXAM)

PROGRAMMING(MIDTERM EXAM)

12th Grade

35 Qs

STS Ganjil Pemrograman Perangkat Bergerak Kelas XI

STS Ganjil Pemrograman Perangkat Bergerak Kelas XI

11th Grade

40 Qs

Problem Solving, Algorithm Development and Program Design

Problem Solving, Algorithm Development and Program Design

10th - 11th Grade

40 Qs

AP CSP Code.org Unit 5 Assessment 1 Review

AP CSP Code.org Unit 5 Assessment 1 Review

9th - 12th Grade

40 Qs

AP CSP Unit 4

AP CSP Unit 4

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Suneetha Pedi

Used 4+ times

FREE Resource

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;

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?