AP CSP Photo App List Flashcard

AP CSP Photo App List Flashcard

Assessment

Flashcard

others

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the purpose of the photoList in the Photo App code?

Back

To store a list of image URLs

2.

FLASHCARD QUESTION

Front

What happens when the user clicks on photo_select in the Photo App code?

Back

A new photo is appended to photoList.

3.

FLASHCARD QUESTION

Front

What does the rightButton click event do in the Photo App code?

Back

It moves the index to the next photo, if possible.

4.

FLASHCARD QUESTION

Front

How does the leftButton event ensure the index doesn't go below 0 in the Photo App code?

Back

It checks if the index is greater than 0 before decrementing.

5.

FLASHCARD QUESTION

Front

What does clicking on the randomButton in the Photo App code do?

Back

Selects a random photo index and update the screen.

6.

FLASHCARD QUESTION

Front

What does the updateScreen function do?

Back

Displays the current photo and updates the total photo count.

7.

FLASHCARD QUESTION

Front

How is the total number of photos displayed in the Photo App code?

Back

By setting the text of "totalPhotosOutput" to the length of photoList.

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?