AP CSP Unit 1: Creative Development
290 multiple-choice questions on AP Computer Science Principles Unit 1, Creative Development, organized by topic. They are not tied to any one class or teacher: they follow the College Board course framework. Learn the 30 key terms with the flashcards first, then test yourself. Every answer comes with a short explanation.
Take the practice test · Flashcards · All study tools
What it covers
- 1.1 Collaboration
- 1.2 Program function and purpose
- 1.3 Program design and development
- 1.4 Identifying and correcting errors
Key terms
1.1 Collaboration
- User feedback
- Comments and reactions from people who will use a program, used to improve it
- Diverse perspectives
- Varied backgrounds and viewpoints on a team that help catch bias and missed needs
- Consultation
- Asking users, clients, or experts for guidance while a program is being developed
- Pair-programming driver
- The person at the keyboard who types the code in a pair-programming session
- Pair-programming navigator
- The person who reviews, plans, and watches for mistakes while the driver types
1.2 Program function and purpose
- Program purpose
- The problem a program is intended to solve or the creative interest it pursues
- Program input
- Data sent to a program from a user, device, file, or another program
- Program output
- Data or actions a program produces, such as displayed text, sound, or a saved file
- Program behavior
- How a program functions as it runs and how a user interacts with it
- Event handler
- Code that runs when a specific event, such as a click or key press, occurs
- Computing innovation
- A new or improved computing technology or program created to serve a purpose
1.3 Program design and development
- Program documentation
- Written descriptions and comments that explain a program's purpose and how it works
- Program specification
- A description of what a program should do, including requirements and constraints
- Development process
- The steps used to create a program, such as investigating, designing, prototyping, and testing
- Investigation
- The phase of development that gathers information about the problem, users, and constraints
- Code acknowledgment
- Giving credit for code, libraries, or segments that a developer did not write
1.4 Identifying and correcting errors
- Iterative development
- Repeatedly refining a program through cycles of design, testing and feedback
- Incremental development
- Building a program in small pieces, testing each before adding more
- Syntax error
- A mistake in the rules of the language that prevents the program from running
- Logic error
- A mistake in the algorithm that makes the program behave incorrectly
- Run-time error
- An error that occurs during execution
- Overflow error
- Trying to represent a number outside the available range
- Pair programming
- Two programmers sharing one workstation, switching driver and navigator roles
- Event-driven programming
- Code runs in response to events such as clicks or key presses
- Debugging
- The process of finding and correcting errors in a program
- Test case
- A specific input, and the output that should result, used to check a program's behavior
- Hand tracing
- Stepping through code by hand and recording how variable values change
- Boundary case
- A test input at or just beyond the edge of a valid range
- Expected output
- The result a correct program should produce for a given test input
- User testing
- Having intended users try a program so developers can observe problems and gather feedback
Sample practice questions
Which is a benefit of collaboration when developing a program?
- Teammates with diverse perspectives can find more errors and design better solutions
- Programs written by teams never contain bugs, since every line is checked twice
- Collaboration always cuts development time in half, whatever the project size
- Only one team member needs to understand how the finished program works
Answer: A. Teammates with diverse perspectives can find more errors and design better solutions Diverse viewpoints help identify user needs, catch errors, and avoid bias.
The purpose of a program is best described as
- the number of lines of code the program contains
- the programming language the program is written in
- the problem it solves or the creative interest it pursues
- the speed of the computer the program runs on
Answer: C. the problem it solves or the creative interest it pursues Programs are developed with a purpose, such as solving a problem or creative expression.
In an iterative development process, developers
- repeatedly design, test and refine a program based on feedback
- write the entire program once and never change it afterward
- skip testing until the finished program has been released
- design only the user interface and leave the logic for later
Answer: A. repeatedly design, test and refine a program based on feedback Iteration means revisiting earlier phases to improve the program.
A program that fails to run because of a misspelled keyword has a
- logic error
- run-time error
- syntax error
- overflow error
Answer: C. syntax error Syntax errors break the rules of the language and prevent the program from running.
Pair programming is a practice in which
- two programmers write separate versions of the same program and keep the faster one
- two programmers share one computer, one coding and one reviewing, and switch roles
- one programmer writes the code and another writes the documentation afterward
- a program is written in two different languages so each partner can use one
Answer: B. two programmers share one computer, one coding and one reviewing, and switch roles The driver types while the navigator reviews and plans, which reduces errors.
A program's inputs can come from
- only a keyboard attached to the computer running it
- users, devices such as sensors, other programs, or files
- only the programmer, who types values into the code
- only the internet, through web pages and downloads
Answer: B. users, devices such as sensors, other programs, or files Inputs are data sent to a program from many possible sources.
An incremental development process involves
- writing all of the code at once and testing everything together at the end
- testing only the final version of the program, just before it is released
- breaking the problem into pieces and making sure each works before adding it
- developing several unrelated programs at once and choosing the best one
Answer: C. breaking the problem into pieces and making sure each works before adding it Building and testing piece by piece helps find errors early.
A program runs but produces incorrect results because a formula uses the wrong operator. This is a
- syntax error
- logic error
- run-time error
- overflow error
Answer: B. logic error Logic errors let the program run but cause incorrect behavior.
Gathering feedback from people who will use a program is important because
- it guarantees that the finished program will run faster on any device
- it removes the need to test the program before it is released
- it helps developers understand user needs and improve the program
- it is required by law before any program can be distributed
Answer: C. it helps developers understand user needs and improve the program User feedback during iterative development reveals what works and what needs to change.
An event-driven program is one in which
- statements always run in order from top to bottom with no user interaction
- the program runs only once a day
- every procedure runs at the same time
- code runs in response to events such as a button click or key press
Answer: D. code runs in response to events such as a button click or key press Events like clicks or timers trigger the code associated with them.
More AP Computer Science Principles
- Unit 2: Binary and Data Representation
- Unit 3: Data Compression and Using Data
- Unit 4: Variables, Expressions, and Lists
- Unit 5: Iteration, Procedures, and Libraries
- Unit 6: Algorithms, Efficiency, and Simulations
- Unit 7: The Internet and Computer Systems
- Unit 8: Impact of Computing
- Unit 9: Legal, Ethical, and Safe Computing
Studying for a test in your own class? Make a practice test from your class notes.