Choosing static or dynamic IP for a device

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

Choosing static or dynamic IP for a device

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. A company runs a web server that customers must always be able to find. Which type of IP address should it use?
A Dynamic IP address
B Static IP address
2. A school has a network printer that all staff computers send print jobs to. Which IP address type suits it best?
A Static, because the printer must always be found at the same address
B Dynamic, because the printer should get a new address every day
3. A family connects their phones and laptops to the home Wi-Fi. Which IP address type is the usual choice?
A Dynamic IP address
B Static IP address
4. Which reason best justifies using dynamic IP addresses for home laptops and phones?
A Dynamic is better because the address never changes
B Dynamic needs less set-up work because the router assigns the address automatically
5. Which exam answer earns the mark for the choice of IP address for a web server?
A Static, because other devices must always be able to find it
B Static

Match the Pairs

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

Left columnRight column
1web_server.ip = STATIC Aprinter.ip = STATIC
2phone.ip = DYNAMIC BThe web server keeps one fixed IP address so other devices can always find it.
3A network printer should use a static IP so that laptops can always find it to print. Claptop.ip = DYNAMIC
4A home laptop should use a dynamic IP because it needs less set-up work. DA web server needs to be found at the same address every time. A dynamic IP can change, so users might not find it. It should be STATIC.
5web_server.ip = DYNAMIC EThe phone is given an IP address automatically by the network, so no manual set-up is needed.
6phone.ip = STATIC # every phone FSetting a static IP on every phone means lots of manual set-up. Dynamic is better for phones because it needs less set-up work.

Definitions

static or dynamic IP

Fill in the Blanks

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

1.
device ← "web server" ipType ← "______"
2.
device ← "laptop" ipType ← "_______"
3.
IF device = "printer" ____ ipType ← "static" ENDIF
4.
IF device _ "phone" THEN ipType ← "dynamic" ENDIF
5.
OUTPUT "Use dynamic _______ it needs less set-up"

Spot the Error

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

Question 1
A device ← "web server"
B mustBeFound ← TRUE
C ipType ← "dynamic"
D OUTPUT device, ipType
Question 2
A device ← "laptop"
B ipType ← "static"
C OUTPUT "Less set-up work"
Question 3
A device ← "printer"
B IF device = "printer" THEN
C OUTPUT "Others must find it"
D ipType ← "dynamic"
E ENDIF
Question 4
A IF device = "web server" THEN
B ipType ← "dynamic"
C ENDIF
Question 5
A device ← web server
B IF device = "web server" THEN
C ipType ← "static"
D ENDIF

Answer Key

Choosing static or dynamic IP for a device
Section A: Quick Questions
Q1
B — Static IP address
Q2
A — Static, because the printer must always be found at the same address
Q3
A — Dynamic IP address
Q4
B — Dynamic needs less set-up work because the router assigns the address automatically
Q5
A — Static, because other devices must always be able to find it
Section B: Match the Pairs
Q1
web_server.ip = STATIC → The web server keeps one fixed IP address so other devices can always find it.
Q2
phone.ip = DYNAMIC → The phone is given an IP address automatically by the network, so no manual set-up is needed.
Q3
A network printer should use a static IP so that laptops can always find it to print. → printer.ip = STATIC
Q4
A home laptop should use a dynamic IP because it needs less set-up work. → laptop.ip = DYNAMIC
Q5
web_server.ip = DYNAMIC → A web server needs to be found at the same address every time. A dynamic IP can change, so users might not find it. It should be STATIC.
Q6
phone.ip = STATIC # every phone → Setting a static IP on every phone means lots of manual set-up. Dynamic is better for phones because it needs less set-up work.
Section C: Definitions
Q1
static or dynamic IP — Use static for devices others must always find, like web servers and printers; use dynamic for phones and laptops because it needs less set-up work.
Section D: Fill in the Blanks
Q1
device ← "web server" ipType ← "static"
Q2
device ← "laptop" ipType ← "dynamic"
Q3
IF device = "printer" THEN ipType ← "static" ENDIF
Q4
IF device = "phone" THEN ipType ← "dynamic" ENDIF
Q5
OUTPUT "Use dynamic because it needs less set-up"
Section E: Spot the Error
Q1
C — A web server must always be found at the same address, so it needs a static IP address. Line 3 should be ipType ← "static".
Q2
B — A home laptop is an ordinary device, so dynamic is best because it needs less set-up work. Line 2 should be ipType ← "dynamic".
Q3
D — A printer is shared, so others must always find it at the same address. It needs a static IP, not dynamic. Line 4 should be ipType ← "static".
Q4
A — The program gives a dynamic IP address, which suits ordinary devices like phones. A web server needs a static address, so line 1 should test for "phone".
Q5
A — The text "web server" is a string, so it must be written in quotation marks. Line 1 should be device ← "web server".