Question 1
EasyHow long is an IPv4 address?
- A.
64 bits
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Computer Networks
How long is an IPv4 address?
64 bits
128 bits
32 bits
48 bits
Answer: C
IPv4 addresses are 32 bits, written as four decimal octets such as 192.168.1.10.
How long is an IPv6 address?
128 bits
64 bits
32 bits
256 bits
Answer: A
IPv6 uses 128-bit addresses, written in hexadecimal groups such as 2001:db8::1.
Which of these is a private IPv4 address?
142.250.1.1
1.1.1.1
8.8.8.8
192.168.1.5
Answer: D
Private ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16; they aren't routed on the public Internet.
What is the default subnet mask of a Class C network?
255.0.0.0
255.255.255.255
255.255.0.0
255.255.255.0
Answer: D
Class C uses 24 network bits (/24), leaving 8 bits for hosts.
What is 127.0.0.1 used for?
The loopback address, meaning this same computer
A broadcast address
A public DNS server
The default gateway
Answer: A
Traffic to 127.0.0.1 never leaves the machine; it is used to test the local network stack.
Which protocol automatically assigns IP addresses to devices on a network?
DHCP
ARP
FTP
DNS
Answer: A
The Dynamic Host Configuration Protocol leases an IP address, mask, gateway and DNS servers to clients.
What does NAT do?
Assigns MAC addresses
Resolves domain names
Encrypts IP packets
Translates private IP addresses to a public one at the network edge
Answer: D
Network Address Translation lets many devices share one public IPv4 address.
How many bits are there in each of the four parts (octets) of an IPv4 address?
4
16
32
8
Answer: D
4 octets × 8 bits = 32 bits.
What range of values can one octet of an IPv4 address take?
0 to 255
0 to 99
1 to 256
0 to 1023
Answer: A
8 bits can represent 2⁸ = 256 values, from 0 to 255.
Which class of IPv4 address has the default subnet mask 255.0.0.0?
Class B
Class C
Class D
Class A
Answer: D
Class A uses the first octet for the network and the other three for hosts.