← All APCSP Flashcard Decks

Data Representation 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 Data Representation flashcards as text
  1. A program stores a student's grade as an integer instead of a floating-point number. What is the main consequence of this choice?

    Answer: Fractional grade values will be truncated or rounded, losing precision

    Integers cannot represent fractional parts, so a grade like 87.5 would be stored as 87 or 88, losing the decimal precision.

  2. Which of the following correctly converts the decimal number 25 to binary?

    Answer: 11001

    25 = 16 + 8 + 1 = 11001 in binary.

  3. What is the primary advantage of using abstraction when representing complex data such as a map?

    Answer: It hides unnecessary detail so that the representation is simpler and easier to use

    Abstraction lets us work with a simplified model of data (like a map showing roads but not every pebble) by hiding details not relevant to the task at hand.

  4. A video file that has been compressed using lossy compression is decompressed. What can be said about the decompressed file?

    Answer: It may have reduced quality compared to the original

    Lossy compression permanently discards data, so decompression cannot restore the original perfectly, resulting in some quality loss.

  5. Which of the following is NOT a reason that digital data is generally more reliable than analog data for storage and transmission?

    Answer: Digital data uses more storage space, which makes it inherently more accurate

    Larger storage size does not make data more accurate; digital reliability comes from discrete values, error-correction codes, and noise tolerance, not file size.

  6. A student encodes the message 'Hi' using ASCII. What is the correct binary representation? (H = 72, i = 105)

    Answer: 01001000 01101001

    H is ASCII 72 = 01001000 and i is ASCII 105 = 01101001, so 'Hi' is 01001000 01101001.

  7. Which of the following scenarios demonstrates a problem caused by insufficient bit depth in image representation?

    Answer: A gradient sky appears as distinct color bands instead of a smooth transition

    Too few bits per channel means too few color levels, causing smooth gradients to appear as visible stepped bands — a phenomenon called color banding or posterization.