โ† 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 illustrates abstraction in binary data representation?

    Answer: Using the number 65 to represent the letter 'A' in ASCII, hiding the binary value 01000001

    ASCII abstracts binary patterns into human-readable characters, hiding the underlying bit sequences.

  2. A program uses a `Stack` data structure with `push()` and `pop()` operations. The programmer doesn't know if the stack uses an array or a linked list internally. This is an example of:

    Answer: Data abstraction hiding the internal implementation of the stack

    The Stack's interface (push/pop) abstracts the underlying storage implementation from the user of the data structure.

  3. Which of the following statements about abstraction and problem-solving is TRUE?

    Answer: Abstraction allows a programmer to ignore irrelevant details and focus on the essential aspects of a problem

    By ignoring irrelevant details, abstraction helps programmers focus on solving the core problem efficiently.

  4. Consider a simulation of a solar system. The programmer represents each planet as an object with `mass`, `velocity`, and `position`. Which detail is being abstracted away?

    Answer: The chemical composition of each planet's atmosphere

    Chemical composition is irrelevant to orbital mechanics, so it is abstracted away (not included) in this simulation.

  5. In AP CSP, which of the following best describes how abstractions are used in the development of the internet?

    Answer: The internet uses multiple layers of abstraction (physical, internet, transport, application) so each layer only interacts with the one above and below it

    The internet's layered model (like TCP/IP) uses abstraction so each layer handles only its specific concern, hiding complexity from adjacent layers.

  6. A programmer writes a function `sendEmail(to, subject, body)`. From the programmer's perspective, which of the following is hidden by this abstraction?

    Answer: The SMTP protocol steps and server handshake needed to transmit the email

    The SMTP handshake and protocol steps are hidden behind the simple `sendEmail` function call.

  7. Which of the following is the MOST accurate definition of abstraction as used in AP CSP?

    Answer: A technique that manages complexity by hiding unnecessary details while keeping relevant information accessible

    Abstraction in AP CSP specifically refers to managing complexity by hiding unnecessary details while exposing what is relevant.