AP CSP create performance task written response study guide
This study guide provides essential flashcards for the AP CSP Create Performance Task, covering key concepts, programming skills, and best practices for successful completion.
Quiz(36 questions)
1. What is the primary purpose of an algorithm?
Terms in this Study Set(36)
Programming Concepts(16)
Algorithm → Definition
A step-by-step procedure for solving a problem or performing a task.
True or False: Algorithms can be represented in multiple forms.
True. Algorithms can be expressed in natural language, pseudocode, or flowcharts.
Fill in the blank: An abstract representation of a real-world problem is called ____.
Abstraction.
Compare: Array vs. List
Array: Fixed size, faster access. List: Dynamic size, more flexible.
What is abstraction in programming?
The process of simplifying complex systems by hiding unnecessary details.
Cause → Effect: Using data structures
Cause: Choose efficient data structure. Effect: Improved performance and memory usage.
What is a data structure?
A way to organize and store data for efficient access and modification.
True or False: A stack follows LIFO principle.
True. Last In, First Out ensures the last added element is the first to be removed.
Example of an algorithm: Sorting a list
1. Start 2. Compare elements 3. Swap if necessary 4. Repeat until sorted.
What does the term 'iteration' refer to?
The repetition of a process in programming, often with loops.
Define 'conditional statements'.
Statements that execute different code blocks based on boolean expressions (if, else).
Comparison: Array vs. Dictionary
Array: Indexed by integers. Dictionary: Key-value pairs for fast lookups.
True or False: Abstraction increases code complexity.
False. Abstraction simplifies complex systems by hiding details.
What is a variable?
A named storage location in memory that can hold different values.
Fill in the blank: A loop that runs indefinitely is called a ____ loop.
Infinite.
What is a function?
A block of reusable code that performs a specific task and may return a value.
Performance Task Requirements(12)
What is the purpose of the Create Performance Task?
To assess students' ability to develop a computer program and document their process.
True or False: The Create Performance Task requires a team effort.
False. It is an individual task where each student creates their own program.
Fill in the blank: The program must include ____ algorithms.
at least two algorithms, each demonstrating different problem-solving approaches.
What does the program's documentation need to include?
A written response detailing the programming process, algorithms used, and the purpose of the program.
Comparison: Program development vs Documentation.
Program development involves coding; documentation involves explanation and justification of choices made.
List the two main components of the Create Performance Task.
1. Program Code 2. Written Response
How many lines of code are required in the program?
A minimum of 20 lines of code must be included in the final submission.
What is the role of the written response?
To explain the program's purpose, algorithms, and functionality in a clear manner.
True or False: A program can be submitted without a written response.
False. The written response is essential for providing context and understanding the program.
Cause → Effect: Effective documentation leads to _____.
clearer understanding and appreciation of the program by evaluators.
What programming languages are acceptable for the task?
Any programming language that can be understood and clearly documented.
What must be included in the final program submission?
The program code, screenshots of the program in action, and the written response.
Debugging and Testing(8)
What is debugging?
The process of identifying and removing errors from computer code. - Syntax errors - Runtime errors - Logic errors
True or false: Debugging is only necessary after code is complete.
False. Debugging should occur continuously during development to catch issues early.
Fill in the blank: A _____ is a common technique to help find logical errors.
trace or debug statement
Comparison: Testing vs. Debugging
Testing evaluates if code meets requirements. Debugging fixes issues found during testing.
What is a unit test?
A test that verifies the functionality of a specific section of code. - Often automated - Focuses on small parts
Cause → Effect: Code fails to run.
Cause: Syntax error. Effect: The program does not execute as intended.
How do you identify a logic error?
By running the code with test cases and checking if outputs are as expected.
Example of using print statements:
Insert print statements before and after critical operations to track variable changes.
Questions in this Study Set(36)
1. What is the primary purpose of an algorithm?
2. What is the primary goal of the Create Performance Task in AP CSP?
3. What is a syntax error?
4. True or False: Algorithms can only be expressed in programming languages.
5. True or False: Collaboration is encouraged during the Create Performance Task.
6. Which of the following is NOT a type of debugging technique?
7. Fill in the blank: The process of reducing complexity by focusing on essential features is known as ____.
8. Fill in the blank: The program must demonstrate ____ algorithms.
9. What best defines unit testing?
10. In which scenario would you prefer using a list over an array?
11. What must the written response for the Create Performance Task explain?
12. If code produces unexpected results, what type of error might it contain?
13. What does abstraction achieve in programming?
14. Which statement best compares program development to documentation?
15. True or False: Debugging is only relevant for professional programmers.
16. What is a data structure primarily used for?
17. What are the two main components that must be submitted for the Create Performance Task?
18. What is the purpose of using trace statements in debugging?
19. True or False: A queue follows the LIFO principle.
20. How many lines of code must the program contain at a minimum?
21. What effect does a runtime error have on a program?
22. Which of the following is an example of a sorting algorithm?
23. What is the function of the written response in the Create Performance Task?
24. Which of the following statements describes the difference between testing and debugging?
25. What does the term 'iteration' refer to in programming?
26. True or False: A program can be submitted without any written response.
27. Define 'conditional statements'.
28. If the documentation is effective, what is the likely outcome?
29. Comparison: Which of the following is NOT a characteristic of an array?
30. Which programming languages are acceptable for the Create Performance Task?
31. True or False: Abstraction makes code easier to read and manage.
32. What elements must be included in the final program submission?
33. What is the purpose of a variable in programming?
34. Fill in the blank: A loop that never terminates is called a ____ loop.
35. What is the primary function of a function in programming?
36. Which of the following statements about a stack data structure is true?
Related Study Sets
Abitur Rekursion
Abitur: Abitur Klassen und Objekte
Was ist ein Algorithmus Schritt für Schritt
if und Schleifen Notizen
Wiederholung: Funktionen
Test: Binärzahlen
Listen Notizen
Schleife Alltag Beispiel Begriffe
Create Your Own Study Set
Upload a PDF, paste your notes, or describe a topic – AI generates flashcards, quizzes and more in seconds.

