Bird
Raised Fist0
Intro to Computingfundamentals~10 mins

Why understanding the web empowers users in Intro to Computing - Test Your Understanding

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to print the main part of a web address.

Intro to Computing
url = 'https://www.example.com'
main_part = url.split('[1]')[1]
print(main_part)
Drag options to blanks, or click blank then click option'
A://
B//
C.com
Dwww
Attempts:
3 left
💡 Hint
Common Mistakes
Using '//' instead of '://' causes wrong splitting.
2fill in blank
medium

Complete the code to check if a web address starts with 'https'.

Intro to Computing
url = 'https://secure.site'
if url.[1]('https'):
    print('Secure connection')
Drag options to blanks, or click blank then click option'
Acontains
Bendswith
Cstartswith
Dfind
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'contains' or 'find' does not check the start specifically.
3fill in blank
hard

Fix the error in the code that extracts the domain name from a URL.

Intro to Computing
url = 'http://openai.com'
domain = url.split('[1]')[1]
print(domain)
Drag options to blanks, or click blank then click option'
A://
Bhttp://
Cwww.
D.com
Attempts:
3 left
💡 Hint
Common Mistakes
Splitting by 'http://' causes the first part to be empty.
4fill in blank
hard

Complete the code to create a dictionary of web pages and their status codes.

Intro to Computing
pages = ['home', 'about', 'contact']
status_codes = {page: 200 for page in pages if page [1] 'home'}
Drag options to blanks, or click blank then click option'
A:
B==
C!=
D=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '=' instead of ':' in dictionary comprehension.
Using '==' instead of '!=' in the condition.
5fill in blank
hard

Fill all three blanks to filter and transform a list of URLs.

Intro to Computing
urls = ['http://site1.com', 'https://site2.com', 'ftp://site3.com']
secure_sites = [url[1] for url in urls if url.[2]('https') and url.[3]('.com')]
Drag options to blanks, or click blank then click option'
A[8:]
Bstartswith
Cendswith
D[7:]
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong slice index.
Using 'contains' instead of 'startswith' or 'endswith'.

Practice

(1/5)
1. Why is it important to understand how the web works when you use the internet?
easy
A. It lets you build your own computer hardware.
B. It allows you to avoid using any passwords.
C. It guarantees faster internet speed everywhere.
D. It helps you use the internet safely and make smart choices.

Solution

  1. Step 1: Understand the role of web knowledge

    Knowing how the web works helps users recognize risks and benefits online.
  2. Step 2: Connect knowledge to safe usage

    Using this knowledge, users can protect their data and avoid scams.
  3. Final Answer:

    It helps you use the internet safely and make smart choices. -> Option D
  4. Quick Check:

    Understanding the web = safer, smarter use [OK]
Hint: Think about safety and smart choices online [OK]
Common Mistakes:
  • Confusing web knowledge with hardware skills
  • Assuming web knowledge changes internet speed
  • Believing passwords are unnecessary
2. Which of the following is the correct way to describe how your device connects to the web?
easy
A. Your device sends a request to a server, which sends back information.
B. Your device creates information and stores it only locally.
C. Your device connects directly to other devices without servers.
D. Your device sends information only through email servers.

Solution

  1. Step 1: Identify the web connection process

    The web works by devices requesting data from servers.
  2. Step 2: Match the correct description

    Your device sends a request to a server, which sends back information correctly states the request-response model between device and server.
  3. Final Answer:

    Your device sends a request to a server, which sends back information. -> Option A
  4. Quick Check:

    Device requests data from server = Your device sends a request to a server, which sends back information. [OK]
Hint: Remember: web = request from device, response from server [OK]
Common Mistakes:
  • Thinking devices work without servers
  • Confusing local storage with web connection
  • Assuming email servers handle all web data
3. Look at this simple flowchart of a web request:



What is the correct order of steps when you click a link on a webpage?
medium
A. Server sends data -> Device sends request -> Device displays data -> Server processes request
B. Device sends request -> Server processes request -> Server sends data -> Device displays data
C. Device displays data -> Server processes request -> Device sends request -> Server sends data
D. Server processes request -> Device sends request -> Server sends data -> Device displays data

Solution

  1. Step 1: Follow the flowchart steps in order

    The flowchart shows the sequence starting with the device sending a request.
  2. Step 2: Confirm the logical order of web communication

    The server processes the request, sends data back, and the device displays it.
  3. Final Answer:

    Device sends request -> Server processes request -> Server sends data -> Device displays data -> Option B
  4. Quick Check:

    Request -> Process -> Send -> Display = Device sends request -> Server processes request -> Server sends data -> Device displays data [OK]
Hint: Trace the flow from device to server and back [OK]
Common Mistakes:
  • Mixing up the order of sending and processing
  • Thinking server sends data before request
  • Confusing display step with sending request
4. A user complains that when they click a link, the page never loads. Which of these is the most likely cause based on how the web works?
medium
A. The server processed the request twice.
B. The server sent data but the device ignored it.
C. The device never sent a request to the server.
D. The device displayed the data before sending a request.

Solution

  1. Step 1: Understand the web request process

    For a page to load, the device must send a request to the server.
  2. Step 2: Identify the cause of no page load

    If the page never loads, likely the request was never sent, so no data returned.
  3. Final Answer:

    The device never sent a request to the server. -> Option C
  4. Quick Check:

    No request = no page load [OK]
Hint: No request means no response, so no page load [OK]
Common Mistakes:
  • Assuming server sends data without request
  • Thinking device can display data before request
  • Believing server processing twice causes no load
5. Imagine you want to protect your personal information online. Which understanding about the web helps you do this best?
hard
A. Knowing that your device sends requests to servers and you control what data is sent.
B. Believing that all websites automatically protect your data without your action.
C. Thinking that using any public Wi-Fi means your data is always safe.
D. Assuming that once data is sent, you can delete it from the internet instantly.

Solution

  1. Step 1: Understand data flow on the web

    Your device sends requests and data to servers; you decide what to share.
  2. Step 2: Connect understanding to data protection

    Knowing this helps you control your information and avoid oversharing.
  3. Final Answer:

    Knowing that your device sends requests to servers and you control what data is sent. -> Option A
  4. Quick Check:

    Control over data sent = better protection [OK]
Hint: Control what your device sends to protect data [OK]
Common Mistakes:
  • Trusting all websites without caution
  • Assuming public Wi-Fi is always safe
  • Believing data can be instantly deleted online