Bird
Raised Fist0
Intro to Computingfundamentals~10 mins

Wi-Fi and network connections in Intro to Computing - Interactive Code Practice

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 connect to a Wi-Fi network by specifying the network name.

Intro to Computing
connect_to_wifi(network_name=[1])
Drag options to blanks, or click blank then click option'
A192.168.1.1
Bpassword123
C"HomeNetwork"
Dethernet
Attempts:
3 left
💡 Hint
Common Mistakes
Using the password instead of the network name.
Using an IP address instead of the network name.
2fill in blank
medium

Complete the code to check if the device is connected to Wi-Fi.

Intro to Computing
if connection_status == [1]:
    print("Connected to Wi-Fi")
Drag options to blanks, or click blank then click option'
ATrue
B"connected"
C"disconnected"
DFalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using boolean True instead of the string "connected".
Using "disconnected" which means no connection.
3fill in blank
hard

Fix the error in the code to get the IP address assigned by the Wi-Fi router.

Intro to Computing
ip_address = get_ip_address([1])
Drag options to blanks, or click blank then click option'
A"WiFi"
Bwifi
CWiFi
D"wifi"
Attempts:
3 left
💡 Hint
Common Mistakes
Passing wifi without quotes causes a NameError.
Using capitalized WiFi without quotes is incorrect.
4fill in blank
hard

Fill both blanks to create a dictionary of Wi-Fi networks with their signal strengths greater than 50.

Intro to Computing
strong_networks = {network: [1] for network, strength in networks.items() if strength [2] 50}
Drag options to blanks, or click blank then click option'
Astrength
B>
C<
Dnetwork
Attempts:
3 left
💡 Hint
Common Mistakes
Using network as value instead of strength.
Using less than symbol which filters weak signals.
5fill in blank
hard

Fill all three blanks to create a dictionary of Wi-Fi networks with names in uppercase and signal strength above 70.

Intro to Computing
filtered_networks = [1]: [2] for [3], strength in networks.items() if strength > 70}
Drag options to blanks, or click blank then click option'
Anetwork.upper()
Bstrength
Cnetwork
Dnet
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'net' instead of 'network' as loop variable.
Not converting network names to uppercase.

Practice

(1/5)
1. What does Wi-Fi allow devices to do?
easy
A. Connect wirelessly using radio waves
B. Connect only with cables
C. Store data permanently
D. Charge devices without wires

Solution

  1. Step 1: Understand Wi-Fi function

    Wi-Fi uses radio waves to connect devices without cables.
  2. Step 2: Compare options

    Only Connect wirelessly using radio waves describes wireless connection using radio waves.
  3. Final Answer:

    Connect wirelessly using radio waves -> Option A
  4. Quick Check:

    Wi-Fi = Wireless connection [OK]
Hint: Wi-Fi means wireless connection using radio waves [OK]
Common Mistakes:
  • Confusing Wi-Fi with wired connections
  • Thinking Wi-Fi stores data
  • Mixing Wi-Fi with wireless charging
2. Which of these is the correct step to connect to a Wi-Fi network?
easy
A. Select the network and enter the password
B. Plug in an Ethernet cable
C. Turn off the device
D. Restart the router only

Solution

  1. Step 1: Identify connection steps

    Connecting to Wi-Fi requires selecting the network and entering a password.
  2. Step 2: Eliminate incorrect options

    Options B, C, and D do not describe connecting wirelessly.
  3. Final Answer:

    Select the network and enter the password -> Option A
  4. Quick Check:

    Connect Wi-Fi = Select network + password [OK]
Hint: Connecting Wi-Fi needs network selection and password [OK]
Common Mistakes:
  • Confusing wired connection steps with Wi-Fi
  • Skipping password entry
  • Thinking restarting router connects device automatically
3. Look at this flowchart for connecting to Wi-Fi:

What is the correct next step after scanning networks?
medium
A. Enter password
B. Select network
C. Turn off Wi-Fi
D. Restart device

Solution

  1. Step 1: Analyze flowchart steps

    After scanning networks, the next step is to select the desired network.
  2. Step 2: Confirm correct sequence

    Entering password comes after selecting the network, so Select network is correct.
  3. Final Answer:

    Select network -> Option B
  4. Quick Check:

    Scan networks -> Select network [OK]
Hint: Select network immediately after scanning available Wi-Fi [OK]
Common Mistakes:
  • Entering password before selecting network
  • Turning off Wi-Fi mid-process
  • Restarting device unnecessarily
4. A user tries to connect to Wi-Fi but keeps getting an error. The steps they followed are:
  1. Turn on Wi-Fi
  2. Select network
  3. Skip entering password
  4. Try to connect

What is the main mistake?
medium
A. Selecting wrong network
B. Not turning on Wi-Fi
C. Skipping password entry
D. Restarting device too soon

Solution

  1. Step 1: Review connection steps

    Entering the correct password is required to connect securely to Wi-Fi.
  2. Step 2: Identify error in steps

    User skipped password entry, causing connection failure.
  3. Final Answer:

    Skipping password entry -> Option C
  4. Quick Check:

    Password needed to connect Wi-Fi [OK]
Hint: Always enter password after selecting Wi-Fi network [OK]
Common Mistakes:
  • Thinking password is optional
  • Assuming turning on Wi-Fi is enough
  • Restarting device without fixing password
5. You want to set up a secure Wi-Fi network at home. Which combination of actions will best protect your network?
hard
A. Use default router settings without changes
B. Use no password, share network openly, and disable encryption
C. Use a simple password, enable WEP encryption, and broadcast SSID
D. Use a strong password, enable WPA3 encryption, and hide the network SSID

Solution

  1. Step 1: Identify secure Wi-Fi practices

    Strong password, WPA3 encryption, and hiding SSID improve security.
  2. Step 2: Compare options for security

    Options A, B, and C have weak or no security measures.
  3. Final Answer:

    Use a strong password, enable WPA3 encryption, and hide the network SSID -> Option D
  4. Quick Check:

    Strong password + WPA3 + hidden SSID = Secure Wi-Fi [OK]
Hint: Strong password + WPA3 + hide SSID = best Wi-Fi security [OK]
Common Mistakes:
  • Using outdated WEP encryption
  • Leaving network open without password
  • Relying on default router settings