AP Computer Science Principles Exam — Questions and Answers
Question 1: Consider this pseudocode: x ← 10 IF x > 5 THEN x ← x + 1 ELSE x ← x - 1 What is the final value of x?
- 10
- 11 (Correct answer)
- 5
- 9
Correct answer: 11
Since 10 > 5 is TRUE, the THEN branch executes: x becomes 10 + 1 = 11.
Question 2: A student tests their quiz app by entering wrong answers on purpose to see what happens. This testing strategy is called:
- Syntax checking
- Deployment testing
- Boundary/edge case testing (Correct answer)
- Unit testing
Correct answer: Boundary/edge case testing
Testing with unexpected or incorrect inputs is edge/boundary case testing, which checks how software handles situations outside normal use.
Question 3: A program stores a student's grade as an integer instead of a floating-point number. What is the main consequence of this choice?
- Integer storage requires significantly more memory than floating-point
- The program will crash whenever it attempts to read the grade
- Fractional grade values will be truncated or rounded, losing precision (Correct answer)
- The grade will always be stored incorrectly
Correct answer: Fractional grade values will be truncated or rounded, losing precision
Integers cannot represent fractional parts, so a grade like 87.5 would be stored as 87 or 88, losing the decimal precision.
Question 4: How many unique values can be represented using 4 bits?
- 32
- 4
- 8
- 16 (Correct answer)
Correct answer: 16
With n bits you can represent 2^n unique values; 2^4 = 16.
Question 5: How does run-length encoding (RLE) compress data?
- It replaces sequences of repeated values with a count and the repeated value (Correct answer)
- It splits a file into chunks and stores only unique chunks
- It removes duplicate words from text files
- It converts all data to hexadecimal to save space
Correct answer: It replaces sequences of repeated values with a count and the repeated value
RLE replaces consecutive repeated values (e.g., AAAAAAA) with a shorter representation (e.g., 7A), making it effective for data with long repeated sequences.
Question 6: Which of the following BEST describes a 'deepfake' and its primary concern?
- Synthetically generated media that can be used to spread disinformation (Correct answer)
- A deep-learning model used for medical diagnostics
- A secure method of hiding data within other files
- A type of data encryption that is very difficult to break
Correct answer: Synthetically generated media that can be used to spread disinformation
Deepfakes are AI-generated synthetic media that can realistically impersonate real people, enabling the spread of disinformation.
Question 7: Which of the following scenarios BEST demonstrates 'techno-solutionism' and its potential drawbacks?
- Using cloud computing to back up data
- Designing a database to efficiently store records
- Using encryption to protect sensitive files
- Assuming a smartphone app can fully solve a complex social problem like homelessness (Correct answer)
Correct answer: Assuming a smartphone app can fully solve a complex social problem like homelessness
Techno-solutionism is the belief that technology alone can fix complex social problems, often ignoring deeper structural causes.
Question 8: Which scenario BEST demonstrates the concept of 'surveillance capitalism'?
- A government monitoring known criminals
- A company selling user behavioral data to advertisers for profit (Correct answer)
- A bank encrypting customer financial records
- A school tracking student attendance
Correct answer: A company selling user behavioral data to advertisers for profit
Surveillance capitalism involves collecting and monetizing user data and behaviors as a primary business model.
Question 9: What role does ethics play in Creative Development practice?
- It only applies to managers
- It guides professional conduct and protects stakeholders (Correct answer)
- Ethics is optional in professional settings
- It only matters for legal compliance
Correct answer: It guides professional conduct and protects stakeholders
Professional ethics provide frameworks for responsible decision-making, ensuring practitioners act in the best interest of those they serve.
Question 10: Which of the following is NOT a characteristic of a well-designed computational artifact?
- It is purposely difficult to use to prevent misuse (Correct answer)
- It can be modified and improved over time
- It is reliable and produces consistent results
- It solves the intended problem
Correct answer: It is purposely difficult to use to prevent misuse
Good artifacts are designed to be usable and accessible, not deliberately difficult; usability is a core design principle.
Question 11: In the context of public-key cryptography, which key should a user share publicly to receive encrypted messages?
- Public key (Correct answer)
- Session key
- Private key
- Symmetric key
Correct answer: Public key
In asymmetric encryption, the public key is shared openly so others can encrypt messages that only the holder of the private key can decrypt.
Question 12: A developer uses pseudocode to plan a program before coding it. What is the main benefit of this step?
- It automatically generates the final program
- It helps clarify logic and structure before worrying about syntax (Correct answer)
- Pseudocode runs faster than actual code
- It replaces the need for testing
Correct answer: It helps clarify logic and structure before worrying about syntax
Pseudocode lets a developer work out the logic and flow of a program in plain language before dealing with the specific syntax of a programming language.
Question 13: According to De Morgan's first law, NOT(A AND B) is equivalent to:
- A OR B
- A AND B
- NOT(A) AND NOT(B)
- NOT(A) OR NOT(B) (Correct answer)
Correct answer: NOT(A) OR NOT(B)
De Morgan's first law states: NOT(A AND B) = NOT(A) OR NOT(B).
Question 14: Which encoding standard assigns a unique number to every character and supports over 140,000 characters from multiple languages and symbol sets?
- ASCII
- UTF-8 / Unicode (Correct answer)
- Base64
- EBCDIC
Correct answer: UTF-8 / Unicode
Unicode (with UTF-8 as a common encoding) assigns code points to over 140,000 characters covering most of the world's writing systems.
Question 15: What is the significance of port 443 in internet communication?
- It is the default port for HTTPS (secure web) traffic (Correct answer)
- It is reserved for DNS queries
- It is used for unencrypted HTTP traffic
- It handles email delivery via SMTP
Correct answer: It is the default port for HTTPS (secure web) traffic
Port 443 is the standard port for HTTPS connections, which use TLS/SSL encryption.
Question 16: A program filters a list of temperatures, keeping only values above 100°F. After filtering 500 readings, only 3 remain. What is the BEST description of those 3 values?
- Normalized data
- Representative samples
- The median values
- Outliers (Correct answer)
Correct answer: Outliers
Values that fall far outside the typical range of a dataset are called outliers, and here only 3 of 500 readings exceeded 100°F.
Question 17: A program stores the value 3.14159 but later retrieves 3.14158999999. What phenomenon caused this discrepancy?
- Floating-point representation error (Correct answer)
- Data corruption
- Integer overflow
- Lossless compression artifact
Correct answer: Floating-point representation error
Floating-point numbers cannot always be represented exactly in binary, leading to small rounding errors when storing or performing arithmetic on decimal values.
Question 18: What is the benefit of using a modular design in a large program?
- It forces programmers to use only one programming language
- It prevents other developers from reading the source code
- It makes programs run faster on older computers
- It breaks the program into independent procedures that are easier to test and reuse (Correct answer)
Correct answer: It breaks the program into independent procedures that are easier to test and reuse
Modular design allows each procedure to be developed, tested, and reused independently, reducing complexity in large programs.
Question 19: Which of the following scenarios illustrates 'net neutrality' being violated?
- An ISP throttling video streaming services to favor its own content (Correct answer)
- An ISP offering free public Wi-Fi hotspots
- A user downloading large files on a shared network
- A website using HTTPS encryption
Correct answer: An ISP throttling video streaming services to favor its own content
Net neutrality requires ISPs to treat all internet traffic equally; throttling competitors violates this principle.
Question 20: A text file contains 1,000 characters, each encoded in ASCII. Approximately how many bytes does it require?
- 1,000 bytes (Correct answer)
- 8,000 bytes
- 2,000 bytes
- 125 bytes
Correct answer: 1,000 bytes
Standard ASCII uses 7 bits per character, but ASCII files are stored as 8-bit bytes, so 1,000 characters = approximately 1,000 bytes.
Question 21: What is the purpose of a primary key in a database table?
- To sort records alphabetically
- To uniquely identify each record in the table (Correct answer)
- To link two tables through a shared password
- To encrypt sensitive fields in the table
Correct answer: To uniquely identify each record in the table
A primary key is a unique identifier for each row in a database table, ensuring no two records have the same key value.
Question 22: A file system abstraction lets users work with 'files' and 'folders.' What complexity does this hide?
- The speed of the CPU
- The color of the monitor
- The network protocol used for internet access
- The low-level details of how data is stored on magnetic or solid-state media (Correct answer)
Correct answer: The low-level details of how data is stored on magnetic or solid-state media
File system abstractions hide sector-level disk storage details, presenting a human-friendly folder/file metaphor.
Question 23: What is the purpose of using a development process when building a program?
- To guarantee the program will have no bugs
- To make programming take longer
- To provide a structured approach that reduces errors and improves collaboration (Correct answer)
- To replace the need for testing
Correct answer: To provide a structured approach that reduces errors and improves collaboration
A structured development process (plan, design, implement, test) reduces errors and helps teams collaborate effectively.
Question 24: The condition (x > 0 OR y > 0) is TRUE when:
- Both x and y are negative
- Neither x nor y is zero
- At least one of x or y is positive (Correct answer)
- x equals y
Correct answer: At least one of x or y is positive
OR is TRUE when at least one operand is TRUE, so only one of the values needs to be positive.
Question 25: A webpage uses HTTPS instead of HTTP. What additional feature does HTTPS provide?
- Encrypted communication between browser and server (Correct answer)
- Access to more internet servers
- The ability to load images and videos
- Faster page load times
Correct answer: Encrypted communication between browser and server
HTTPS uses TLS/SSL encryption to secure the data transmitted between a browser and web server, protecting it from eavesdropping.
Question 26: What is 'digital divide' in the context of computing innovations?
- The unequal access to technology and the internet across different socioeconomic groups (Correct answer)
- The difference between analog and digital signals
- The separation between hardware and software components
- The gap between old and new programming languages
Correct answer: The unequal access to technology and the internet across different socioeconomic groups
The digital divide refers to disparities in technology access based on income, geography, or education, creating unequal opportunities.
Question 27: The hexadecimal color code #FF0000 represents which color?
- Blue
- White
- Red (Correct answer)
- Green
Correct answer: Red
In RGB hex notation #FF0000 means red channel = 255, green = 0, blue = 0, which is pure red.
Question 28: Boolean logic is fundamental to computing primarily because computers internally represent all data as:
- Hexadecimal values
- Letters and symbols
- Binary digits (0 and 1) (Correct answer)
- Decimal numbers (0-9)
Correct answer: Binary digits (0 and 1)
Computers use binary (0s and 1s) at the hardware level, and Boolean logic directly operates on these binary values to perform all computations.
Question 29: What is the result of evaluating the Boolean expression: NOT (TRUE AND FALSE)?
- NULL
- Undefined
- TRUE (Correct answer)
- FALSE
Correct answer: TRUE
TRUE AND FALSE evaluates to FALSE, and NOT FALSE evaluates to TRUE.
Question 30: What is 'net neutrality' and why does it matter?
- The principle that internet service providers must treat all data equally without blocking or throttling (Correct answer)
- A protocol that makes websites load at the same speed worldwide
- A law requiring equal pay for tech workers
- A rule requiring all websites to have the same design
Correct answer: The principle that internet service providers must treat all data equally without blocking or throttling
Net neutrality prevents ISPs from favoring certain websites or services with faster speeds, ensuring an open and competitive internet.
Question 31: In the context of AP CSP, what does it mean to say a simulation has 'emergent behavior'?
- The simulation requires human input at each step
- The simulation crashes unexpectedly due to an error
- The simulation grows larger over time as data is added
- Complex patterns arise from simple rules applied to many interacting agents (Correct answer)
Correct answer: Complex patterns arise from simple rules applied to many interacting agents
Emergent behavior occurs when individual agents following simple rules collectively produce complex, unexpected system-level patterns.
Question 32: Which traversal strategy visits all neighbors of a node before moving to the next level in a graph or tree?
- Depth-first search
- Linear search
- Breadth-first search (Correct answer)
- Binary search
Correct answer: Breadth-first search
Breadth-first search (BFS) explores all nodes at the current depth before advancing to nodes at the next depth level.
Question 33: A social media platform uses an algorithm to decide which posts appear in a user's feed. Which digital impact concern does this BEST illustrate?
- Bandwidth throttling slowing load times
- Data compression reducing quality
- Filter bubbles limiting exposure to diverse viewpoints (Correct answer)
- Encryption preventing data sharing
Correct answer: Filter bubbles limiting exposure to diverse viewpoints
Algorithmic curation can create filter bubbles by showing users only content that aligns with their existing views.
Question 34: What is 'latency' in a network context?
- The time delay between sending a request and receiving a response (Correct answer)
- The number of hops a packet takes
- The amount of data lost during transmission
- The maximum number of simultaneous connections
Correct answer: The time delay between sending a request and receiving a response
Latency is the time it takes for data to travel from the source to the destination, often measured in milliseconds.
Question 35: A team uses user stories during development. What is the primary purpose of a user story?
- To document server infrastructure
- To list bugs found during testing
- To describe a system's internal algorithm
- To capture a feature from the end user's perspective (Correct answer)
Correct answer: To capture a feature from the end user's perspective
User stories describe desired functionality from the user's point of view, keeping development user-focused.
Question 36: What is the primary purpose of professional certification in Abstraction Concepts?
- To replace practical experience
- To meet legal requirements only
- To increase salary automatically
- To validate competency and knowledge in the field (Correct answer)
Correct answer: To validate competency and knowledge in the field
Certification validates that a professional has met established standards of knowledge and competency in Abstraction Concepts.
Question 37: What is a list in Python?
- A key-value pair
- An ordered, mutable collection of elements (Correct answer)
- An immutable sequence
- A single value
Correct answer: An ordered, mutable collection of elements
A Python list is an ordered, mutable sequence that can hold elements of different types, defined with square brackets.
Question 38: Why do programmers use abstraction when building large software systems?
- To manage complexity by hiding unnecessary details (Correct answer)
- To make programs run faster by removing all function calls
- To ensure programs can only run on one type of hardware
- To prevent other developers from reading the code
Correct answer: To manage complexity by hiding unnecessary details
Abstraction manages complexity by allowing programmers to focus on high-level design rather than low-level implementation details.
Question 39: What is the relationship between theory and practice in Digital Impact?
- They are completely separate
- Theory is unnecessary
- Practice is unnecessary if you know theory
- Theory provides the foundation; practice applies it to real situations (Correct answer)
Correct answer: Theory provides the foundation; practice applies it to real situations
Theory provides the conceptual foundation and principles, while practice involves applying those concepts to real-world situations. Both are essential for competence.
Question 40: Which of the following is NOT a benefit of using abstractions in programming?
- Eliminating all possible bugs automatically (Correct answer)
- Reducing code complexity
- Making programs easier to maintain
- Allowing code reuse across different programs
Correct answer: Eliminating all possible bugs automatically
Abstraction helps manage complexity and reuse code, but it does not automatically eliminate bugs.
Question 41: In AP CSP pseudocode, what does the expression LENGTH(myList) return?
- The number of elements currently in myList (Correct answer)
- The largest value in myList
- The sum of all elements in myList
- The index of the last element in myList
Correct answer: The number of elements currently in myList
LENGTH(list) returns the total count of elements stored in the list.
Question 42: What is the process of elimination in multiple-choice testing?
- Skipping every other question
- Ruling out obviously incorrect answers to improve odds (Correct answer)
- Removing your first answer
- Eliminating questions you don't know
Correct answer: Ruling out obviously incorrect answers to improve odds
Process of elimination involves identifying and removing clearly wrong answers, increasing the probability of selecting the correct answer from remaining options.
Question 43: A software developer is building a new app that requires the ability to perform calculations. Which of the following is the most effective way to design the app’s calculation feature?
- Manually write out the calculation each time it’s needed
- Store the results of calculations in a database for later use
- Use an already-defined function to handle the calculations (Correct answer)
- Create a new function every time a calculation is required
Correct answer: Use an already-defined function to handle the calculations
Using an already-defined function promotes efficiency, reusability, and abstraction in software development. It avoids redundant code, reduces the chance of errors, and allows the developer to focus on higher-level logic rather than re-implementing basic functionalities like calculations from scratch.
Question 44: Which of the following is an example of data abstraction?
- Debugging a program with a step-through debugger
- Compiling source code into machine code
- Writing a loop that iterates 10 times
- Using a list to represent a collection of student scores without specifying how the list is stored in memory (Correct answer)
Correct answer: Using a list to represent a collection of student scores without specifying how the list is stored in memory
Using a list to represent scores without knowing the underlying memory layout is data abstraction.
Question 45: A programmer documents each function with a description of its inputs, outputs, and purpose. This practice primarily helps with:
- Preventing all runtime errors
- Reducing the number of variables needed
- Making code maintainable and understandable for future developers (Correct answer)
- Making the program run faster
Correct answer: Making code maintainable and understandable for future developers
Documentation helps current and future developers understand what each function does without reading all the implementation code.
Question 46: Why might a scientist run the same simulation hundreds of times with different random seeds?
- To collect a range of outcomes and analyze the distribution of results (Correct answer)
- To find the fastest possible outcome
- To reduce the file size of the output data
- To ensure the simulation code has no bugs
Correct answer: To collect a range of outcomes and analyze the distribution of results
Running many trials with different random seeds gives a statistical distribution of outcomes rather than a single result.
Question 47: What is the role of DNS (Domain Name System) in the operation of the internet?
- It stores and retrieves data from websites
- It ensures the internet connection is fast and reliable
- It converts domain names (like www.example.com) into IP addresses (Correct answer)
- It provides security by encrypting internet traffic
Correct answer: It converts domain names (like www.example.com) into IP addresses
The Domain Name System (DNS) acts like the internet's phonebook. Its primary role is to translate human-readable domain names (like www.example.com) into machine-readable IP addresses (e.g., 192.0.2.1). This translation is essential for your computer to locate and connect to the correct server hosting the website you wish to access.
Question 48: What is a firewall?
- An antivirus program
- A fire-resistant building component
- A security device that monitors and controls network traffic based on rules (Correct answer)
- A password manager
Correct answer: A security device that monitors and controls network traffic based on rules
Firewalls filter incoming and outgoing network traffic based on security rules, creating a barrier between trusted and untrusted networks.
Question 49: What does the XOR (exclusive OR) operator return?
- TRUE when exactly one input is TRUE (Correct answer)
- TRUE when both inputs are TRUE
- TRUE when at least one input is TRUE
- TRUE when both inputs are FALSE
Correct answer: TRUE when exactly one input is TRUE
XOR returns TRUE only when exactly one of its inputs is TRUE, unlike regular OR which also returns TRUE when both inputs are TRUE.
Question 50: What does the expression NOT(TRUE AND FALSE) evaluate to?
- UNDEFINED
- TRUE (Correct answer)
- FALSE
- NULL
Correct answer: TRUE
TRUE AND FALSE = FALSE, then NOT(FALSE) = TRUE.
Question 51: A scatter plot shows points trending upward from left to right. What does this indicate?
- A positive correlation between the two variables (Correct answer)
- A negative correlation between the two variables
- No relationship between the two variables
- The data contains many outliers
Correct answer: A positive correlation between the two variables
An upward trend from left to right in a scatter plot indicates a positive correlation — as one variable increases, the other tends to increase as well.
Question 52: A simulation of a financial market includes the rule: 'If a stock rises 5%, 70% of investors sell.' Which real-world phenomenon is this rule attempting to model?
- The effect of inflation on stock valuations
- Herd behavior, where many investors react similarly to price changes (Correct answer)
- Random market fluctuations with no human cause
- Government regulation of stock prices
Correct answer: Herd behavior, where many investors react similarly to price changes
The rule models herd behavior — the tendency of many investors to make the same decision in response to market movements.
Question 53: What is the purpose of 'traceroute' (or 'tracert') as a network diagnostic tool?
- It scans a network for all connected devices and their open ports
- It measures the total bandwidth available on a network connection
- It decrypts HTTPS traffic for inspection
- It displays the sequence of routers a packet passes through on its way to a destination (Correct answer)
Correct answer: It displays the sequence of routers a packet passes through on its way to a destination
Traceroute reveals each hop (router) a packet takes to reach its destination, along with latency at each hop.
Question 54: Which of the following best describes the difference between IPv4 and IPv6?
- IPv6 is slower but more secure than IPv4
- IPv6 uses 128-bit addresses, providing far more unique addresses than IPv4's 32-bit addresses (Correct answer)
- IPv4 supports wireless networks while IPv6 supports wired networks
- IPv6 eliminates the need for DNS
Correct answer: IPv6 uses 128-bit addresses, providing far more unique addresses than IPv4's 32-bit addresses
IPv6 uses 128-bit addresses, allowing approximately 3.4×10³⁸ unique addresses, compared to IPv4's ~4.3 billion addresses.
Question 55: A student shares a copyrighted movie using a peer-to-peer network. Which concept does this BEST relate to?
- Network packet loss
- Bandwidth allocation
- Intellectual property and digital piracy (Correct answer)
- DNS resolution failure
Correct answer: Intellectual property and digital piracy
Sharing copyrighted content without authorization constitutes digital piracy and violates intellectual property law.
Question 56: What is the purpose of 'pseudocode' in the design phase?
- To run the program without a compiler
- To convert the program to machine language
- To describe the algorithm logic in plain language before writing actual code (Correct answer)
- To encrypt the source code for security
Correct answer: To describe the algorithm logic in plain language before writing actual code
Pseudocode allows developers to plan logic clearly in plain language, making it easier to translate into any programming language.
Question 57: What is a zero-day vulnerability?
- A security flaw unknown to the vendor with no available patch (Correct answer)
- A vulnerability that was fixed immediately
- A low-risk security issue
- An outdated software version
Correct answer: A security flaw unknown to the vendor with no available patch
Zero-day vulnerabilities are newly discovered security flaws that the vendor doesn't know about yet, giving them 'zero days' to fix it before potential exploitation.
Question 58: A student sends an email. The message is split into packets that take different routes and arrive out of order. Which protocol reassembles them correctly?
- ICMP
- UDP
- TCP (Correct answer)
- IP
Correct answer: TCP
TCP (Transmission Control Protocol) numbers packets and reassembles them in the correct order at the destination.
Question 59: What does 'informed consent' mean in the context of data collection?
- Users are clearly told what data is collected and how it will be used, and they agree before collection begins (Correct answer)
- Companies can collect any data as long as they store it securely
- Informed consent only applies to medical data, not digital data
- Users are required to provide their full name when signing up for a service
Correct answer: Users are clearly told what data is collected and how it will be used, and they agree before collection begins
Informed consent requires that users knowingly and voluntarily agree to data collection practices before their information is gathered.
Question 60: A security system uses the condition (door_locked AND alarm_on). What happens to the condition when the door is unlocked?
- The alarm_on value determines the outcome
- The overall condition becomes FALSE (Correct answer)
- The overall condition is still TRUE
- The condition becomes undefined
Correct answer: The overall condition becomes FALSE
If door_locked is FALSE, the AND expression is FALSE regardless of the value of alarm_on.
Question 61: Which of the following BEST describes the purpose of data cleaning?
- Converting data to a binary format
- Compressing data to save storage space
- Removing duplicate or incorrect entries to improve data quality (Correct answer)
- Encrypting data before transmission
Correct answer: Removing duplicate or incorrect entries to improve data quality
Data cleaning involves identifying and correcting or removing inaccurate, incomplete, or duplicate records to improve dataset quality.
Question 62: Which principle is addressed by laws like the Computer Fraud and Abuse Act (CFAA)?
- That all software must be open source
- That unauthorized access to computer systems is illegal (Correct answer)
- That the government owns all digital data
- The right to access any website for free
Correct answer: That unauthorized access to computer systems is illegal
The CFAA makes unauthorized access to computer systems a federal crime, protecting individuals and organizations from hacking.
Question 63: Which of the following is the BEST reason to use version control when creating a computational artifact?
- To share the artifact with the public automatically
- To track changes and revert to earlier versions if needed (Correct answer)
- To make the artifact run faster
- To convert code from one language to another
Correct answer: To track changes and revert to earlier versions if needed
Version control systems track changes over time so developers can revert to earlier versions, compare changes, and collaborate without losing work.
Question 64: Which of the following is a concern when combining data from multiple sources into a single dataset?
- Multiple sources guarantee higher accuracy
- Combining data always violates privacy laws
- Inconsistent formats or definitions may create errors (Correct answer)
- The combined dataset will always have fewer records
Correct answer: Inconsistent formats or definitions may create errors
When merging datasets from different sources, inconsistent field names, date formats, or value definitions can introduce errors requiring careful data cleaning.
Question 65: Which security practice involves deliberately probing a system for weaknesses before attackers can?
- Intrusion detection
- Data masking
- Access control
- Penetration testing (Correct answer)
Correct answer: Penetration testing
Penetration testing (ethical hacking) simulates real attacks to identify and fix vulnerabilities before malicious actors exploit them.
Question 66: Which of the following BEST explains why computing innovations can have unequal societal impacts?
- All software contains bugs that affect some users more than others
- Faster processors benefit only advanced users
- Open protocols always favor large corporations
- Existing social inequalities can be amplified when technology access and benefits are unevenly distributed (Correct answer)
Correct answer: Existing social inequalities can be amplified when technology access and benefits are unevenly distributed
Technology often amplifies existing inequalities because those already disadvantaged may lack access to or benefit from new innovations.
Question 67: A student creates an animated story using a presentation tool, adding images, transitions, and recorded narration. This artifact is best classified as:
- A database
- A hardware component
- A multimedia computational artifact (Correct answer)
- An algorithm
Correct answer: A multimedia computational artifact
An animated story combining images, transitions, and audio created with a computing tool is a multimedia computational artifact.
Question 68: Why is the internet described as using an 'open standards' approach, and what is one benefit of this?
- Open standards require governments to approve all new network protocols
- Open standards are publicly documented protocols that any vendor can implement, enabling interoperability between different systems (Correct answer)
- Open standards restrict who can build internet infrastructure to prevent monopolies
- Open standards mean all internet traffic is publicly visible and unencrypted
Correct answer: Open standards are publicly documented protocols that any vendor can implement, enabling interoperability between different systems
Open standards like TCP/IP are freely available specifications, allowing any device or software from any vendor to interoperate on the internet.
Question 69: When a programmer uses a variable name like `totalScore` instead of a memory address, they are using:
- A naming abstraction that hides the physical memory location (Correct answer)
- A loop construct
- A Boolean expression
- A hardware interrupt
Correct answer: A naming abstraction that hides the physical memory location
Variable names are abstractions over physical memory addresses, making code readable and writable.
Question 70: A library provides a function `sortList(list)` that sorts any list. The programmer using the library does not know whether it uses bubble sort or merge sort. This illustrates:
- Abstraction — the implementation details are hidden behind an interface (Correct answer)
- A syntax error in the library
- Binary search being applied to a list
- The programmer has no information about the function
Correct answer: Abstraction — the implementation details are hidden behind an interface
The sorting algorithm is hidden behind the function name, which is the essence of abstraction.
AP Computer Science Principles Exam
The AP Computer Science Principles Exam assesses understanding of the computational thinking practices and Big Ideas that form the foundation of the course, including creative development, data, algorithms and programming, computer systems and networks, and the impact of computing.
Exam Rules
- You can skip questions and return to them later
- Flag questions for review before submitting
- No feedback shown until you submit the entire exam
- Unanswered questions count as wrong — answer everything
- 10 pretest questions are mixed in and don't affect your score
- Timer auto-submits when time runs out
- Your progress is auto-saved every 30 seconds