The Internet

Help Questions

AP Computer Science Principles › The Internet

Questions 1 - 6
1

According to the text’s packet journey, why might packets arrive out of order, yet the message still succeeds?

HTTP forces packets to arrive alphabetically, preventing any rearrangement errors.

Encryption duplicates packets randomly, so order becomes irrelevant to meaning.

ISPs store packets until all networks worldwide are completely uncongested.

Packet switching allows different routes, and TCP reorders data using sequence information.

Explanation

This question tests AP Computer Science Principles understanding of Internet concepts, specifically packet ordering and TCP's role in ensuring data integrity. In packet-switched networks, packets may take different routes and arrive out of order due to varying network conditions, but TCP includes sequence numbers that allow the receiving system to reassemble packets in the correct order regardless of arrival sequence. According to the text's packet journey description, this design allows for flexible routing while maintaining data integrity through TCP's sequencing and reassembly mechanisms. Choice A is correct because it accurately explains that packet switching allows different routes (causing potential out-of-order arrival) and TCP reorders data using sequence information, which is how the Internet maintains message integrity despite dynamic routing. Choice B incorrectly attributes ordering to HTTP; Choice C misunderstands encryption's purpose; and Choice D presents an impractical scenario about ISP behavior. Students should understand that the Internet's design separates routing flexibility (IP layer) from reliability guarantees (TCP layer), allowing both efficiency and accuracy. Practice analyzing how different protocol layers solve different aspects of the communication challenge.

2

According to the text, what cybersecurity measure best matches a firewall’s role on a home or school network?

It filters incoming and outgoing traffic using rules, allowing some connections and blocking others.

It scrambles messages into ciphertext so eavesdroppers cannot read them.

It guarantees every packet arrives instantly by removing congestion from networks.

It assigns IP addresses by translating domain names into numbers.

Explanation

This question tests AP Computer Science Principles understanding of Internet concepts, specifically firewall functionality in cybersecurity. A firewall is a network security device that monitors and controls incoming and outgoing network traffic based on predetermined security rules, acting as a barrier between trusted internal networks and untrusted external networks. According to the text's description of cybersecurity measures, a firewall's role is to filter network traffic by examining packets and deciding whether to allow or block them based on configured rules. Choice B is correct because it accurately describes a firewall as filtering incoming and outgoing traffic using rules, allowing some connections and blocking others, which is the fundamental operation of firewall technology. Choice A describes encryption, not firewalls; Choice C describes DNS functionality; and Choice D makes unrealistic claims about network performance. Students should understand that firewalls provide access control and traffic filtering, distinct from other security measures like encryption or authentication. Practice differentiating between various cybersecurity tools and understanding how each contributes to a comprehensive security strategy.

3

According to the text, what role does packet switching play in handling Internet congestion?

It converts HTTP requests into email messages so they bypass overloaded routers.

It splits data into packets that can reroute around busy links, like cars taking side streets.

It guarantees every packet arrives in order without using TCP acknowledgments.

It reserves a private circuit for each user, preventing anyone else from sharing bandwidth.

Explanation

This question tests AP Computer Science Principles understanding of how packet switching helps manage network congestion on the Internet. Packet switching's flexibility allows data packets to dynamically choose different routes based on network conditions, similar to how drivers might take alternate routes to avoid traffic jams. According to the text, packet switching handles congestion by splitting data into packets that can reroute around busy or congested network links. Choice A is correct because it accurately describes this adaptive routing capability using an appropriate analogy of cars taking side streets to avoid traffic. Choice B is incorrect because it describes circuit switching (reserving dedicated paths) rather than packet switching's dynamic routing approach. Students should understand that packet switching's ability to use multiple paths simultaneously makes the Internet more resilient and efficient, especially during high traffic periods.

4

According to the text, what is the primary purpose of encryption in Internet security?

To scramble data in transit so eavesdroppers cannot easily read sensitive information.

To verify a website’s domain name by translating it into an IP address.

To prevent routing by forcing packets to remain inside one local network.

To replace TCP/IP by letting applications send data without packet headers.

Explanation

This question tests AP Computer Science Principles understanding of Internet security concepts, specifically the primary purpose of encryption. Encryption is a fundamental security technique that protects data confidentiality by transforming readable information into an unreadable format that can only be decoded by authorized parties with the proper decryption key. According to the text, encryption's primary purpose in Internet security is to scramble data during transmission so that eavesdroppers cannot easily read sensitive information. Choice C is correct because it accurately describes encryption's role in protecting data from unauthorized access during transit. Choice B is incorrect because it describes DNS functionality (domain name to IP address translation) rather than encryption's security purpose. Students should understand that encryption is crucial for protecting sensitive data like passwords, financial information, and personal communications as they travel across the public Internet infrastructure.

5

According to the text, which protocol is primarily used for web browsing?

HTTP, because it defines how browsers request pages and servers respond.

TCP/IP, because it is the only protocol used on the Internet for any application.

SMTP, because it is designed to display websites and stream videos.

DNS, because it carries the web page content from the server to your browser.

Explanation

This question tests AP Computer Science Principles understanding of Internet protocols, specifically identifying the primary protocol used for web browsing. HTTP (Hypertext Transfer Protocol) is the application-layer protocol that governs communication between web browsers and web servers, defining how requests for web pages are formatted and how servers should respond. According to the text, HTTP is the protocol that defines how browsers request pages and how servers respond with the requested content. Choice C is correct because it accurately identifies HTTP as the web browsing protocol and correctly explains its role in browser-server communication. Choice D is incorrect because while TCP/IP is fundamental to Internet communication, it operates at lower layers and is not specific to web browsing. Students should understand the layered nature of Internet protocols and recognize that HTTP is the application-specific protocol for web communication.

6

According to the text, how do routers support packet switching as data travels between networks and data centers?

They convert packets into a single file so nothing arrives out of order.

They replace IP addresses with usernames to make routing more personal.

They choose next-hop paths for packets, like directing cars through changing highway exits.

They write web pages in HTTP so servers can display them correctly.

Explanation

This question tests AP Computer Science Principles understanding of Internet concepts, specifically how routers function within packet switching networks. Routers are specialized networking devices that examine packet headers to determine the best path for data to travel through the network, making forwarding decisions at each hop based on routing tables and network conditions. According to the text's description of packet switching, routers support this process by choosing next-hop paths for packets, similar to how highway interchanges direct cars to different routes based on their destinations. Choice A is correct because it accurately describes routers' role in choosing next-hop paths for packets using the apt analogy of directing cars through changing highway exits, which captures how routers make dynamic routing decisions. Choice B incorrectly suggests routers combine packets; Choice C confuses routers with web servers; and Choice D misunderstands how IP addressing works. Students should understand that routers are the decision-makers in packet switching networks, examining each packet's destination and choosing the best available path. Practice visualizing how packets move through networks and the role each network device plays in facilitating this movement.