APCSP Creative Development 2 — Questions and Answers
Question 1: Which of the following best describes the role of iteration in the creative development process?
- Writing code only once and testing at the end
- Repeatedly refining a program based on testing and feedback (Correct answer)
- Delegating design decisions to end users
- Choosing the fastest algorithm from the start
Correct answer: Repeatedly refining a program based on testing and feedback
Iteration means repeatedly testing and refining a program to improve it over multiple cycles.
Question 2: A student wants to build an app that tracks daily exercise. Which first step best reflects the investigation phase of creative development?
- Writing all the code before planning
- Researching how existing fitness apps work and interviewing potential users (Correct answer)
- Choosing a programming language immediately
- Designing the final user interface without gathering input
Correct answer: Researching how existing fitness apps work and interviewing potential users
The investigation phase involves researching the problem space and understanding user needs before building.
Question 3: What is a prototype in the context of program development?
- The final, polished version of a program
- A preliminary model used to explore ideas and test concepts (Correct answer)
- A list of all required features
- The documentation for a completed program
Correct answer: A preliminary model used to explore ideas and test concepts
A prototype is an early, simplified version of a program built to test ideas before full development.
Question 4: During collaborative program development, which practice most improves communication among team members?
- Having one person write all the code
- Using version control and clear code comments (Correct answer)
- Keeping each person's work completely separate
- Avoiding documentation to save time
Correct answer: Using version control and clear code comments
Version control and comments help team members understand each other's contributions and coordinate effectively.
Question 5: A team uses user stories during development. What is the primary purpose of a user story?
- To describe a system's internal algorithm
- To capture a feature from the end user's perspective (Correct answer)
- To document server infrastructure
- To list bugs found during testing
Correct answer: To capture a feature from the end user's perspective
User stories describe desired functionality from the user's point of view, keeping development user-focused.
Question 6: Which of the following is an example of peer review during program development?
- Running automated unit tests
- Having a classmate read and comment on your code before submission (Correct answer)
- Compiling the program to check for syntax errors
- Asking the teacher to grade the final product
Correct answer: Having a classmate read and comment on your code before submission
Peer review involves another developer examining your code to catch errors and suggest improvements.
Question 7: What distinguishes an event-driven program from a sequential program?
- Event-driven programs always run faster
- Event-driven programs respond to user actions or system events rather than following a fixed order (Correct answer)
- Sequential programs can handle user input better
- Event-driven programs do not use functions
Correct answer: Event-driven programs respond to user actions or system events rather than following a fixed order
Event-driven programs execute code in response to events like clicks or key presses, not a predetermined sequence.
Which of the following best describes the role of iteration in the creative development process?