Which of the following is an example of bias being embedded in the design of an algorithm itself, rather than in the data used to train it?
Opening subject page...
Loading your content
AP Computer Science Principles Quiz
Practice Computing Bias in AP Computer Science Principles with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.
Question 1 / 20
0 of 20 answered
Which of the following is an example of bias being embedded in the design of an algorithm itself, rather than in the data used to train it?
This quiz focuses on Computing Bias, giving you a quick way to practice the rules, question types, and explanations that matter most for AP Computer Science Principles.
Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.
Which of the following is an example of bias being embedded in the design of an algorithm itself, rather than in the data used to train it?
Explanation: Correct. In this case, the programmer has made an explicit choice to prioritize a specific factor (a particular sport). This is a feature of the algorithm's logic or design. If that factor correlates with a demographic group, the algorithm itself is biased, regardless of the data it processes.
A technology company develops a new facial recognition system to identify people in photographs. The system is trained using a large dataset of photos of the company's own employees, who are predominantly from one demographic group.
What is the most likely consequence of using this system in a public setting with a diverse population?
Explanation: Correct. The training data lacks diversity, which is a primary cause of data bias. The system will likely perform poorly for groups not well-represented in the training set, as it has not learned to identify their features effectively.
Researchers develop an artificial intelligence program to diagnose a certain type of skin cancer. The program is trained exclusively using a dataset of medical images from patients of a single ethnic background.
What is the most likely consequence if this program is used on a broader patient population?
Explanation: Correct. The appearance of skin conditions can vary significantly across different skin tones. By training on data from only one group, the program has not learned to recognize these variations. This data bias will likely lead to reduced accuracy and potentially harmful misdiagnoses for underrepresented groups.
A bank uses an algorithm to decide whether to approve loan applications. The algorithm is found to have a higher rejection rate for applicants from a specific geographic area. Investigation reveals the algorithm was trained on decades of the bank's historical loan data, which includes a period where the bank had discriminatory lending policies against that same area.
What is the primary source of the algorithm's bias?
Explanation: Correct. The algorithm learned patterns from data that was generated during a time of discriminatory practices. It is therefore perpetuating this historical bias by treating new applications in a similar way, even if the discriminatory policies are no longer in place. The data itself is the source of the bias.
A widely used language translation tool is found to have a bias. When it translates a sentence from a language that uses a gender-neutral noun for "doctor," it consistently outputs "he is a doctor" in English. When translating a gender-neutral noun for "nurse," it consistently outputs "she is a nurse."
What is the most plausible technical explanation for this bias?
Explanation: Correct. Language models learn from the patterns in the text they are trained on. If the training data (e.g., books, articles, websites) more frequently associates "doctor" with male pronouns and "nurse" with female pronouns, the model will learn and replicate this statistical correlation. This is a classic example of a computing innovation reflecting biases present in its training data.
An online advertising system uses an algorithm to show users job postings. It is discovered that the algorithm is predominantly showing high-paying executive job ads to male users and lower-paying administrative job ads to female users, even when their qualifications are identical.
This phenomenon is a direct illustration of which of the following?
Explanation: Correct. The algorithm is producing systematically different and unfair outcomes for different demographic groups (male vs. female users). This is a clear and direct example of algorithmic bias, likely learned from biased historical data about job applications or societal roles.
A city government uses a software program to predict which neighborhoods are most likely to experience crime. The program's predictions are based on historical arrest data. Critics are concerned that this program could be biased.
Which of the following describes the most significant ethical concern related to computing bias in this scenario?
Explanation: Correct. This highlights a critical societal impact of computing bias. If historical data reflects that certain neighborhoods were policed more heavily (regardless of actual crime rates), the algorithm will learn to identify these areas as high-risk. This can lead to increased police presence, more arrests, and a reinforcement of the original bias in future data.
Which of the following provides the best definition of algorithmic bias?
Explanation: Correct. This definition captures the key elements of algorithmic bias: it is systematic (not random), repeatable, and results in unfairness or prejudice against specific subgroups.
When a user starts typing a query into a search engine, the system often suggests possible ways to complete the query. This autocomplete feature is based on analyzing billions of past searches from other users.
How could this autocomplete feature perpetuate harmful stereotypes?
Explanation: Correct. The system learns from user behavior. If past user queries reflect societal biases (e.g., searching "CEOs are..." and getting completions that are gender-biased), the autocomplete feature will present these biases to new users as neutral suggestions, thereby amplifying and reinforcing the stereotypes.
A machine learning model exhibits bias against a certain demographic group. A developer decides to address this by collecting a much larger dataset. Which of the following best explains why this action might NOT eliminate the bias?
Explanation: Correct. According to EK DAT-2.C.5, bias is not eliminated by simply collecting more data. If the source or method of collection is biased, a larger sample will just amplify that original bias. For bias to be reduced, the data must be more representative, not just more plentiful.
Introduction: A university uses facial recognition to take attendance in large lecture halls. Examples of Bias: Computing bias is a pattern of unfair outcomes produced by a system, often tied to the data it learns from and the choices people make when building it. Some facial recognition systems show higher error rates for women and for students with darker skin tones when those groups are underrepresented in the training images. How Bias Emerges: Bias can come from limited photo collections, poor image quality, and testing that does not reflect the student body. Impacts: Students may be marked absent incorrectly, which can affect grades and increase conflict with instructors. Mitigation Strategies: The university can use multiple attendance options, audit errors by group, and allow quick correction without penalties.
According to the passage, what is a consequence of computing bias as described in the text?
Explanation: This question tests AP Computer Science Principles skills: understanding computing bias and its societal impact. Computing bias occurs when algorithms or data sets favor certain outcomes, often reflecting societal inequalities. In the passage, the impact of bias in university attendance systems is highlighted, showing how facial recognition can have higher error rates for women and students with darker skin tones. Choice A is correct because it accurately reflects the passage's statement that 'Students may be marked absent incorrectly, which can affect grades and increase conflict with instructors.' Choice B is incorrect because it contradicts the passage's discussion of errors and bias. To help students: Emphasize identifying specific consequences mentioned in the text rather than idealized outcomes. Watch for: Answer choices that promise perfection or error-free performance when the passage discusses bias and errors.
Introduction: A hospital tests facial recognition to confirm patient identity at check-in. Examples of Bias: Computing bias occurs when a system’s results systematically differ across groups in ways that create unfairness. In facial recognition, bias can show up when the tool struggles with certain skin tones, ages, or gender presentations, especially if the training photos do not reflect the patient population. How Bias Emerges: Bias can enter through unbalanced data sets, inconsistent photo conditions, and rushed deployment without broad testing. Impacts: A wrong match can delay care, create billing errors, or expose private information to the wrong person. Mitigation Strategies: The hospital can keep alternative check-in methods, test error rates by group, and require staff confirmation for any mismatch.
Based on the text, which strategy is used to mitigate computing bias?
Explanation: This question tests AP Computer Science Principles skills: understanding computing bias and its societal impact. Computing bias occurs when algorithms or data sets favor certain outcomes, often reflecting societal inequalities. In the passage, the impact of bias in hospital facial recognition systems is highlighted, showing how errors can delay care or create billing problems. Choice A is correct because it accurately reflects the passage's specific mitigation strategy to 'require staff confirmation for any mismatch.' Choice B is incorrect because the passage actually recommends keeping alternative check-in methods, not eliminating them. To help students: Focus on identifying specific mitigation strategies explicitly mentioned in the text. Watch for: Options that contradict the passage's recommendations or suggest removing safeguards rather than adding them.
Introduction: A sports stadium uses facial recognition to identify banned attendees at entry gates. Examples of Bias: Computing bias means a system’s results are uneven in ways that can disadvantage certain groups, often because the system reflects the data it learns from. Facial recognition bias can lead to higher misidentification rates for Black attendees and women when the training images underrepresent them. How Bias Emerges: Bias can arise from unbalanced photo databases, poor image quality, and policies that treat automated flags as proof. Impacts: False flags can lead to denied entry, public confrontation, or unnecessary involvement of security. Mitigation Strategies: The stadium can use human confirmation, track false flags by demographic group, and limit consequences until identity is verified.
How does computing bias affect Black attendees and women according to the passage?
Explanation: This question tests AP Computer Science Principles skills: understanding computing bias and its societal impact. Computing bias occurs when algorithms or data sets favor certain outcomes, often reflecting societal inequalities. In the passage, the impact of bias in stadium facial recognition is highlighted, showing how the system can disadvantage certain demographic groups. Choice A is correct because it accurately reflects the passage's statement that 'Facial recognition bias can lead to higher misidentification rates for Black attendees and women when the training images underrepresent them.' Choice C is incorrect because it contradicts the passage's entire discussion of how bias creates uneven outcomes. To help students: Emphasize careful reading to identify which groups are specifically mentioned as experiencing higher error rates. Watch for: Options that claim systems are neutral when the passage explicitly discusses bias and uneven outcomes.
Introduction: A school district considers using facial recognition to identify visitors at building entrances. Examples of Bias: Computing bias means a system produces unfair results for some people, often because it reflects human choices or unequal social conditions. In facial recognition, bias appears when the tool misidentifies people with darker skin tones or women more often than others, especially if the training photos include fewer examples from those groups. How Bias Emerges: Bias can emerge when a data set overrepresents one group, when labels include stereotypes, or when designers test the tool mostly on one population. Impacts: Misidentification can lead to students or parents being wrongly questioned, denied entry, or reported to security, which can increase stress and distrust. Mitigation Strategies: The district can test accuracy across demographic groups, use more representative data, add human review before action, and set clear limits on when the tool is used.
Based on the text, which strategy is used to mitigate computing bias?
Explanation: This question tests AP Computer Science Principles skills: understanding computing bias and its societal impact. Computing bias occurs when algorithms or data sets favor certain outcomes, often reflecting societal inequalities. In the passage, the impact of bias in facial recognition at school entrances is highlighted, showing how it can misidentify people with darker skin tones or women more often due to underrepresentation in training data. Choice C is correct because it accurately reflects the passage's explanation of testing performance across different demographic groups as a specific mitigation strategy. Choice A is incorrect because relying on vendor claims without independent verification would not address bias issues. To help students: Encourage careful reading to identify specific mitigation strategies mentioned in passages, and discuss how testing across groups helps reveal hidden biases. Watch for: Options that sound plausible but aren't actually mentioned as mitigation strategies in the given text.
Computing bias means a computer system produces unfair results for some people because of choices made by humans. In facial recognition, bias appears when a tool matches faces more accurately for some groups than others. For example, a city uses facial recognition to help identify suspects from security footage, but community reviews show the system flags more false matches for Black women than for white men.
Bias emerges when the data used to build a system does not represent the full public. If the training photos include many light-skinned faces and fewer dark-skinned faces, the system “learns” patterns that work better for the overrepresented group. Bias also appears when designers choose goals like speed or convenience without checking who is harmed by errors.
Misidentification can lead to stressful police stops, wrongful questioning, or even arrest. People may lose trust in public safety agencies and in technology more broadly. Even when a mistake is corrected, the individual may face reputational damage, missed work, and fear of future encounters.
To reduce bias, agencies and companies test accuracy across demographic groups, expand and balance the photo data, and set strict rules for when facial recognition may be used. Some require a trained human reviewer and additional evidence before action is taken. Others publish audits and allow independent experts to evaluate results.
Facial recognition can support investigations, but it also risks unequal harm when errors cluster on specific groups. Fairness improves when systems are evaluated openly, updated with representative data, and limited by clear policies.
What is a consequence of computing bias as described in the text?
Explanation: This question tests AP Computer Science Principles skills: understanding computing bias and its societal impact. Computing bias occurs when algorithms or data sets favor certain outcomes, often reflecting societal inequalities. In the passage, the impact of bias in facial recognition is highlighted, showing how it leads to misidentification with serious personal consequences. Choice C is correct because it accurately reflects the passage's explanation of bias consequences including stressful police stops and wrongful questioning after misidentification. Choice A is incorrect because the passage actually states people lose trust in public safety agencies, not gain it. To help students: Encourage careful reading to identify specific consequences mentioned in the text, and discuss how technological errors can have real-world impacts on individuals. Watch for: Answer choices that present opposite effects or benefits when the passage describes harms.
Computing bias means a computer system produces unfair results for some people because of choices made by humans. In facial recognition, bias appears when a tool matches faces more accurately for some groups than others. For example, a city uses facial recognition to help identify suspects from security footage, but community reviews show the system flags more false matches for Black women than for white men.
Bias emerges when the data used to build a system does not represent the full public. If the training photos include many light-skinned faces and fewer dark-skinned faces, the system “learns” patterns that work better for the overrepresented group. Bias also appears when designers choose goals like speed or convenience without checking who is harmed by errors.
Misidentification can lead to stressful police stops, wrongful questioning, or even arrest. People may lose trust in public safety agencies and in technology more broadly. Even when a mistake is corrected, the individual may face reputational damage, missed work, and fear of future encounters.
To reduce bias, agencies and companies test accuracy across demographic groups, expand and balance the photo data, and set strict rules for when facial recognition may be used. Some require a trained human reviewer and additional evidence before action is taken. Others publish audits and allow independent experts to evaluate results.
Facial recognition can support investigations, but it also risks unequal harm when errors cluster on specific groups. Fairness improves when systems are evaluated openly, updated with representative data, and limited by clear policies.
According to the passage, how does computing bias affect Black women in facial recognition?
Explanation: This question tests AP Computer Science Principles skills: understanding computing bias and its societal impact. Computing bias occurs when algorithms or data sets favor certain outcomes, often reflecting societal inequalities. In the passage, the impact of bias in facial recognition on Black women is highlighted, showing how it produces more false matches for them compared to white men. Choice A is correct because it accurately reflects the passage's specific example that the system flags more false matches for Black women than for white men. Choice B is incorrect because it contradicts the passage's point about unequal error rates and the existence of false matches. To help students: Encourage students to identify specific examples in passages that illustrate bias patterns, and discuss how underrepresentation in training data affects different groups unequally. Watch for: Answer choices that claim perfect accuracy or equal treatment when the passage explicitly describes disparate impacts.
Introduction: A state motor vehicle office uses facial recognition to detect identity fraud when people apply for driver’s licenses. Examples of Bias: Computing bias refers to unfair patterns in outcomes produced by a system, often linked to the data and assumptions behind it. Facial recognition bias can produce more false matches for certain demographic groups when the system is trained on images that do not represent the full population. How Bias Emerges: Bias can come from uneven data, earlier record-keeping practices, and limited testing across groups. Impacts: False matches can delay licenses, trigger investigations, or create lasting records that are hard to correct. Mitigation Strategies: The office can require human review, allow easy appeals, and publish regular reports on error rates by group.
Based on the text, which strategy is used to mitigate computing bias?
Explanation: This question tests AP Computer Science Principles skills: understanding computing bias and its societal impact. Computing bias occurs when algorithms or data sets favor certain outcomes, often reflecting societal inequalities. In the passage, the impact of bias in motor vehicle office facial recognition is highlighted, showing how false matches can delay licenses or trigger investigations. Choice A is correct because it accurately reflects the passage's specific mitigation strategy to 'publish regular reports on error rates by group,' which helps identify and address bias patterns. Choice B is incorrect because it contradicts the passage's emphasis on human review and appeals. To help students: Emphasize identifying mitigation strategies that increase transparency and accountability. Watch for: Options that suggest removing oversight or making systems less reviewable.
Computing bias means a computer system produces unfair results for some people because of choices made by humans. In facial recognition, bias appears when a tool matches faces more accurately for some groups than others. For example, a city uses facial recognition to help identify suspects from security footage, but community reviews show the system flags more false matches for Black women than for white men.
Bias emerges when the data used to build a system does not represent the full public. If the training photos include many light-skinned faces and fewer dark-skinned faces, the system “learns” patterns that work better for the overrepresented group. Bias also appears when designers choose goals like speed or convenience without checking who is harmed by errors.
Misidentification can lead to stressful police stops, wrongful questioning, or even arrest. People may lose trust in public safety agencies and in technology more broadly. Even when a mistake is corrected, the individual may face reputational damage, missed work, and fear of future encounters.
To reduce bias, agencies and companies test accuracy across demographic groups, expand and balance the photo data, and set strict rules for when facial recognition may be used. Some require a trained human reviewer and additional evidence before action is taken. Others publish audits and allow independent experts to evaluate results.
Facial recognition can support investigations, but it also risks unequal harm when errors cluster on specific groups. Fairness improves when systems are evaluated openly, updated with representative data, and limited by clear policies.
According to the passage, what is one reason facial recognition bias emerges?
Explanation: This question tests AP Computer Science Principles skills: understanding computing bias and its societal impact. Computing bias occurs when algorithms or data sets favor certain outcomes, often reflecting societal inequalities. In the passage, the emergence of bias in facial recognition is highlighted, showing how it stems from unrepresentative training data. Choice A is correct because it accurately reflects the passage's explanation that bias emerges when training photos include many light-skinned faces and fewer dark-skinned faces, creating overrepresentation and underrepresentation. Choice B is incorrect because it attributes bias to hardware issues rather than data representation problems. To help students: Encourage understanding of how training data composition directly affects algorithm performance, and discuss the importance of representative datasets. Watch for: Answer choices that blame hardware or speed when the passage focuses on data representation issues.
Computing bias means a computer system produces unfair results for some people because of choices made by humans. In facial recognition, bias appears when a tool matches faces more accurately for some groups than others. For example, a city uses facial recognition to help identify suspects from security footage, but community reviews show the system flags more false matches for Black women than for white men.
Bias emerges when the data used to build a system does not represent the full public. If the training photos include many light-skinned faces and fewer dark-skinned faces, the system “learns” patterns that work better for the overrepresented group. Bias also appears when designers choose goals like speed or convenience without checking who is harmed by errors.
Misidentification can lead to stressful police stops, wrongful questioning, or even arrest. People may lose trust in public safety agencies and in technology more broadly. Even when a mistake is corrected, the individual may face reputational damage, missed work, and fear of future encounters.
To reduce bias, agencies and companies test accuracy across demographic groups, expand and balance the photo data, and set strict rules for when facial recognition may be used. Some require a trained human reviewer and additional evidence before action is taken. Others publish audits and allow independent experts to evaluate results.
Facial recognition can support investigations, but it also risks unequal harm when errors cluster on specific groups. Fairness improves when systems are evaluated openly, updated with representative data, and limited by clear policies.
In the context of the passage, how does bias influence the outcome of facial recognition use?
Explanation: This question tests AP Computer Science Principles skills: understanding computing bias and its societal impact. Computing bias occurs when algorithms or data sets favor certain outcomes, often reflecting societal inequalities. In the passage, the impact of bias in facial recognition is highlighted, showing how it shifts errors toward groups underrepresented in training data. Choice B is correct because it accurately reflects the passage's explanation that when training photos underrepresent certain groups, the system learns patterns that work better for overrepresented groups, shifting errors to underrepresented ones. Choice C is incorrect because it contradicts the passage's central point about unequal accuracy across demographic groups. To help students: Encourage analysis of how training data composition affects algorithm performance, and discuss the connection between data representation and outcome fairness. Watch for: Answer choices that claim equal outcomes when the passage explicitly describes unequal impacts.
Introduction: An airport adds facial recognition for boarding to speed up lines. Examples of Bias: Computing bias refers to unfair patterns in results produced by a computing system. Reports show some facial recognition tools misidentify travelers with darker skin tones at higher rates, often because the data used to build the tool includes fewer images of those travelers. How Bias Emerges: Bias can arise when a data set is not representative, when images are labeled inconsistently, or when testing focuses on only one group. Impacts: Misidentification can cause missed flights, extra screening, and embarrassment, which may fall more heavily on certain demographic groups. Mitigation Strategies: Airports can offer an opt-out option, measure error rates by group, and require staff to confirm identity before penalties.
How does computing bias affect travelers with darker skin tones according to the passage?
Explanation: This question tests AP Computer Science Principles skills: understanding computing bias and its societal impact. Computing bias occurs when algorithms or data sets favor certain outcomes, often reflecting societal inequalities. In the passage, the impact of bias in airport facial recognition is highlighted, showing how some systems misidentify travelers with darker skin tones at higher rates. Choice A is correct because it accurately reflects the passage's statement that these travelers experience higher misidentification rates during boarding checks, which can cause missed flights and extra screening. Choice B is incorrect because it contradicts the passage by suggesting these travelers have advantages rather than disadvantages. To help students: Emphasize careful reading to identify specific groups affected by bias and how they're impacted. Watch for: Answer choices that reverse or misrepresent the actual effects of bias described in the passage.