Skip to main content

AP Computer Science Principles Unit 5 practice questions

Try 10 multiple-choice questions from Unit 5 here. Pick an answer to see why it's right or wrong, then take the timed test above for a full AP-style set.

  1. Question 1

    A hospital network uses a software system to manage patient medical records. The system was recently upgraded.

    • In the original system, patient records were maintained on paper charts stored in filing cabinets at each hospital location. Doctors wrote notes by hand, and records were transported physically between departments. Patients requesting copies of their records submitted a written form and waited up to two weeks.

    • The upgraded system stores all patient information electronically, including diagnoses, prescribed medications, lab results, imaging scans, insurance information, and emergency contact details. Any authorized healthcare provider within the hospital network can access a patient's complete record from any location.

    • The upgraded system (but not the original system) also records which healthcare providers accessed each patient's record, the time of access, and what information was viewed or modified.

    Which of the following is the MOST likely data privacy concern introduced by the upgraded system's design?

    Authorized staff might view sensitive records of patients they are not actively treating.

    The centralized database prevents patients from obtaining physical copies of their own records.

    The system automatically shares patient diagnoses with unauthorized external insurance companies.

    Healthcare providers are unable to modify patient records once they are initially entered.

    Show answer

    Answer: (A)

    Evaluating the legal and ethical implications of the system requires analyzing its access controls. The passage states that "any authorized healthcare provider... can access a patient's complete record from any location." This violates the principle of least privilege. Even though the system logs access, the architectural decision to allow universal access across the network creates a severe privacy risk, as curious or malicious staff can access records of neighbors, celebrities, or colleagues without a medical need.

  2. Question 2

    A community group plans to develop a mobile application to crowdsource a map of wheelchair-accessible ramps in a city. The specific purpose is to provide reliable, verified navigation routes for wheelchair users. Which data collection feature best supports the reliability required for this purpose?

    Users upload photos of ramps tagged with GPS coordinates to verify existence and location.

    Users submit text descriptions of ramps without location data to protect privacy.

    Users rate the aesthetic quality of ramps on a five-star scale to encourage design.

    Users vote on proposed ramp locations to influence future city planning decisions.

    Show answer

    Answer: (A)

    Connecting data verification with navigation reliability is key here. Visual evidence combined with precise geolocation ensures that the navigation data is accurate and actionable for users.

  3. Question 3

    A company develops an automated hiring tool trained on resumes from its current employees, who are predominantly male. Which of the following describes the most likely negative impact of using this tool to screen future applicants?

    The tool may unfairly penalize female applicants because the training data reflects existing gender imbalances.

    The tool may unfairly penalize female applicants because the training data lacks sufficient volume to identify meaningful patterns.

    The tool may unfairly penalize female applicants because the training data was not cleaned to remove duplicate or contradictory entries.

    The tool may unfairly penalize female applicants because the training data combines multiple sources with different collection methods and standards.

    Show answer

    Answer: (A)

    Connecting the source of training data to the output reveals that bias in the input (predominantly male resumes) leads to bias in the algorithm's decisions.

  4. Question 4

    A development team is creating a health-tracking app for a global user base. Which strategy would most effectively help the team identify and reduce potential cultural biases in the interface design?

    Recruiting team members with diverse backgrounds to review the design

    Conducting beta testing exclusively with the development team members

    Relying on the project manager's intuition to identify cultural issues

    Using a standard color palette that is popular in the developers' region

    Show answer

    Answer: (A)

    Evaluating strategies for bias reduction requires recognizing the value of diverse perspectives. A diverse team is most likely to spot cultural assumptions or exclusions that a homogeneous team might miss.

  5. Question 5

    A team is developing a facial recognition system for a security gate and wants to ensure the system works equally well for people of all ethnicities. Which development approach best achieves this goal?

    Collaborating with a diverse group of testers to collect and validate training data

    Increasing the resolution of the camera hardware to capture significantly more detail

    Using a larger dataset composed entirely of the company's internal employees

    Optimizing the facial recognition algorithm to process images significantly faster

    Show answer

    Answer: (A)

    Recognizing that bias often stems from non-representative data sets allows the team to design a collection method that actively includes diverse perspectives.

  6. Question 6

    A bank is automating its loan approval process. To prevent the algorithm from discriminating against applicants from specific zip codes, which design approach is most appropriate?

    Auditing the training data for historical biases and involving ethicists in the design

    Removing all human oversight from the approval process to ensure mathematical objectivity

    Using the zip code as the primary weighting factor to ensure geographic consistency

    Increasing the complexity of the neural network to find more subtle patterns in the data

    Show answer

    Answer: (A)

    Proactively identifying bias in data and collaborating with experts on ethics addresses the root cause of algorithmic discrimination.

  7. Question 7

    A company develops a smart speaker that records audio only after a "wake word" is detected to improve user convenience. To address concerns that this feature might unintentionally violate user privacy, which question is most important to investigate?

    How frequently does the device falsely identify the wake word in conversation?

    How many different languages can the device successfully translate in real time?

    How much storage space is required to save the user's preferred settings?

    How fast can the device process a command after the wake word is detected?

    Show answer

    Answer: (A)

    Investigating false positives reveals how often the device records audio without user consent. Frequent accidental activation would undermine the privacy protection intended by the wake word mechanism.

  8. Question 8

    A software team trains a machine learning model to filter job applications, aiming to reduce the time recruiters spend on initial screening. Which investigative step is most critical to prevent the tool from perpetuating existing hiring discrimination?

    Verifying that the training data represents a diverse range of successful candidates

    Verifying that the software interface is compatible with all recruiter devices

    Verifying that the algorithm processes applications faster than human recruiters

    Verifying that the storage database is encrypted to prevent external data breaches

    Show answer

    Answer: (A)

    Investigating the training data for representation is essential because machine learning models learn patterns from historical data; if the data reflects past biases, the model will automate discrimination.

  9. Question 9

    A healthcare provider plans to release a mobile app that allows patients to consult doctors via video, aiming to improve access for rural communities. Which constraint related to the digital divide should be investigated first to ensure the app achieves its goal?

    The availability of high-speed internet connections in the target rural areas

    The availability of high-definition cameras on the doctors' office computers

    The availability of secure cloud storage for archiving the video consultations

    The availability of technical support staff to assist doctors with the software

    Show answer

    Answer: (A)

    Investigating infrastructure constraints is crucial because video streaming requires high bandwidth; if the target population lacks this access, the innovation cannot function for them.

  10. Question 10

    A social media platform updates its recommendation algorithm to prioritize content that generates high user engagement. To investigate whether this change causes unintended social harm, which metric should developers monitor?

    The spread of misinformation compared to the increase in time spent on the site

    The speed at which the server processes user requests during peak usage hours

    The number of new user accounts created since the algorithm update was released

    The amount of revenue generated from advertisements displayed on popular posts

    Show answer

    Answer: (A)

    Monitoring the correlation between engagement and misinformation helps determine if the algorithm is amplifying harmful content to achieve its goal of keeping users online.

What's on the AP Computer Science Principles Unit 5 practice test

The standard version takes about 34 minutes and follows the timing and directions of the AP exam, sized to one unit:

  • 20 Multiple Choice Questions (34 minutes)

Questions are drawn from 1314 multiple-choice questions written for Unit 5, Impact of Computing.

Review Unit 5 before you start

Other AP Computer Science Principles unit tests