0
0
Intro to Computingfundamentals~20 mins

URLs and their structure in Intro to Computing - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
URL Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Identify the parts of a URL
Look at this URL:
https://www.example.com:8080/path/to/page?search=books#section2
Which part represents the port number?
A8080
Bsection2
C/path/to/page
Dhttps
Attempts:
2 left
💡 Hint
The port number comes after the domain and a colon (:).
trace
intermediate
1:30remaining
Trace URL components extraction
Given this URL:
http://blog.site.org/articles?id=123#comments
What is the value of the query string?
A123
Bid=123
Carticles
Dcomments
Attempts:
2 left
💡 Hint
The query string comes after the question mark (?) in a URL.
Comparison
advanced
2:00remaining
Compare URLs with and without port numbers
Which URL will connect to the default HTTP port?
Ahttp://example.com/index.html
Bhttp://example.com:443/index.html
Chttp://example.com:8080/index.html
Dhttp://example.com:80/index.html
Attempts:
2 left
💡 Hint
Default HTTP port is 80 and usually omitted in URLs.
identification
advanced
1:30remaining
Identify the fragment identifier in a URL
In the URL https://example.com/page.html#top, what does the fragment identifier represent?
AThe domain name
BThe path to the page
CThe part after the hash (#) used to jump to a section
DThe query parameters
Attempts:
2 left
💡 Hint
Fragment identifiers come after the '#' symbol.
🚀 Application
expert
2:30remaining
Determine the full URL from parts
You have these URL parts:
- Protocol: https
- Domain: www.shop.com
- Port: 443
- Path: /products
- Query: category=books&sort=price
- Fragment: reviews

Which is the correct full URL?
Ahttp://www.shop.com:443/products?category=books&sort=price#reviews
Bhttps://www.shop.com:443/products?category=books&sort=price#reviews
Chttps://www.shop.com:80/products?category=books&sort=price#reviews
Dhttps://www.shop.com/products?category=books&sort=price#reviews
Attempts:
2 left
💡 Hint
Port 443 is default for HTTPS and usually omitted.