What a URL is

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

What a URL is

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. What does URL stand for?
A Universal Reading Language
B Uniform Resource Locator
2. Which one is a URL?
A A page with a blue heading and a photo
B https://www.example.com/index.html
3. A URL is the address of a web page, not the content shown on the page.
A True
B False
4. Where do you normally type a URL to visit a web page?
A The browser address bar
B The browser history list
5. How many web pages or files can one URL point to?
A One unique page or file
B Every page on the web

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1https://www.example.com/index.html AUniform Resource Locator, the address typed into the browser address bar
2URL BA URL: a text-based address that identifies one web page or file
3A URL is a unique address, so it takes you to one specific web page CAddress bar: https://www.school.org/maths.html
4A URL is typed into the browser address bar to ask for a page DA URL is only the address of the page, not its content. The text and images are the page content.
5A URL is the content shown on a web page, such as its text and images EEach URL is unique and identifies only one web page or file, so two pages cannot share one URL.
6Two different web pages can share exactly the same URL Fhttps://www.bbc.co.uk/news

Definitions

URL

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
// ___ = Uniform Resource Locator
2.
// URL = Uniform ________ Locator
3.
___________ ← "https://www.example.com"
4.
IF url1 _ url2 THEN OUTPUT "Different web pages" ENDIF
5.
url _ "www.example.com/news.html"

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A address ← "https://www.bbc.co.uk"
B OUTPUT "Address bar shows:"
C OUTPUT "address"
Question 2
A url1 ← "https://shop.com/cart"
B url2 ← "https://shop.com/cart"
C IF url1 ≠ url2 THEN
D OUTPUT "Different pages"
E ENDIF
Question 3
A url ← https://example.com
B OUTPUT "Visiting:"
C OUTPUT url
Question 4
A url ← "https://school.org/news"
B content ← "Welcome to school"
C OUTPUT "Address: " + url
D OUTPUT "Page text: " + url
Question 5
A pageA ← "https://site.com/a.html"
B pageB ← "https://site.com/b.html"
C OUTPUT pageA = pageB
D // TRUE: two unique addresses

Answer Key

What a URL is
Section A: Quick Questions
Q1
B — Uniform Resource Locator
Q2
B — https://www.example.com/index.html
Q3
A — True
Q4
A — The browser address bar
Q5
A — One unique page or file
Section B: Match the Pairs
Q1
https://www.example.com/index.html → A URL: a text-based address that identifies one web page or file
Q2
URL → Uniform Resource Locator, the address typed into the browser address bar
Q3
A URL is a unique address, so it takes you to one specific web page → https://www.bbc.co.uk/news
Q4
A URL is typed into the browser address bar to ask for a page → Address bar: https://www.school.org/maths.html
Q5
A URL is the content shown on a web page, such as its text and images → A URL is only the address of the page, not its content. The text and images are the page content.
Q6
Two different web pages can share exactly the same URL → Each URL is unique and identifies only one web page or file, so two pages cannot share one URL.
Section C: Definitions
Q1
URL — Uniform Resource Locator: a text-based address that identifies a unique web page or file, typed into the browser address bar. It is the address, not the page content.
Section D: Fill in the Blanks
Q1
// URL = Uniform Resource Locator
Q2
// URL = Uniform Resource Locator
Q3
address_bar ← "https://www.example.com"
Q4
IF url1 ≠ url2 THEN OUTPUT "Different web pages" ENDIF
Q5
url ← "www.example.com/news.html"
Section E: Spot the Error
Q1
C — The quotes make the program print the word address instead of the URL stored in the variable. It should be OUTPUT address.
Q2
B — A URL is a unique address, so two different pages must have different URLs. Giving both the same URL means they are the same page. It should be url2 ← "https://shop.com/shoes".
Q3
A — A URL is text, so it must be written as a string in quotes. It should be url ← "https://example.com".
Q4
D — The URL is the address, not the page content. The page text is stored in content, so it should be OUTPUT "Page text: " + content.
Q5
C — The two pages have different URLs because each URL is unique. Testing with = gives FALSE, so the comparison should use ≠ to give TRUE.