0% found this document useful (0 votes)
8 views

Homework12A The internet

The document is an assignment for AP Computer Science A that includes multiple-choice questions and free response exercises related to the Internet and Domain Name System (DNS). Students are instructed to read a specific section and write clean, well-commented code where applicable. The exercises cover topics such as subdomains, URL definitions, Internet routing, and the process of downloading an image from a website.

Uploaded by

zibsucker4
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Homework12A The internet

The document is an assignment for AP Computer Science A that includes multiple-choice questions and free response exercises related to the Internet and Domain Name System (DNS). Students are instructed to read a specific section and write clean, well-commented code where applicable. The exercises cover topics such as subdomains, URL definitions, Internet routing, and the process of downloading an image from a website.

Uploaded by

zibsucker4
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

AP Computer Science A

Assignment.
Date:2 /10/2024 Name: ______________
12A

Instructions

Read the Internet Unit U section 11.8 to Complete the exercises below. Ensure you write clean,
well-commented code where applicable.

Exercise 1: Multiple-Choice Questions

1. According to the Domain Name System (DNS), which of the following is a subdomain of
the domain example.com?
A) about.example.com
B) example.com/home
C) example.com.org
D) example.org

2. What is the function of the Domain Name System (DNS)?

A) To sell website names to web developers


B) To assign a unique domain name to every computer
C) To make sure that each IP address has only one corresponding domain name
D) To translate domain names into IP addresses
3. What does URL stand for?

A) Underlying Request Layout


B) Underlying Response Layout
C) Uniform Resource Locator
D) Usable Render List

4. Which of the following are true about Internet routing?

I - For any two points on the Internet, there exists only one path between the two points
II - Routing on the Internet is fault tolerant and redundant

A) I only
B) II only
C) Both I and II
D) Neither I nor II

5. What information is contained in a packet?

A) The entirety of a digital message


B) The entirety of a digital message, and metadata about the message, including where it
came from and where it is going.
C) A small part of a digital message.
D) A small part of a digital message, and metadata about the message, including where it
came from and where it is going

Exercise 2: Free Response

1. What does it mean for the routing system to be “redundant”? Is redundancy


a good or bad thing?
2. In your own words, tell the story of downloading an image from a website on the internet.
Let's say you are on your laptop and you want to download an image of Karel the dog
from the URL https://codehs.com/static/img/karel.png Tell the story step by step of how
your computer finds the CodeHS server, requests information from the server, and
receives it.

Be sure to include the following distinctions between the internet and the World Wide
Web.

 The World Wide Web is a system of linked pages, programs, and files.

 HTTP is a protocol used by the World Wide Web.

 The World Wide Web uses the Internet.


3. URLs specify the location for resources on the Internet. Examine the
following URL and answer the following questions.
In the following URL:
www.example.com/homepage.html

1. What is the domain in this URL?


2. What is the path in this URL?

When this URL is typed into your browser, your browser generates a request based
on the URL.

3. Where does this request get sent? What kind of machine is listening for this
request?
4. What exactly is the request asking for? What does your browser expect to
receive as a response?

Teacher: Bishara Khalil

You might also like