AP CSP Flashcards - Create Task (2024)

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/10

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards for AP CSP Create Task review.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

11 Terms

1
New cards

Pressing the space bar

The input that starts the game and triggers diamond movement.

2
New cards

User Control

Using the arrow keys to move the character around the screen.

3
New cards

Forever Loop Function

It checks if the character is touching diamonds and updates the score and the list of collected diamonds.

4
New cards

'Check for win(Current Score)' Custom Block

It checks if the score is 800 or more and shows a win message.

5
New cards

Two Calls to Custom Procedure 'Check for win'

Check for win(200) does nothing; Check for win(850) shows a win message.

6
New cards

List 'Diamonds Collected' Track

Each collected diamond is added to the list for record-keeping.

7
New cards

How to Check if All Items in List Are Valid

Loop through each item and call checkValidity. If any return false, the list is not valid.

8
New cards

Intended Users of the Program

Students and young players who enjoy simple, interactive games.

9
New cards

Condition 'Score ≥ 800' is False

The game continues running and no win message is shown.

10
New cards

Different Values to 'Check for win' Produce Same Result

Yes, any value ≥ 800 like 820 or 1000 will show the win message.

11
New cards

Parameter 'Current Score' Helps Manage Complexity

It allows the block to work with any score without being tied to a specific variable.