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.

Grace2007·36 flashcards·36 questions
APcomputer_scienceprogramming
0
Known
1 / 36
0
Learning
Front

Algorithm → Definition

Tap to flip
Back

A step-by-step procedure for solving a problem or performing a task.

Tap to flip
Got it
Still learning

Quiz(36 questions)

Question 1 of 36

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?

A.To provide a step-by-step solution to a problem
B.To store large amounts of data
C.To create user interfaces
D.To manage network connections

2. What is the primary goal of the Create Performance Task in AP CSP?

A.To assess students' programming skills and documentation abilities.
B.To encourage collaboration among students.
C.To test students on multiple programming languages.
D.To prepare students for the AP Computer Science Principles exam.

3. What is a syntax error?

A.An error in the structure of the code that prevents it from compiling
B.An error that occurs during the execution of the program
C.An error in the logic of the code that produces incorrect results
D.An error that is only found during code reviews

4. True or False: Algorithms can only be expressed in programming languages.

A.True
B.False
C.Depends on the algorithm
D.Only in pseudocode

5. True or False: Collaboration is encouraged during the Create Performance Task.

A.True
B.False
C.Sometimes
D.Only for certain parts

6. Which of the following is NOT a type of debugging technique?

A.Print debugging
B.Code reviews
C.Unit testing
D.Syntax checking

7. Fill in the blank: The process of reducing complexity by focusing on essential features is known as ____.

A.Optimization
B.Abstraction
C.Iteration
D.Encapsulation

8. Fill in the blank: The program must demonstrate ____ algorithms.

A.a minimum of two
B.a maximum of three
C.one complex
D.algorithms of the same type

9. What best defines unit testing?

A.A method to test the entire application at once
B.A process to verify the functionality of a small section of code
C.A technique for finding syntax errors in the code
D.A procedure to review code for stylistic issues

10. In which scenario would you prefer using a list over an array?

A.When a fixed size is known
B.When dynamic size is needed
C.When faster access is required
D.When memory usage is minimal

11. What must the written response for the Create Performance Task explain?

A.Only the programming language used.
B.The program's purpose and algorithms.
C.The history of the programming language.
D.The importance of teamwork in programming.

12. If code produces unexpected results, what type of error might it contain?

A.Syntax error
B.Runtime error
C.Logic error
D.Compilation error

13. What does abstraction achieve in programming?

A.Increases performance by using more code
B.Simplifies complex systems by hiding details
C.Limits the use of functions
D.Reduces the need for data structures

14. Which statement best compares program development to documentation?

A.Program development is coding; documentation is explanation.
B.Both tasks are equally important in coding.
C.Program development requires teamwork; documentation does not.
D.Documentation is optional if the program is well-coded.

15. True or False: Debugging is only relevant for professional programmers.

A.True
B.False
C.Only during final project stages
D.Only for complex code

16. What is a data structure primarily used for?

A.To execute algorithms
B.To organize and store data efficiently
C.To create user interfaces
D.To write documentation

17. What are the two main components that must be submitted for the Create Performance Task?

A.Code and presentations
B.Program code and written response
C.Documentation and peer reviews
D.Project plan and code

18. What is the purpose of using trace statements in debugging?

A.To remove syntax errors from the code
B.To track variable values and program flow
C.To compare two different versions of code
D.To execute tests automatically

19. True or False: A queue follows the LIFO principle.

A.True
B.False
C.Only in certain programming languages
D.Depends on the implementation

20. How many lines of code must the program contain at a minimum?

A.10 lines
B.20 lines
C.30 lines
D.50 lines

21. What effect does a runtime error have on a program?

A.The program fails to compile
B.The program crashes or produces an error during execution
C.The program works but produces incorrect results
D.The program executes without any issues

22. Which of the following is an example of a sorting algorithm?

A.Merging two lists
B.Bubble sort
C.Inserting an element into a list
D.Finding the maximum value in an array

23. What is the function of the written response in the Create Performance Task?

A.To justify each line of code written.
B.To explain the program's purpose and functionality.
C.To provide future improvements for the program.
D.To summarize what was learned in class.

24. Which of the following statements describes the difference between testing and debugging?

A.Testing ensures code meets requirements, while debugging fixes issues found during testing.
B.Testing is for identifying syntax errors, while debugging checks runtime performance.
C.Testing is done after debugging, and debugging is done before testing.
D.Testing focuses on user experience, whereas debugging focuses on code readability.

25. What does the term 'iteration' refer to in programming?

A.The process of defining variables
B.The repetition of a process or code block
C.Creating functions
D.Executing a program once

26. True or False: A program can be submitted without any written response.

A.True
B.False
C.Only if the program is self-explanatory
D.Only for team submissions

27. Define 'conditional statements'.

A.Statements that execute only once
B.Statements that depend on user input
C.Statements that execute different code based on true/false conditions
D.Statements that define data types

28. If the documentation is effective, what is the likely outcome?

A.Increased confusion about the program.
B.A clearer understanding of the program by evaluators.
C.Higher chances of receiving a lower score.
D.Less emphasis on code quality.

29. Comparison: Which of the following is NOT a characteristic of an array?

A.Fixed size
B.Indexed by integers
C.Dynamic resizing
D.Faster access

30. Which programming languages are acceptable for the Create Performance Task?

A.Only Python and Java
B.Any language that can be clearly documented
C.Languages that require team collaboration
D.Only languages taught in class

31. True or False: Abstraction makes code easier to read and manage.

A.True
B.False
C.Only in large programs
D.Depends on the programmer

32. What elements must be included in the final program submission?

A.Only the program code
B.Program code, screenshots, and written response
C.Code and a video demonstration only
D.Screenshots and peer reviews only

33. What is the purpose of a variable in programming?

A.To perform calculations
B.To hold data that can change
C.To create user interfaces
D.To execute algorithms

34. Fill in the blank: A loop that never terminates is called a ____ loop.

A.Finite
B.Conditional
C.Infinite
D.Static

35. What is the primary function of a function in programming?

A.To store data
B.To perform a specific task and possibly return a value
C.To manage memory
D.To control the flow of a program

36. Which of the following statements about a stack data structure is true?

A.It removes elements in a Last In, First Out manner.
B.It allows random access by index.
C.It can only hold one datatype at a time.
D.It is always a fixed size.

Related Study Sets

Create Your Own Study Set

Upload a PDF, paste your notes, or describe a topic – AI generates flashcards, quizzes and more in seconds.