How many bits make up an IPv4 address?
Show answer & solution
Answer: (A) 32
IPv4 addresses are written as four decimal octets.
Electrical Engineering · Computer Networks
27 questions, each with the answer and a worked solution.
Practice interactively and track your score →How many bits make up an IPv4 address?
Answer: (A) 32
IPv4 addresses are written as four decimal octets.
How many bits make up an IPv6 address?
Answer: (D) 128
IPv6 provides a vastly larger address space.
How many bits make up a MAC address?
Answer: (B) 48
MAC addresses are written as six hexadecimal pairs.
What is the default subnet mask of a Class C IPv4 address?
Answer: (C) 255.255.255.0
It is written /24 in CIDR notation.
What is the range of the first octet for Class A IPv4 addresses?
Answer: (A) 1 to 126
127 is reserved for loopback.
What is the range of the first octet for Class B IPv4 addresses?
Answer: (B) 128 to 191
The default mask is 255.255.0.0.
How many usable host addresses are there in a /24 subnet?
Answer: (B) 254
Network and broadcast addresses are excluded.
How many usable host addresses are there in a /26 subnet?
Answer: (B) 62
2⁶ − 2 = 62.
Which of these is a private IPv4 address range?
Answer: (C) 192.168.0.0 to 192.168.255.255
Other private ranges are 10.0.0.0/8 and 172.16.0.0/12.
What is the loopback address used to test the local TCP/IP stack?
Answer: (B) 127.0.0.1
Pinging it checks the computer's own network software.
Which protocol automatically assigns Internet Protocol addresses to devices within a network?
Answer: (D) DHCP
It also supplies the subnet mask, gateway and DNS server.
Which protocol translates domain names such as www.example.com into IP addresses?
Answer: (C) DNS
DNS uses port 53.
Which protocol finds the MAC address corresponding to a known IP address on a local network?
Answer: (D) ARP
ARP requests are broadcast on the LAN.
What does NAT do?
Answer: (A) Translates private IP addresses to public addresses for Internet access
NAT lets many devices share one public IP.
What is the purpose of a subnet mask?
Answer: (D) To identify which part of an IP address is the network and which is the host
Bits set to 1 mark the network portion.
What is the default gateway of a host?
Answer: (A) The router address used to send traffic to other networks
Without it, a host can reach only its local subnet.
What is the broadcast address of the network 192.168.1.0/24?
Answer: (C) 192.168.1.255
Packets sent here reach all hosts on the subnet.
How is an IPv6 address written?
Answer: (D) Eight groups of four hexadecimal digits separated by colons
Leading zeros and zero groups can be shortened.
What does CIDR notation /20 indicate?
Answer: (A) The first 20 bits of the address form the network prefix
CIDR replaces fixed class boundaries.
What address does a Windows computer assign itself when no DHCP server is available?
Answer: (C) An APIPA address in the 169.254.x.x range
APIPA allows only local communication.
How many usable host addresses are there in a /30 subnet?
Answer: (B) 2
/30 subnets are used for point-to-point router links.
What is the subnet mask for /16?
Answer: (B) 255.255.0.0
Sixteen bits set to 1.
What is a public IP address?
Answer: (D) An address that is unique and routable on the Internet
ISPs assign public addresses.
How many usable host addresses are there in a /28 subnet?
Answer: (B) 14
2⁴ − 2 = 14.
What is the network address of host 192.168.10.70 with mask 255.255.255.192?
Answer: (C) 192.168.10.64
The /26 blocks start at 0, 64, 128 and 192.
What is the main reason IPv6 was developed?
Answer: (D) The exhaustion of available IPv4 addresses
IPv6 also simplifies headers and auto-configuration.
What is a static IP address?
Answer: (A) An IP address manually configured that does not change
Servers and printers often use static addresses.