Bird
Raised Fist0
Intro to Computingfundamentals~10 mins

Safe browsing habits in Intro to Computing - Interactive Code Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to check if a website URL starts with a secure protocol.

Intro to Computing
if url.startswith([1]):
    print("Secure connection")
Drag options to blanks, or click blank then click option'
A"https://"
B"http://"
C"ftp://"
D"file://"
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'http://' instead of 'https://'
Confusing other protocols like 'ftp://'
2fill in blank
medium

Complete the code to block access to a list of unsafe websites.

Intro to Computing
if website in [1]:
    print("Access blocked")
Drag options to blanks, or click blank then click option'
Atrusted_sites
Bsafe_sites
Cunsafe_sites
Dfavorite_sites
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'safe_sites' which is the opposite
Using unrelated lists like 'favorite_sites'
3fill in blank
hard

Fix the error in the code that warns about suspicious links.

Intro to Computing
if 'http://' [1] url:
    print("Warning: Suspicious link")
Drag options to blanks, or click blank then click option'
Ain
Bnot in
C==
D!=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '==' which checks equality
Using 'not in' which reverses the logic
4fill in blank
hard

Fill both blanks to create a dictionary of websites with their safety status.

Intro to Computing
site_status = {site: [1] for site in websites if site [2] unsafe_sites}
Drag options to blanks, or click blank then click option'
Asite.upper()
Bsite.lower()
Cin
Dnot in
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'site.upper()' which changes case incorrectly
Using 'in' which includes unsafe sites
5fill in blank
hard

Fill all three blanks to filter and map safe websites with their URL lengths.

Intro to Computing
safe_lengths = [1]: len([2]) for [3] in websites if [2] not in unsafe_sites}
Drag options to blanks, or click blank then click option'
Asite
Burl
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing variable names causing errors
Using 'url' inconsistently

Practice

(1/5)
1. Which of the following is a sign that a website is secure for browsing?
easy
A. The website URL starts with https:// and shows a padlock icon
B. The website has many colorful images
C. The website loads very quickly
D. The website has a lot of advertisements

Solution

  1. Step 1: Identify website security indicators

    Secure websites use https:// and display a padlock icon to show encrypted connection.
  2. Step 2: Compare options with security signs

    Only The website URL starts with https:// and shows a padlock icon mentions these security signs, others are unrelated to security.
  3. Final Answer:

    The website URL starts with https:// and shows a padlock icon -> Option A
  4. Quick Check:

    Secure website = https:// + padlock [OK]
Hint: Look for https and padlock to confirm security [OK]
Common Mistakes:
  • Thinking fast loading means secure
  • Assuming colorful design means safety
  • Ignoring the URL prefix
2. Which of these is the correct way to check if a link is safe before clicking?
easy
A. Click the link quickly to see where it goes
B. Hover over the link to see the full URL before clicking
C. Ignore the link if it looks colorful
D. Copy the link and paste it into a chat

Solution

  1. Step 1: Understand how to preview links safely

    Hovering over a link shows the full URL without clicking, helping to check if it looks trustworthy.
  2. Step 2: Evaluate other options

    Clicking quickly or ignoring based on color is unsafe; copying to chat doesn't verify safety.
  3. Final Answer:

    Hover over the link to see the full URL before clicking -> Option B
  4. Quick Check:

    Hover to preview link = safe check [OK]
Hint: Hover to preview link URL before clicking [OK]
Common Mistakes:
  • Clicking links without checking
  • Judging safety by colors only
  • Sharing links without verifying
3. What will happen if you connect to public Wi-Fi without using a VPN?
medium
A. Your device will automatically block all websites
B. Your device will become invisible to hackers
C. Your internet speed will be faster and safer
D. Your data might be intercepted by others on the same network

Solution

  1. Step 1: Understand risks of public Wi-Fi

    Public Wi-Fi networks are often unsecured, allowing others to intercept data if no protection like VPN is used.
  2. Step 2: Analyze each option

    Only Your data might be intercepted by others on the same network correctly describes the risk; others are false or misleading.
  3. Final Answer:

    Your data might be intercepted by others on the same network -> Option D
  4. Quick Check:

    Public Wi-Fi without VPN = data risk [OK]
Hint: Public Wi-Fi without VPN risks data interception [OK]
Common Mistakes:
  • Assuming public Wi-Fi is always safe
  • Believing device blocks all sites automatically
  • Thinking speed improves security
4. You receive an email with a link that looks suspicious. What is the best way to check it safely?
medium
A. Click the link to see if it asks for personal info
B. Forward the email to friends to ask if it is safe
C. Hover over the link to check the URL and do not click if suspicious
D. Reply to the email asking if the link is safe

Solution

  1. Step 1: Identify safe link checking method

    Hovering over the link reveals the URL without clicking, helping to spot suspicious addresses safely.
  2. Step 2: Evaluate unsafe options

    Clicking or replying risks exposure; forwarding spreads potential threats.
  3. Final Answer:

    Hover over the link to check the URL and do not click if suspicious -> Option C
  4. Quick Check:

    Hover to check suspicious links safely [OK]
Hint: Hover, don't click suspicious email links [OK]
Common Mistakes:
  • Clicking suspicious links
  • Sharing suspicious emails
  • Replying to unknown senders
5. You want to download a free app from a website. Which combination of safe browsing habits should you follow?
hard
A. Check the website uses https, read reviews, and avoid downloading from unknown sites
B. Download quickly before the offer expires, ignore reviews, and share the link with friends
C. Use public Wi-Fi to download faster and click all pop-ups to get the app
D. Disable antivirus temporarily and download from any website

Solution

  1. Step 1: Identify safe website and download practices

    Checking for https ensures secure connection; reading reviews helps verify app safety; avoiding unknown sites reduces risk.
  2. Step 2: Analyze unsafe habits

    Options A, B, and C include risky actions like disabling antivirus, ignoring reviews, or using public Wi-Fi without protection.
  3. Final Answer:

    Check the website uses https, read reviews, and avoid downloading from unknown sites -> Option A
  4. Quick Check:

    Secure site + reviews + trusted source = safe download [OK]
Hint: Use https, reviews, and trusted sites for downloads [OK]
Common Mistakes:
  • Ignoring website security
  • Downloading from unknown sources
  • Disabling antivirus protection
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard