Docsity

AP Computer Science Principles (APCSP) Exam, Exams of Nursing

Toggle sidebar
bg1
Page 1
AP Computer Science Principles (APCSP) Exam
Practice Questions With Answers and Explanations
Question 1. Which statement about citizen science is most accurate?
A. Volunteer data is always unbiased because contributors are not paid.
B. Computing can let volunteers contribute observations or processing effort to scientific projects at
large scale.
C. Only professional scientists are allowed to contribute data to any scientific computing project.
D. Citizen science eliminates the need to validate measurements or methods.
Correct Answer: B. Computing can let volunteers contribute observations or processing effort
to scientific projects at large scale.
Explanation: The correct statement accurately describes citizen science. Distributed participation can expand
data collection and analysis while still requiring protocols, validation, and awareness of sampling limitations.
The distractors rely on absolute claims that ignore stakeholders, context, or known security and privacy
limitations. APCSP impact questions reward careful evaluation rather than assuming that computing is
automatically beneficial, neutral, or perfectly secure.
Question 2. Which statement best describes Internet Protocol and routing?
A. Routing requires the sender to know the exact sequence of every router before transmission begins.
B. An IP address guarantees that every packet follows a single permanent route.
C. Routers use destination addressing information to forward packets toward their destinations across
interconnected networks.
D. Routers inspect the meaning of every application message and rewrite it before forwarding.
Correct Answer: C. Routers use destination addressing information to forward packets toward
their destinations across interconnected networks.
Explanation: The correct choice gives the standard networking or computing meaning of Internet Protocol and
routing. Internet routing forwards packets hop by hop using addressing and routing information rather than a
preselected permanent path. The distractors confuse the concept with a different network property or make
an absolute guarantee that protocols cannot provide. APCSP systems questions emphasize how layered,
interoperable systems behave rather than assuming perfect networks.
Question 3. A developer argues that malware does not need to be considered because
the program works as specified. Which response is best?
A. The issue matters only if the program produces a syntax error.
B. The developer is correct because working code cannot create social, ethical, privacy, or security
concerns.
C. Technical correctness is not enough; malicious software is defined by harmful or unauthorized
behavior, not by device type or how the file first reached the system.
D. The developer is correct as long as the program has more than one user.
Correct Answer: C. Technical correctness is not enough; malicious software is defined by
harmful or unauthorized behavior, not by device type or how the file first reached the system.
Explanation: The best response explains that malicious software is defined by harmful or unauthorized
behavior, not by device type or how the file first reached the system. A program can execute exactly as
designed and still create harmful, unfair, insecure, or privacy-sensitive outcomes. The distractors confuse
technical correctness with responsible impact assessment. APCSP explicitly treats the effects of computing as
broader than whether code compiles and runs.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download AP Computer Science Principles (APCSP) Exam and more Exams Nursing in PDF only on Docsity!

AP Computer Science Principles (APCSP) Exam

Practice Questions With Answers and Explanations

Question 1. Which statement about citizen science is most accurate?

A. Volunteer data is always unbiased because contributors are not paid. B. Computing can let volunteers contribute observations or processing effort to scientific projects at large scale. C. Only professional scientists are allowed to contribute data to any scientific computing project. D. Citizen science eliminates the need to validate measurements or methods.

Correct Answer: B. Computing can let volunteers contribute observations or processing effort to scientific projects at large scale.

Explanation: The correct statement accurately describes citizen science. Distributed participation can expand data collection and analysis while still requiring protocols, validation, and awareness of sampling limitations. The distractors rely on absolute claims that ignore stakeholders, context, or known security and privacy limitations. APCSP impact questions reward careful evaluation rather than assuming that computing is automatically beneficial, neutral, or perfectly secure.

Question 2. Which statement best describes Internet Protocol and routing?

A. Routing requires the sender to know the exact sequence of every router before transmission begins. B. An IP address guarantees that every packet follows a single permanent route. C. Routers use destination addressing information to forward packets toward their destinations across interconnected networks. D. Routers inspect the meaning of every application message and rewrite it before forwarding.

Correct Answer: C. Routers use destination addressing information to forward packets toward their destinations across interconnected networks.

Explanation: The correct choice gives the standard networking or computing meaning of Internet Protocol and routing. Internet routing forwards packets hop by hop using addressing and routing information rather than a preselected permanent path. The distractors confuse the concept with a different network property or make an absolute guarantee that protocols cannot provide. APCSP systems questions emphasize how layered, interoperable systems behave rather than assuming perfect networks.

Question 3. A developer argues that malware does not need to be considered because

the program works as specified. Which response is best?

A. The issue matters only if the program produces a syntax error. B. The developer is correct because working code cannot create social, ethical, privacy, or security concerns. C. Technical correctness is not enough; malicious software is defined by harmful or unauthorized behavior, not by device type or how the file first reached the system. D. The developer is correct as long as the program has more than one user.

Correct Answer: C. Technical correctness is not enough; malicious software is defined by harmful or unauthorized behavior, not by device type or how the file first reached the system.

Explanation: The best response explains that malicious software is defined by harmful or unauthorized behavior, not by device type or how the file first reached the system. A program can execute exactly as designed and still create harmful, unfair, insecure, or privacy-sensitive outcomes. The distractors confuse technical correctness with responsible impact assessment. APCSP explicitly treats the effects of computing as broader than whether code compiles and runs.

Question 4. A group is developing a tool that summarizes survey responses. The team

is reviewing its workflow. Which practice should be changed first because it conflicts

with collaboration?

A. Use clear task ownership, shared conventions, and regular communication when multiple people develop a program. B. Have every team member independently rewrite the entire program and combine the files at the end. C. Avoid documenting interfaces because collaborators should infer how every component works. D. Allow each collaborator to change shared code without communicating what was changed.

Correct Answer: D. Allow each collaborator to change shared code without communicating what was changed.

Explanation: The practice that conflicts most directly with collaboration is the one that says to allow each collaborator to change shared code without communicating what was changed. Collaboration is more effective when contributors coordinate responsibilities, interfaces, version changes, and design decisions. The correct workflow should make progress easier to evaluate and should reduce avoidable uncertainty. Identifying the conflicting practice requires comparing each choice with the core purpose of the development principle.

Question 5. Consider the following code segment. What value is displayed when the

segment finishes?

x ← 5 y ← 6 x ← x + y y ← x - 4 z ← 2 * y - x DISPLAY(z) A. 7 B. 3 C. 11 D. 2

Correct Answer: B. 3

Explanation: The code first changes x from 5 to 11. It then sets y to 7 because the updated value of x is used in the assignment. Therefore z becomes 2 × 7 − 11 = 3. The key is to use each variable's most recently assigned value when tracing later statements.

Question 6. A developer claims that debugging is unnecessary when a program is small.

Which response is most accurate?

A. The practice should be postponed until the program has been used for at least one year. B. The practice matters only when the program will be sold commercially. C. Even a small program can benefit because systematic debugging isolates causes and verifies corrections rather than relying on random changes. D. Small programs cannot contain logic errors, so the practice is useful only for large systems.

Correct Answer: C. Even a small program can benefit because systematic debugging isolates causes and verifies corrections rather than relying on random changes.

Explanation: The claim is incorrect because systematic debugging isolates causes and verifies corrections rather than relying on random changes. Program size can affect how much process is needed, but it does not eliminate the underlying value of the practice. The distractors make unsupported absolute claims about size, commercial use, or timing. APCSP emphasizes general development principles that apply at different scales.

Question 10. In AP pseudocode, list positions begin at 1. What value is displayed?

values ← [11, 22, 30, 41, 52] index ← 4 result ← values[index] DISPLAY(result) A. 41 B. 52 C. 4 D. 5

Correct Answer: A. 41

Explanation: The variable index is assigned 4. Because AP pseudocode uses 1-based list indexing, values[4] is

  1. The program therefore displays 41. Confusing 1-based indexing with 0-based indexing is a common tracing error.

Question 11. A student is explaining correlation and causation. Which statement in the

explanation is a misconception?

A. Correlation can be computed only when one variable is Boolean. B. The usefulness of a data technique depends on the question and the characteristics of the data. C. A correlation between two variables does not by itself prove that changing one variable causes a change in the other. D. A careful analyst should consider how correlation and causation affects the meaning of a result.

Correct Answer: A. Correlation can be computed only when one variable is Boolean.

Explanation: The misconception is the claim that correlation can be computed only when one variable is Boolean. Confounding variables, reverse causation, or coincidence can create associations without a direct causal relationship. The remaining statements appropriately connect the concept to context and interpretation. APCSP frequently tests whether students can reject overly broad claims about data.

Question 12. A city deploys an app that uses location data to suggest transit routes.

Which statement about open-source and content licenses is a misconception?

A. A license can grant permission to reuse or modify a work while imposing conditions such as attribution, notice, or sharing requirements. B. Different stakeholders may experience different consequences related to open-source and content licenses. C. Design and policy choices can influence how strongly open-source and content licenses affects users. D. Every open license allows any use without attribution or other obligations.

Correct Answer: D. Every open license allows any use without attribution or other obligations.

Explanation: The misconception is the statement that every open license allows any use without attribution or other obligations. Open licensing expands permitted reuse, but users still need to follow the specific terms attached to the work. The remaining statements recognize that impacts vary across people and can be influenced by design decisions. Negative-stem questions require identifying the one claim that contradicts responsible computing principles.

Question 13. A student team is creating a campus-event app. Which statement best

explains why program function can improve the final computing artifact?

A. It makes testing unnecessary once the program compiles. B. It ensures that every stakeholder will prefer the same solution. C. It can improve the artifact because program function concerns observable behavior and the transformations a program performs, not merely its motivation. D. It guarantees that the first design will be the final design.

Correct Answer: C. It can improve the artifact because program function concerns observable behavior and the transformations a program performs, not merely its motivation.

Explanation: The strongest explanation is that program function concerns observable behavior and the transformations a program performs, not merely its motivation. Improvement comes from better information, structure, or coordination rather than from eliminating uncertainty. The other choices incorrectly claim that normal development activities or differences among users disappear. A sound development process supports better decisions but cannot guarantee universal agreement or flawless software.

Question 14. A school website remains reachable even after one network path fails.

Which statement about packet switching is a misconception?

A. Understanding packet switching can help explain observed network or system behavior. B. A message must reserve one dedicated physical path before any packet can be transmitted. C. Data can be divided into packets that may travel along different routes and be reassembled at the destination. D. The usefulness of packet switching depends on the goals and constraints of the system.

Correct Answer: B. A message must reserve one dedicated physical path before any packet can be transmitted.

Explanation: The misconception is the statement that a message must reserve one dedicated physical path before any packet can be transmitted. Packet-switched networks share communication resources and allow routers to forward packets independently. The remaining statements accurately recognize the concept and its context-dependent role. Negative-stem items require rejecting the one choice that contradicts the underlying system behavior.

Question 15. Which statement best describes Boolean expressions?

A. A Boolean expression evaluates to true or false and can combine relational expressions with AND, OR, and NOT. B. AND is true whenever at least one of its operands is true. C. A Boolean expression must evaluate to an integer greater than zero. D. Boolean expressions can be used only inside procedures with parameters.

Correct Answer: A. A Boolean expression evaluates to true or false and can combine relational expressions with AND, OR, and NOT.

Explanation: The correct statement gives the standard computing meaning of Boolean expressions. Boolean logic controls decisions and repetition by combining conditions with well-defined truth rules. The distractors either impose a requirement that does not exist or confuse the concept with a different programming construct. APCSP questions often test whether a student can connect an abstract programming idea to its actual behavior.

Question 19. A video-conferencing service is expanding to users in many countries.

Which statement about distributed computing is a misconception?

A. The usefulness of distributed computing depends on the goals and constraints of the system. B. Distributed computing eliminates communication costs between participating machines. C. Understanding distributed computing can help explain observed network or system behavior. D. Distributed computing uses multiple networked computers that coordinate to perform a computation or provide a service.

Correct Answer: B. Distributed computing eliminates communication costs between participating machines.

Explanation: The misconception is the statement that distributed computing eliminates communication costs between participating machines. Distributed systems coordinate separate machines and must account for communication, synchronization, and possible partial failures. The remaining statements accurately recognize the concept and its context-dependent role. Negative-stem items require rejecting the one choice that contradicts the underlying system behavior.

Question 20. Which pair of statements is consistent with sound reasoning about large

data sets?

A. I. Privacy concerns disappear when millions of records are collected. II. Metadata and collection context can always be ignored. B. I. A sufficiently large data set is automatically representative of every population. II. A larger file size automatically removes all bias. C. I. Large data sets cannot contain duplicate or inaccurate records. II. Any pattern found by a computer must represent causation. D. I. Large data sets can reveal patterns at scale but can still contain bias, errors, privacy risks, or irrelevant variables. II. Conclusions should be limited to what the available data and collection method can support.

Correct Answer: D. I. Large data sets can reveal patterns at scale but can still contain bias, errors, privacy risks, or irrelevant variables. II. Conclusions should be limited to what the available data and collection method can support.

Explanation: Both statements in the correct pair are consistent with sound reasoning about large data sets. More data can improve some analyses, but quantity does not guarantee quality, fairness, or privacy. Each distractor combines a misconception with an additional unjustified claim about data quality or interpretation. When evaluating paired statements, both parts of the selected option must be defensible.

Question 21. How many times is count incremented before it is displayed?

count ← 0 REPEAT 4 TIMES { REPEAT 3 TIMES { count ← count + 1 } } DISPLAY(count) A. 4 B. 12 C. 7 D. 16

Correct Answer: B. 12

Explanation: The inner loop executes 3 times for each of the 4 outer-loop iterations. Therefore the increment statement executes 4 × 3 = 12 times. Because count starts at 0, its final value is 12. For simple nested counted loops, the total number of inner-body executions is the product of the loop counts.

Question 22. Which change would most directly help a programmer use iteration

correctly?

A. Adopt this rule instead: Iteration changes every Boolean value to true. B. Adopt this rule instead: Iteration requires a list even when a fixed repetition count is known. C. Adopt this rule instead: Iteration can execute a statement only once. D. Choose the implementation that reflects this principle: Iteration repeats a block of statements according to a count, condition, or traversal.

Correct Answer: D. Choose the implementation that reflects this principle: Iteration repeats a block of statements according to a count, condition, or traversal.

Explanation: The best change is to implement the actual semantics of iteration. Loops support repeated computation and can process sequences or continue until a condition is satisfied. The distractors would produce misunderstandings or unnecessary restrictions. Correct use depends on the construct's defined behavior, not on arbitrary rules.

Question 23. Which statement about open data is most accurate?

A. Open data can enable new analyses and applications, but publishers should still consider privacy, licensing, and data quality. B. Open data may be published without considering whether individuals can be reidentified. C. Opening a data set makes every conclusion drawn from it correct. D. Open data must never be reused in a new context.

Correct Answer: A. Open data can enable new analyses and applications, but publishers should still consider privacy, licensing, and data quality.

Explanation: The correct statement captures the essential idea of open data. Data access can create public value while still requiring responsible handling and interpretation. The distractors use absolute claims or confuse the concept with an unrelated property of data. APCSP data questions often require distinguishing what computing can do from what the data actually justifies.

Question 27. A student is explaining sequencing to a classmate. Which statement

should the student include?

A. The last statement in a sequence always executes first. Therefore, it has no effect on program design. B. In a sequence, statements execute in the specified order unless a control structure changes the flow. This is useful because changing statement order can change values and outputs because later operations may depend on earlier results. C. Sequence matters only for programs that contain lists. Therefore, it guarantees that a program has no errors. D. Statements in a sequence always execute simultaneously. Therefore, the construct should be avoided.

Correct Answer: B. In a sequence, statements execute in the specified order unless a control structure changes the flow. This is useful because changing statement order can change values and outputs because later operations may depend on earlier results.

Explanation: The correct explanation accurately describes sequencing and connects it to a valid benefit or behavior. Changing statement order can change values and outputs because later operations may depend on earlier results. Each distractor begins from an incorrect claim and reaches an unsupported conclusion. A strong APCSP explanation states both what a construct does and why that behavior matters.

Question 28. Which statement about data cleaning is most accurate?

A. Data cleaning guarantees that a data set is unbiased and complete. B. Data cleaning means deleting any record that does not support the expected conclusion. C. Data cleaning replaces all original measurements with predicted values. D. Data cleaning can correct inconsistent formats, duplicate records, missing values, and obvious entry errors before analysis.

Correct Answer: D. Data cleaning can correct inconsistent formats, duplicate records, missing values, and obvious entry errors before analysis.

Explanation: The correct statement captures the essential idea of data cleaning. Cleaning improves consistency and usability, but it cannot by itself remove sampling bias or guarantee correctness. The distractors use absolute claims or confuse the concept with an unrelated property of data. APCSP data questions often require distinguishing what computing can do from what the data actually justifies.

Question 29. Which change would most directly help a programmer use heuristics and

hard problems correctly?

A. Adopt this rule instead: Any problem solved with a heuristic becomes mathematically undecidable. B. Adopt this rule instead: Heuristics are used only when computers cannot execute arithmetic operations. C. Adopt this rule instead: A heuristic always proves that its solution is the unique optimal solution. D. Choose the implementation that reflects this principle: For some problems that are difficult to solve exactly in reasonable time, a heuristic can produce a useful but not guaranteed optimal solution.

Correct Answer: D. Choose the implementation that reflects this principle: For some problems that are difficult to solve exactly in reasonable time, a heuristic can produce a useful but not guaranteed optimal solution.

Explanation: The best change is to implement the actual semantics of heuristics and hard problems. Heuristics trade guaranteed optimality for practical performance on problems where exact search may be too costly. The distractors would produce misunderstandings or unnecessary restrictions. Correct use depends on the construct's defined behavior, not on arbitrary rules.

Question 30. A developer argues that citizen science does not need to be considered

because the program works as specified. Which response is best?

A. The issue matters only if the program produces a syntax error. B. Technical correctness is not enough; distributed participation can expand data collection and analysis while still requiring protocols, validation, and awareness of sampling limitations. C. The developer is correct as long as the program has more than one user. D. The developer is correct because working code cannot create social, ethical, privacy, or security concerns.

Correct Answer: B. Technical correctness is not enough; distributed participation can expand data collection and analysis while still requiring protocols, validation, and awareness of sampling limitations.

Explanation: The best response explains that distributed participation can expand data collection and analysis while still requiring protocols, validation, and awareness of sampling limitations. A program can execute exactly as designed and still create harmful, unfair, insecure, or privacy-sensitive outcomes. The distractors confuse technical correctness with responsible impact assessment. APCSP explicitly treats the effects of computing as broader than whether code compiles and runs.

Question 31. Which action is most responsible when a team is making a design decision

involving accessibility?

A. Assume that technical efficiency automatically makes the design fair and socially beneficial. B. Ignore the issue unless a user submits a complaint after deployment. C. Identify affected stakeholders, evaluate relevant risks and benefits, and apply this principle: Designing for accessibility can make computing artifacts usable by people with a wider range of abilities and interaction needs. D. Choose the option with the most features even if it creates unnecessary privacy or security risk.

Correct Answer: C. Identify affected stakeholders, evaluate relevant risks and benefits, and apply this principle: Designing for accessibility can make computing artifacts usable by people with a wider range of abilities and interaction needs.

Explanation: The responsible approach considers stakeholders and then applies the underlying principle of accessibility. Inclusive design considers varied sensory, motor, cognitive, and situational needs as part of normal product development. The distractors delay evaluation or treat one technical objective as more important than all human consequences. Responsible computing involves identifying tradeoffs before harm occurs, not only reacting afterward.

Question 35. Which change would most directly help a programmer use lists as data

abstractions correctly?

A. Choose the implementation that reflects this principle: A list can store multiple related values under one name and allows algorithms to process the collection systematically. B. Adopt this rule instead: A list removes the need for any algorithm that accesses or updates data. C. Adopt this rule instead: A list can contain only one value at a time. D. Adopt this rule instead: Using a list requires creating a separate variable name for every possible element.

Correct Answer: A. Choose the implementation that reflects this principle: A list can store multiple related values under one name and allows algorithms to process the collection systematically.

Explanation: The best change is to implement the actual semantics of lists as data abstractions. Lists manage complexity by representing a collection that can be indexed, modified, and traversed. The distractors would produce misunderstandings or unnecessary restrictions. Correct use depends on the construct's defined behavior, not on arbitrary rules.

Question 36. Which statement best describes latency?

A. Latency is the maximum amount of data that can be stored on a server. B. Latency measures how many bits are used to represent one character. C. Latency is the delay between sending or requesting data and receiving the resulting response or data. D. Latency is eliminated whenever a connection has high bandwidth.

Correct Answer: C. Latency is the delay between sending or requesting data and receiving the resulting response or data.

Explanation: The correct choice gives the standard networking or computing meaning of latency. A connection can have high bandwidth and still have noticeable delay, so latency and bandwidth measure different aspects of performance. The distractors confuse the concept with a different network property or make an absolute guarantee that protocols cannot provide. APCSP systems questions emphasize how layered, interoperable systems behave rather than assuming perfect networks.

Question 37. What Boolean value is displayed by the following code segment?

x ← 11 y ← 9 result ← (x < y) AND NOT ((x MOD 2 = 0) AND (y > 13)) DISPLAY(result) A. true B. false C. 0 D. The expression causes an error.

Correct Answer: B. false

Explanation: The comparison x < y is false for x = 11 and y = 9. The inner AND is false, so applying NOT makes it true. Combining the two parts with AND gives false. Boolean expressions evaluate to true or false in AP pseudocode.

Question 38. A team is prototyping an accessibility feature for a school website. Which

statement best explains why program purpose can improve the final computing

artifact?

A. It ensures that every stakeholder will prefer the same solution. B. It guarantees that the first design will be the final design. C. It makes testing unnecessary once the program compiles. D. It can improve the artifact because a program's purpose explains why it exists or what problem, need, or goal the program addresses.

Correct Answer: D. It can improve the artifact because a program's purpose explains why it exists or what problem, need, or goal the program addresses.

Explanation: The strongest explanation is that a program's purpose explains why it exists or what problem, need, or goal the program addresses. Improvement comes from better information, structure, or coordination rather than from eliminating uncertainty. The other choices incorrectly claim that normal development activities or differences among users disappear. A sound development process supports better decisions but cannot guarantee universal agreement or flawless software.

Question 39. Which action is most responsible when a team is making a design decision

involving algorithmic bias?

A. Identify affected stakeholders, evaluate relevant risks and benefits, and apply this principle: An algorithm can produce systematically unfair outcomes because of biased data, design choices, objectives, or deployment context. B. Ignore the issue unless a user submits a complaint after deployment. C. Choose the option with the most features even if it creates unnecessary privacy or security risk. D. Assume that technical efficiency automatically makes the design fair and socially beneficial.

Correct Answer: A. Identify affected stakeholders, evaluate relevant risks and benefits, and apply this principle: An algorithm can produce systematically unfair outcomes because of biased data, design choices, objectives, or deployment context.

Explanation: The responsible approach considers stakeholders and then applies the underlying principle of algorithmic bias. Computational consistency does not guarantee fairness because inputs, labels, features, objectives, and context can encode or amplify inequities. The distractors delay evaluation or treat one technical objective as more important than all human consequences. Responsible computing involves identifying tradeoffs before harm occurs, not only reacting afterward.

Question 43. A robot starts facing south. After executing the commands, which

direction is it facing?

ROTATE_RIGHT() ROTATE_RIGHT() ROTATE_LEFT() ROTATE_LEFT() ROTATE_RIGHT() A. east B. west C. north D. south

Correct Answer: B. west

Explanation: The robot begins facing south. Applying the turns in order changes its orientation to west. ROTATE_RIGHT turns 90 degrees clockwise, while ROTATE_LEFT turns 90 degrees counterclockwise. These commands change orientation only and do not move the robot to a different square.

Question 44. A user types a website name into a browser. A developer is evaluating a

design choice related to packets. Which approach is most defensible?

A. Use the design principle correctly: A packet contains data plus control information that helps the network deliver or interpret that portion of a message. B. Base the design on this assumption: A packet can contain only control information and never part of the transmitted data. C. Base the design on this assumption: A packet is always identical in size and content to the complete original file. D. Base the design on this assumption: Packets eliminate the need for addressing or ordering information in network communication.

Correct Answer: A. Use the design principle correctly: A packet contains data plus control information that helps the network deliver or interpret that portion of a message.

Explanation: The defensible approach uses the actual behavior of packets rather than an unsupported assumption. Packetization separates a message into manageable units and adds headers or other control information for transmission. The other choices would make the design depend on properties that real networks or systems do not guarantee. Robust designs recognize constraints such as delay, failures, interoperability, and coordination costs.

Question 45. Why is understanding data transformation important when using data to

answer a question?

A. Because it ensures that every visualization of the data will communicate the same message. B. Because it eliminates the need to understand how the data was collected. C. Operations such as normalization, unit conversion, or aggregation can support analysis when their meaning and limitations are understood. D. Because it guarantees that a large data set will produce a causal conclusion.

Correct Answer: C. Operations such as normalization, unit conversion, or aggregation can support analysis when their meaning and limitations are understood.

Explanation: The best explanation is that operations such as normalization, unit conversion, or aggregation can support analysis when their meaning and limitations are understood. Data analysis always depends on representation, context, and assumptions in addition to the size of a data set. The distractors incorrectly claim that causation, collection quality, or visualization choices no longer matter. Recognizing limitations is a central part of interpreting computational results responsibly.

Question 46. A group is developing a tool that summarizes survey responses. The team

is reviewing its workflow. Which practice should be changed first because it conflicts

with user-centered feedback?

A. Treat every user suggestion as mandatory without considering goals, constraints, or conflicting needs. B. Ignore user feedback once the programmer has selected a preferred interface. C. Ask only the development team whether the product satisfies people outside the team. D. Observe or ask intended users how well a prototype meets their needs and use that evidence to guide revisions.

Correct Answer: B. Ignore user feedback once the programmer has selected a preferred interface.

Explanation: The practice that conflicts most directly with user-centered feedback is the one that says to ignore user feedback once the programmer has selected a preferred interface. User feedback helps developers identify usability problems and align a product with the needs of its intended audience. The correct workflow should make progress easier to evaluate and should reduce avoidable uncertainty. Identifying the conflicting practice requires comparing each choice with the core purpose of the development principle.

Question 47. A city deploys an app that uses location data to suggest transit routes.

Which statement about data breaches is a misconception?

A. Organizations can reduce breach risk through access controls, updates, monitoring, minimization, and response planning, but no defense guarantees zero risk. B. Different stakeholders may experience different consequences related to data breaches. C. A breach cannot occur if an organization has never publicly disclosed one. D. Design and policy choices can influence how strongly data breaches affects users.

Correct Answer: C. A breach cannot occur if an organization has never publicly disclosed one.

Explanation: The misconception is the statement that a breach cannot occur if an organization has never publicly disclosed one. Security uses layered defenses and risk management because technical flaws, stolen credentials, insiders, and human error can all contribute to breaches. The remaining statements recognize that impacts vary across people and can be influenced by design decisions. Negative-stem questions require identifying the one claim that contradicts responsible computing principles.

Question 48. A city publishes bicycle-trip records for public analysis. Which

consideration best reflects the concept of visualization?

A. All data questions are best answered with the same type of chart. B. A useful visualization should match the data and question, use clear scales and labels, and avoid misleading encodings. C. A graph is accurate as long as it uses bright colors, regardless of scale or labels. D. Truncating an axis can never change how viewers perceive differences.

Correct Answer: B. A useful visualization should match the data and question, use clear scales and labels, and avoid misleading encodings.

Explanation: The best choice is the one that correctly applies visualization to the data scenario. Visualization choices influence interpretation, so scale, labeling, chart type, and context matter. The other choices ignore a limitation or make a guarantee that the data cannot support. Sound data analysis depends on both computational processing and careful interpretation.

Question 52. Which change would most directly help a programmer use randomness

and simulation correctly?

A. Adopt this rule instead: Random values guarantee that a simulation perfectly matches the real world. B. Adopt this rule instead: A simulation using random numbers must produce exactly the same result on every run. C. Adopt this rule instead: Using randomness removes the need to define probabilities or assumptions. D. Choose the implementation that reflects this principle: Random values can model uncertain or variable events, but repeated simulations may produce different outcomes.

Correct Answer: D. Choose the implementation that reflects this principle: Random values can model uncertain or variable events, but repeated simulations may produce different outcomes.

Explanation: The best change is to implement the actual semantics of randomness and simulation. Randomness can approximate variable processes, while the quality of a simulation still depends on the model and assumptions. The distractors would produce misunderstandings or unnecessary restrictions. Correct use depends on the construct's defined behavior, not on arbitrary rules.

Question 53. Why can understanding algorithm help when reasoning about an

algorithm?

A. Algorithms describe processes independently of any particular programming language and can use different control structures as needed. B. Because it removes the need to trace values or conditions. C. Because it guarantees that the first algorithm written is optimal. D. Because it makes every program independent of its inputs.

Correct Answer: A. Algorithms describe processes independently of any particular programming language and can use different control structures as needed.

Explanation: The best reason is that algorithms describe processes independently of any particular programming language and can use different control structures as needed. Understanding the construct helps predict how an algorithm will behave for different inputs. The distractors incorrectly promise optimality or claim that normal reasoning about inputs is unnecessary. APCSP emphasizes tracing and explaining behavior rather than assuming that a construct automatically makes an algorithm correct.

Question 54. Which statement about finite representation is most accurate?

A. A fixed number of bits limits the number of distinct values that can be represented. B. The number of possible bit patterns is unrelated to the number of available bits. C. Adding more bits always decreases the number of representable values. D. A fixed number of bits can represent infinitely many exact values.

Correct Answer: A. A fixed number of bits limits the number of distinct values that can be represented.

Explanation: The correct statement captures the essential idea of finite representation. With n bits there are 2^n distinct bit patterns, so finite storage imposes finite representational capacity. The distractors use absolute claims or confuse the concept with an unrelated property of data. APCSP data questions often require distinguishing what computing can do from what the data actually justifies.

Question 55. Which statement best describes open protocols?

A. Open protocols require every device to use the same brand of hardware. B. Open protocols are secret specifications available only to one network provider. C. Open protocols prevent new devices from joining the Internet without permission from a single company. D. Open protocols allow devices and software from different organizations to communicate using publicly agreed rules.

Correct Answer: D. Open protocols allow devices and software from different organizations to communicate using publicly agreed rules.

Explanation: The correct choice gives the standard networking or computing meaning of open protocols. Publicly defined standards support interoperability and decentralized growth of the Internet. The distractors confuse the concept with a different network property or make an absolute guarantee that protocols cannot provide. APCSP systems questions emphasize how layered, interoperable systems behave rather than assuming perfect networks.

Question 56. Which statement about accessibility is most accurate?

A. Accessibility matters only for specialized medical software and not for general-purpose applications. B. Designing for accessibility can make computing artifacts usable by people with a wider range of abilities and interaction needs. C. Accessibility features should be added only after a user proves that the standard interface is unusable. D. An accessible design must remove all visual, audio, and keyboard interaction from the product.

Correct Answer: B. Designing for accessibility can make computing artifacts usable by people with a wider range of abilities and interaction needs.

Explanation: The correct statement accurately describes accessibility. Inclusive design considers varied sensory, motor, cognitive, and situational needs as part of normal product development. The distractors rely on absolute claims that ignore stakeholders, context, or known security and privacy limitations. APCSP impact questions reward careful evaluation rather than assuming that computing is automatically beneficial, neutral, or perfectly secure.

Question 57. The loop stops when its condition becomes true. What value is displayed?

value ← 2 count ← 0 REPEAT UNTIL (value ≥ 18) { value ← value + 2 count ← count + 1 } DISPLAY(count) A. 0 B. 7 C. 9 D. 8

Correct Answer: D. 8

Explanation: The loop starts with value = 2 and adds 2 during each iteration. It takes 8 iterations for value to reach or exceed 18. At that point count equals 8, so that value is displayed. A REPEAT UNTIL loop stops once its Boolean condition becomes true.