Ip address: 21 MCQs with answers

All 21 multiple-choice questions from this kit, free and with no sign-up.

Warm-up · 12 questions

Q1. An IPv4 address is how many bits long?

Beginner
A 128 bits B 64 bits C 16 bits D 32 bits
Show answer & explanation

32 bits

IPv4 addresses are 32 bits long, typically represented in dotted-decimal notation.

Q2. Which class of IP address has the default subnet mask 255.0.0.0?

Beginner
A Class A B Class B C Class D D Class C
Show answer & explanation

Class A

Class A addresses use the first octet for the network portion, so the default subnet mask is 255.0.0.0.

Q3. What is the broadcast address for the subnet 10.1.1.0/24?

Beginner
A 10.1.1.254 B 10.1.1.1 C 10.1.1.255 D 10.1.1.0
Show answer & explanation

10.1.1.255

For a /24 network, the broadcast address is the last address in the range, which is 10.1.1.255.

Q4. Which IP address class is used for multicast?

Beginner
A Class C B Class B C Class D D Class A
Show answer & explanation

Class D

Class D addresses (224.0.0.0 to 239.255.255.255) are reserved for multicast groups.

Q5. What is the CIDR notation for the subnet mask 255.255.255.0?

Beginner
A /32 B /8 C /16 D /24
Show answer & explanation

/24

255.255.255.0 has 24 consecutive 1s in binary, so it is written as /24.

Q6. Which of the following is a loopback address?

Beginner
A 0.0.0.0 B 127.0.0.1 C 192.0.2.1 D 255.255.255.255
Show answer & explanation

127.0.0.1

127.0.0.1 is the standard loopback address used to test network software on the local machine.

Q7. The IP address 172.16.0.1 belongs to which class?

Beginner
A Class A B Class C C Class D D Class B
Show answer & explanation

Class B

172.16.0.1 falls in the 128.0.0.0 to 191.255.255.255 range, which is Class B.

Q8. The default subnet mask for a Class C network is 255.255.255.0.

Beginner
A True B False
Show answer & explanation

True

Class C addresses have a default mask of 255.255.255.0, meaning the first three octets are the network portion.

Q9. The IP address 192.168.1.256 is a valid host address.

Beginner
A True B False
Show answer & explanation

False

Each octet in an IPv4 address ranges from 0 to 255, so 256 is invalid.

Q10. The process of dividing a network into smaller networks is called ___.

Beginner
Show answer & explanation

—

Subnetting is the technique of partitioning a larger network into smaller, more efficient sub-networks.

Q11. An IPv4 address consists of ___ octets.

Beginner
Show answer & explanation

—

IPv4 addresses are written as four decimal numbers (octets) separated by dots, each representing 8 bits.

Q12. The address that represents all hosts on a subnet is called the ___ address.

Beginner
Show answer & explanation

—

The broadcast address is the last address in a subnet, used to send data to all devices on that subnet.

Building up · 8 questions

Q13. What is the network address of the IP 192.168.5.130 with subnet mask 255.255.255.192?

Intermediate
A 192.168.5.192 B 192.168.5.128 C 192.168.5.0 D 192.168.5.130
Show answer & explanation

192.168.5.128

The mask 255.255.255.192 (/26) gives a block size of 64. 130 falls in the 128-191 range, so the network address is 192.168.5.128.

Q14. Which of the following is a valid Class B private IP address range?

Intermediate
A 192.168.0.0 – 192.168.255.255 B 169.254.0.0 – 169.254.255.255 C 172.16.0.0 – 172.31.255.255 D 10.0.0.0 – 10.255.255.255
Show answer & explanation

172.16.0.0 – 172.31.255.255

The private Class B range is 172.16.0.0 to 172.31.255.255 as defined by RFC 1918.

Q15. How many usable host addresses are in a /27 subnet?

Intermediate
A 30 B 14 C 62 D 32
Show answer & explanation

30

A /27 subnet has 5 bits for hosts, giving 2^5 = 32 addresses, minus 2 for network and broadcast = 30 usable hosts.

Q16. If you borrow 3 bits from the host portion of a Class C address, how many subnets do you create?

Intermediate
A 2 B 6 C 8 D 4
Show answer & explanation

8

Borrowing 3 bits gives 2^3 = 8 subnets (though some older standards subtract 2, modern practice uses all 8).

Q17. What is the purpose of subnetting?

Intermediate
A To encrypt data in transit B To convert IPv4 addresses to IPv6 C To increase the total number of available IP addresses globally D To divide a network into smaller, manageable segments
Show answer & explanation

To divide a network into smaller, manageable segments

Subnetting allows a network to be split into smaller sub-networks for better management, security, and efficiency.

Q18. What is the maximum number of hosts per subnet for a network with a /30 mask?

Intermediate
A 2 B 4 C 1 D 6
Show answer & explanation

2

A /30 mask leaves 2 bits for hosts, giving 2^2 = 4 addresses, minus 2 for network and broadcast = 2 usable hosts.

Q19. Subnetting always reduces the total number of usable host addresses compared to the original network.

Intermediate
A True B False
Show answer & explanation

True

Subnetting borrows host bits for network bits, which reduces the number of hosts per subnet, though total hosts across all subnets may be less due to subnet and broadcast addresses.

Q20. Classless Inter-Domain Routing (CIDR) allows variable-length subnet masks.

Intermediate
A True B False
Show answer & explanation

True

CIDR replaced classful addressing and enables the use of any prefix length, not just the fixed /8, /16, /24.

Topper level · 1 questions

Q21. The network address of a subnet is always an even number.

Advanced
A True B False
Show answer & explanation

False

Network addresses are determined by the subnet mask; for example, with a /27 mask, network addresses are multiples of 32, which are even, but with a /26 mask, they are multiples of 64 (also even). However, in general, network addresses can be odd if the block size is odd, but block sizes are powers of 2, so network add…

Make your own

Your notes can be a kit like these

Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free, in 42 languages.

  • Chapter notes
  • Flashcards
  • Practice MCQs
  • Scored tests
  • Exam prep

Get Veda free See what students get

Free to start · No ads · Works in 42 languages