← All APCSP Flashcard Decks

Abstraction Concepts Flashcards

7 cards from real APCSP practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Abstraction Concepts flashcards as text
  1. Which of the following best describes a 'procedural abstraction'?

    Answer: Hiding the implementation details of a procedure behind a named call

    Procedural abstraction lets a programmer call a named procedure without knowing how it is implemented internally.

  2. A programmer creates a function called `calculateTax(income)` so that other parts of the program don't need to know the tax formula. This is an example of:

    Answer: Procedural abstraction

    Hiding the formula inside a named function and calling it by name is procedural abstraction.

  3. Which statement about layers of abstraction in computing is TRUE?

    Answer: Higher layers hide the complexity of lower layers

    Each higher layer of abstraction hides the complexity of the layer beneath it, simplifying what the programmer must handle.

  4. In the context of AP CSP, what is a 'model' as a form of abstraction?

    Answer: A simplified representation that captures only relevant features

    A model is an abstraction that represents only the features relevant to the problem, ignoring unnecessary details.

  5. Which of the following is an example of data abstraction?

    Answer: Using a list to represent a collection of student scores without specifying how the list is stored in memory

    Using a list to represent scores without knowing the underlying memory layout is data abstraction.

  6. Why do programmers use abstraction when building large software systems?

    Answer: To manage complexity by hiding unnecessary details

    Abstraction manages complexity by allowing programmers to focus on high-level design rather than low-level implementation details.

  7. A library provides a function `sortList(list)` that sorts any list. The programmer using the library does not know whether it uses bubble sort or merge sort. This illustrates:

    Answer: Abstraction — the implementation details are hidden behind an interface

    The sorting algorithm is hidden behind the function name, which is the essence of abstraction.