marlio

AP Computer Science Principles, Unit 1

Exam words: Creative Development

The 28 words a written answer in this unit needs. For each one: what it means, a wording that loses the mark and why, and a sentence that uses it the way a full answer would.

Study these words as a deck

Flashcards, Learn, Test and Match in Cards, with your Still learning marks kept, and the booklet to print on A4 or US Letter. Sign in to open it.

The words

  1. collaboration

    People working together on one program, sharing ideas, code and feedback as it is built.

    Loses the mark: “each person writes their own part and nobody reads the others' code”. Splitting the work without reading or testing each other's parts misses the errors and ideas collaboration is for.

    Example: The Fernhill robotics club used collaboration: two students wrote the scoring procedure, a third reviewed it, and together they found a missing case.

  2. diverse perspectives

    Varied backgrounds on a team, which help a program work for more kinds of users.

    Loses the mark: “as long as the programmers are skilled it does not matter who is on the team”. Skilled people who share one background share its blind spots, so needs outside it go unnoticed.

    Example: Because the Lakeview bus app team had diverse perspectives, a member who uses a screen reader spotted that the map buttons had no labels.

  3. pair programming

    Two programmers at one computer: the driver writes code while the navigator reviews and plans.

    Loses the mark: “the navigator just watches until it is their turn”. The navigator checks each line, spots mistakes and thinks ahead, so both people work the whole time.

    Example: In pair programming on the Harbor Library app, Nia was the driver typing the loop while Theo, the navigator, caught that it skipped the last book.

  4. code review

    Teammates reading someone else's code to find errors and suggest improvements before it is used.

    Loses the mark: “a code review is just saying whether the code is good”. A useful review names the line, the problem and a fix, so the writer can act on it.

    Example: During code review of the Maple Street pool app, Ari pointed out that line 7 used `>` where the rule said at least 18, so `≥` was needed.

  5. feedback

    Specific comments from teammates or users that builders can act on to improve a program.

    Loses the mark: “feedback is telling someone their code is good or bad”. A verdict gives nothing to change; useful feedback says what happened, where, and what to try.

    Example: Testers gave the Pinecrest quiz app team feedback that the timer was hard to see, so the team made it larger in the next version.

  6. version control

    Software that records each change to shared code so teammates can combine or undo changes.

    Loses the mark: “version control is just saving a backup copy”. It records who changed what and when, so teammates' changes can be combined and any one of them undone.

    Example: With version control, the Ridgeway weather app team saw that Thursday's change broke the forecast screen and undid only that change.

  7. computer program

    Instructions a computer follows to do a job, turning inputs into outputs.

    Loses the mark: “the purpose of the program is what each line of its code does”. A purpose says what problem the program solves and for whom; retelling the code says how, not why.

    Example: The Brookside cafeteria's computer program takes each student's order as input and outputs a pickup number, so the lunch line moves faster.

  8. input

    Data a program receives from a user, a sensor, a file or another program.

    Loses the mark: “input is only what the user types”. A tap, a sensor reading, a file or a message from another program is input too.

    Example: The Glenwood greenhouse program's input is a temperature reading from a sensor every minute; no one types anything.

  9. output

    Data or an action a program produces: text shown, a sound, a file, a signal.

    Loses the mark: “output is only what shows on the screen”. A beep, a saved file, a message to another device or a door unlocking is output too.

    Example: When a fare card is accepted, the Northgate turnstile program's output is a green light and the gate opening.

  10. event

    An action, such as a tap or key press, that triggers code in a program.

    Loses the mark: “each tap starts the program over from the first line”. An event runs only the code attached to it, and values the program already holds are kept.

    Example: In the Tidewater tally app, each tap on the button is an event that runs `taps ← taps + 1` and displays the new count.

  11. user interface

    The screens, buttons and other parts a person uses to give input and see output.

    Loses the mark: “the user interface is the program's code”. The interface is what a person sees and touches; the code behind it decides what happens.

    Example: The Oak Hollow clinic's check-in user interface has one large button per language, so visitors can start in their own language.

  12. code segment

    Any piece of a program, from a single line to a whole procedure.

    Loses the mark: “a code segment has to be a complete program”. Any piece counts, even one line; a whole program is only the largest case.

    Example: In the Ridgeway parking app, a code segment of three lines adds up the fees a driver owes for one day.

  13. program purpose

    The problem a program solves, or what it lets people do or make.

    Loses the mark: “the purpose is what each line of the code does”. Narrating the code tells how the program works; the purpose names the people it serves and the problem it solves.

    Example: The purpose of the Maple Street pantry app is to help volunteers see which shelves need restocking before the doors open.

  14. program behavior

    What a program does while it runs: its output for each input or event.

    Loses the mark: “the behavior is the code written inside the program”. Behavior is seen from outside, as what goes in and what comes out while it runs; the code is how that behavior is produced.

    Example: The program behavior of the Oakdale quiz app: a right answer shows a green check, and a wrong one shows the correct answer.

  15. requirement

    A need a program must meet, found by asking and watching its users.

    Loses the mark: “we already know what users need so we can skip asking them”. Builders who have used something similar still miss needs; interviews, surveys and watching users find them.

    Example: After interviewing dog walkers, the Fairview team's first requirement was that the app work with one hand while holding a leash.

  16. prototype

    An early, partial version of a program built to test an idea with users.

    Loses the mark: “nobody should try the program until it is finished”. A sketch or partial version shown early finds problems while they are still cheap to fix.

    Example: The Westbrook team showed students a paper prototype of the locker app and learned that no one understood the lock icon.

  17. iterative development

    Building a program in repeated cycles of designing, testing and revising based on feedback.

    Loses the mark: “design is done once before any code is written”. Plans change as testing and users show what works; going back to the design is the process working.

    Example: Through iterative development, the Cedar Park recycling app went through four versions, each revised after a week of testing with residents.

  18. incremental development

    Building one small, tested piece of a program at a time onto code that works.

    Loses the mark: “write every piece first and test them all together at the end”. Testing all at once leaves many places each error could be; incremental work tests each piece as it is added.

    Example: Using incremental development, Priya got the Elm Road score tracker to add one score correctly before writing the code that averages them.

  19. documentation

    Written descriptions of what a program and its parts do and how to use them.

    Loses the mark: “documentation is extra and can be written at the end if at all”. Notes written while building help teammates use and change the code now, not only later readers.

    Example: The documentation for the Bayside library app's `dueDate` procedure says it takes a checkout date and returns the date 21 days later.

  20. comment

    A note in code for people to read; the computer skips it when running.

    Loses the mark: “writing a rule in a comment makes the program follow it”. The computer skips comments, so only the code itself can change what the program does.

    Example: A comment above line 4 of the Fernwood payroll program explains that shifts over 8 hours earn extra pay, so a teammate knows why the `IF` is there.

  21. attribution

    Naming the author and source of code or media used in a work.

    Loses the mark: “code posted online for anyone to use needs no credit”. Free-to-use code still needs credit to its author, and many licenses make credit a condition of use.

    Example: The Grove Street team added attribution in a comment naming the author and license of the sorting procedure they reused.

  22. syntax error

    A mistake in a program's spelling or grammar that stops the program from running.

    Loses the mark: “any error that stops the program is a syntax error”. A program that starts and then stops partway has a runtime error; a syntax error breaks the language's rules.

    Example: The Hillcrest timer program has a syntax error on line 3: the opening brace after `REPEAT 5 TIMES` is missing.

  23. runtime error

    An error that stops a program partway through running, such as dividing by zero.

    Loses the mark: “a runtime error is the same as a logic error”. A logic error runs to the end and gives a wrong result; a runtime error stops the program.

    Example: The Sunview grade program has a runtime error: on its last pass it reads `scores[6]` from a list of five, and the program stops.

  24. logic error

    A mistake that lets a program run to the end but produces a wrong result.

    Loses the mark: “the program ran with no error message so it is correct”. A logic error gives no message at all; only checking outputs against expected results shows it.

    Example: The Ashford rewards program has a logic error: it tests `points > 50` where the rule says 50 or more, so a member with exactly 50 points gets nothing.

  25. overflow error

    An error when a number needs more bits than the fixed space reserved for it.

    Loses the mark: “an index past the end of the list is an overflow error”. Reading past a list's end is an index error; overflow is a number too big for its bits.

    Example: The Riverside step counter stores steps in 16 bits, so after 65,535 steps it has an overflow error and shows 0.

  26. test case

    One chosen input with the output the program should give for it.

    Loses the mark: “passing every test tried proves the program is correct”. Tests show the program works for those inputs only; inputs nobody tried can still fail.

    Example: For a rule that members must be 13 or older, the Elmdale club's test cases are 12, 13 and 14, each with the result the program should give.

  27. debugging

    Finding and fixing the cause of a bug, often by tracing values line by line.

    Loses the mark: “debugging means rewriting the program from scratch”. Debugging narrows the problem down to the faulty step by testing and tracing, then changes only what is wrong.

    Example: Debugging the Pinewood vote counter, Sam traced `count` after each pass and saw that it was set back to 0 inside the loop.

  28. bug

    A mistake in a program that makes it behave differently from what was intended.

    Loses the mark: “a bug is the computer doing something wrong on its own”. The computer follows the code exactly; a bug is a mistake in what the code tells it to do.

    Example: A bug in the Lakeside parking app charged every car for one extra hour, because the loop ran one pass too many.