AP Computer Science A • Unit 3.2

Impact of Program Design

Detailed answer explanations for the Unit 3.2 multiple-choice practice questions.

Q1B
Q2B
Q3C
Q4A
Q5D
Q6B
Q7C
Q8A
Q9D
Q10B
How to use this page: First try each question without looking at the explanation. Then compare your answer with the key and read why the other choices are not correct.

Answer Explanations

Q1

Which observation provides the strongest evidence that an emergency notification system is reliable?

AIts opening screen has a clear design.
BIt produces the expected alerts under a variety of stated conditions without failure.
CIt sends one correct alert during a demonstration.
DIts messages are generated quickly, whether or not they reach the correct users.
Correct answer: B. Reliability is judged by whether a program produces the expected result under a range of stated conditions, not by a single success.
Explanation

Evidence of reliability has two parts: the conditions must be varied, and the expected behavior must be stated in advance. Without a stated expectation there is nothing to compare the result against, and without variety a program can pass while its untested paths remain broken.

  • A is not correct: a clear opening screen describes appearance, which says nothing about whether the alerts are produced correctly.
  • C is not correct: one correct alert covers a single condition, so it cannot show how the system behaves in the situations it was not asked to handle.
  • D is not correct: speed is not reliability; a message that arrives quickly at the wrong user is still a failure.
Q2

A school registration system receives the same course-add request twice. Which expected behavior provides the most useful reliability test?

AAdd the course twice and reduce the available-seat count twice.
BAccept the first request, reject or ignore the duplicate, and change the seat count only once.
CDelete the student's entire schedule.
DAccept both requests whenever the course still has space.
Correct answer: B. A duplicate request should leave the records exactly as a single request would, which is a behavior that can be stated in advance and checked.
Explanation

Repeated input is one of the standard conditions a reliability test should cover, because it is easy to trigger by accident and its effects are easy to overlook. A useful test states what the records should look like afterward, so a run that changes them twice is recognizable as a failure.

  • A is not correct: this describes the failure itself; recording the same enrollment twice is the outcome the test is meant to detect.
  • C is not correct: removing the student's schedule destroys valid records, which is a far larger failure than the duplicate it was reacting to.
  • D is not correct: available space does not make a duplicate correct; the same request should still take effect only once.
Q3

Which test plan best checks a delivery-scheduling program under a variety of conditions?

ARun one ordinary delivery request and stop when it succeeds.
BEnter several addresses without deciding what each result should be.
CTest available and full time slots and an unknown address, with an expected behavior for each.
DAsk users whether the schedule page looks dependable.
Correct answer: C. It covers several different conditions and states in advance what each one should produce.
Explanation

A test plan needs both coverage and expectations. The three conditions named here are genuinely different from one another, and pairing each with an expected behavior is what turns a run of the program into a test that can pass or fail.

  • A is not correct: stopping at the first success leaves every unusual condition unexamined.
  • B is not correct: without a decision about what each result should be, there is no way to tell a correct outcome from an incorrect one.
  • D is not correct: an impression of the page is an opinion about appearance rather than evidence about behavior.
Q4

A public library replaces some staffed service desks with self-service kiosks. Which statement gives a balanced social impact analysis?

ASome visitors may receive faster service, while others may have difficulty using the kiosks.
BThe kiosks are beneficial because they execute their instructions.
CThe only relevant question is whether the kiosk code compiles.
DEvery visitor is affected in exactly the same way.
Correct answer: A. A balanced analysis names both a benefit and a harm and recognizes that different groups are affected differently.
Explanation

Impact analysis asks who is affected and how, not whether the program works. The same change can help one group and disadvantage another at the same time, and saying so is what makes an analysis balanced rather than one-sided.

  • B is not correct: executing its instructions is what any working program does; it is not by itself a benefit to anyone.
  • C is not correct: whether the code compiles is a question about the program, not about its effect on the people who use it.
  • D is not correct: assuming a uniform effect is what hides the group that has difficulty, so it is the opposite of a balanced analysis.
Q5

A warehouse adopts scheduling software that reduces operating costs but also reduces some workers' hours. Which statement best describes the economic impact?

AThe program has no economic impact because its calculations are correct.
BOnly the purchase price of the software matters.
CLower operating costs prove that every affected group benefits.
DThe company may spend less, while some workers may earn less because they receive fewer hours.
Correct answer: D. It names the gain and the loss and identifies which group experiences each.
Explanation

An economic impact is described by asking who spends or earns differently as a result of the program. Here two groups are affected in opposite directions, so an accurate description has to mention both rather than reporting only the side that improved.

  • A is not correct: correct calculations describe the program's behavior; the impact is what happens to the company and the workers because of it.
  • B is not correct: the purchase price is one cost among several, and it leaves out both the ongoing savings and the reduced hours.
  • C is not correct: a benefit to one group is not evidence about the others, and the reduced hours show that the effect is not shared.
Q6

A recommendation app repeatedly promotes one style of music, and users begin listening to fewer other styles. Which area of impact is most directly illustrated?

ASystem reliability, because every recommendation is a program failure
BCulture, because the program may influence shared tastes and habits
CIntellectual property, because all recommended music becomes open source
DProgram speed, because cultural effects are measured in milliseconds
Correct answer: B. A change in what people listen to is a change in shared tastes and habits, which is the cultural area of impact.
Explanation

Naming the area of impact means asking what kind of thing changed. Here the program did not fail and no ownership question arose; what shifted was the range of music people chose, which belongs to culture.

  • A is not correct: the app is producing recommendations as designed, so nothing here indicates a reliability problem.
  • C is not correct: recommending a work does not change who owns it or the terms under which it may be reused.
  • D is not correct: a change in listening habits is not a measurement of how fast the program runs.
Q7

An air-quality app is intended to inform an entire city, but most sensors are installed only in wealthier neighborhoods. Which statement best identifies an unintended harmful effect?

AThe app displays readings from the sensors that exist.
BResidents can learn that air quality changes over time.
CNeighborhoods with fewer sensors may receive less useful information even though the app was intended to serve everyone.
DThe app's title may be shorter than the name of the city.
Correct answer: C. It names a group that is disadvantaged and shows that the outcome differs from what the app was intended to do.
Explanation

An unintended harmful effect has two features: someone is worse off, and that outcome was not the purpose of the program. Uneven sensor coverage produces exactly this pattern, because the stated intent was to inform the whole city.

  • A is not correct: displaying the readings it has is the app working as designed, so no one is harmed by it.
  • B is not correct: learning how air quality changes is a benefit, which is the opposite of what the question asks for.
  • D is not correct: the length of the title affects no one and has nothing to do with the information residents receive.
Q8

Which statement about open-source code is most accurate?

AIt may be reused only according to the conditions of its license.
BIt has no owner and may always be copied without attribution.
CIt may be read but never modified.
DIts license stops applying when it is downloaded.
Correct answer: A. Open-source code still has an owner and a license, and the license sets the conditions for reuse.
Explanation

Being able to read code is not the same as being free to use it however one likes. An open-source license grants permission and attaches conditions to that permission, so the license is what has to be read before the code is reused.

  • B is not correct: open-source code has an owner, and many licenses require attribution as one of their conditions.
  • C is not correct: a permanent ban on modification would contradict the permission an open-source license grants.
  • D is not correct: downloading a copy does not release it from the terms that came with it.
Q9

A developer finds a useful module online, but it is not published for open-source reuse. What should the developer do before integrating it?

ACopy it because publicly visible code is free to use.
BRename its variables so ownership no longer matters.
CUse it first and investigate permission only if someone complains.
DObtain permission and purchase it if the owner requires payment.
Correct answer: D. Code that is not published for reuse requires the owner's permission, and payment if the owner asks for it.
Explanation

The responsible sequence happens before integration, not after. When no license grants reuse in advance, permission has to be obtained directly from the owner, and any condition the owner attaches has to be met.

  • A is not correct: being visible online does not make code free to use; visibility and permission are separate things.
  • B is not correct: renaming variables changes the surface of the code without changing who owns it.
  • C is not correct: waiting for a complaint means the code has already been used without permission.
Q10

A team wants to incorporate an outside date-formatting library into its attendance program. Which sequence should the team follow?

AIntegrate the library, remove its notices, then investigate its owner.
BIdentify its source, determine the applicable license or permission, then complete the required action.
CRename its methods, test its speed, then claim the code as original.
DPurchase it immediately, regardless of whether its license already permits reuse.
Correct answer: B. Find out who owns it, find out what the terms are, then do what those terms require — all before integration.
Explanation

The three steps are ordered because each one depends on the previous answer. The source has to be identified before its license can be located, and the license determines whether the required action is attribution, payment, or nothing at all.

  • A is not correct: it integrates first and investigates last, and removing notices can itself violate the terms the team has not yet read.
  • C is not correct: claiming someone else's work as original is exactly what identifying the source is meant to prevent.
  • D is not correct: paying before checking skips the step that would reveal whether the existing license already permits the reuse.