IP Addressing & Subnetting MCQs with Answers
What is the purpose of subnetting in IP addressing?
a) To increase the number of available IP addresses
b) To divide a larger network into smaller, manageable segments
c) To assign multiple IP addresses to a single device
d) To secure the network from external attacks
Which of the following is an example of a private IP address?
a) 192.168.1.1
b) 8.8.8.8
c) 255.255.255.255
d) 172.16.255.255
What does the subnet mask 255.255.255.0 indicate?
a) All IP addresses in the network range are valid
b) It divides the network into 256 subnets
c) The first 24 bits are the network part, and the last 8 bits are for hosts
d) It is used to assign dynamic IP addresses
Which of the following IP address classes is used for large-scale networks?
a) Class A
b) Class B
c) Class C
d) Class D
What is the range of IP addresses for Class C networks?
a) 1.0.0.0 to 126.255.255.255
b) 128.0.0.0 to 191.255.255.255
c) 192.0.0.0 to 223.255.255.255
d) 224.0.0.0 to 239.255.255.255
How many host IP addresses can be assigned in a subnet with a 255.255.255.192 subnet mask?
a) 32
b) 62
c) 128
d) 254
What is the network address for the IP address 192.168.1.55 with a subnet mask of 255.255.255.0?
a) 192.168.1.0
b) 192.168.1.255
c) 192.168.0.0
d) 192.168.1.55
What is the broadcast address for the IP address 192.168.2.25 with a subnet mask of 255.255.255.0?
a) 192.168.2.255
b) 192.168.2.0
c) 192.168.2.128
d) 192.168.3.0
Which IP address class provides the most host addresses?
a) Class A
b) Class B
c) Class C
d) Class D
How many total IP addresses are available in a network with a subnet mask of 255.255.255.248?
a) 6
b) 8
c) 16
d) 32
What is the default subnet mask for a Class B IP address?
a) 255.255.255.0
b) 255.255.0.0
c) 255.255.255.128
d) 255.0.0.0
What is the first address in a subnet?
a) Network address
b) Broadcast address
c) Gateway address
d) Host address
Which IP address is reserved for loopback testing?
a) 0.0.0.0
b) 127.0.0.1
c) 192.168.1.1
d) 255.255.255.255
How many bits are used for the network portion of an IP address in a Class A network?
a) 8
b) 16
c) 24
d) 32
What is the total number of subnets in a network with a subnet mask of 255.255.255.224?
a) 4
b) 8
c) 16
d) 32
Which of the following IP addresses is a valid Class B address?
a) 10.0.0.0
b) 172.16.0.0
c) 192.168.1.0
d) 224.0.0.0
What is the main benefit of using subnetting?
a) It allows for more efficient IP address usage
b) It improves the speed of communication between devices
c) It ensures better security for devices
d) It helps in reducing the size of the network infrastructure
How many host addresses can be assigned in a network with a subnet mask of 255.255.255.252?
a) 2
b) 4
c) 8
d) 16
What is the valid range of private IP addresses in Class A?
a) 10.0.0.0 to 10.255.255.255
b) 172.16.0.0 to 172.31.255.255
c) 192.168.0.0 to 192.168.255.255
d) 128.0.0.0 to 128.255.255.255
Which of the following is the correct broadcast address for a subnet with IP address 192.168.5.100 and a subnet mask of 255.255.255.240?
a) 192.168.5.111
b) 192.168.5.120
c) 192.168.5.115
d) 192.168.5.255
How many bits are in an IPv6 address?
a) 32
b) 64
c) 128
d) 256
Which of the following subnet masks corresponds to the CIDR notation of /24?
a) 255.255.255.0
b) 255.255.0.0
c) 255.255.255.128
d) 255.255.255.192
What is the maximum number of subnets you can have in a Class C network with a subnet mask of 255.255.255.240?
a) 4
b) 8
c) 16
d) 32
Which of the following is a valid IPv6 address?
a) 192.168.1.1
b) 2001:0db8:85a3:0000:0000:8a2e:0370:7334
c) 255.255.255.255
d) 10.0.0.1
What is the valid range of IP addresses for a network with a subnet mask of 255.255.255.248 and IP address 192.168.1.8?
a) 192.168.1.9 to 192.168.1.14
b) 192.168.1.0 to 192.168.1.7
c) 192.168.1.8 to 192.168.1.15
d) 192.168.1.1 to 192.168.1.6
What is the first available IP address in the subnet 192.168.10.0/28?
a) 192.168.10.1
b) 192.168.10.0
c) 192.168.10.15
d) 192.168.10.16
Which subnet mask corresponds to the CIDR notation of /22?
a) 255.255.255.0
b) 255.255.255.192
c) 255.255.252.0
d) 255.255.255.240
How many total IP addresses are there in a subnet with a /29 prefix?
a) 8
b) 16
c) 32
d) 64
What is the purpose of the loopback address in IP addressing?
a) To test the local network interface of a device
b) To allow remote access to devices
c) To identify the network gateway
d) To communicate between different networks
Which of the following is a valid Class B address?
a) 120.0.0.0
b) 150.10.0.0
c) 200.100.0.0
d) 225.0.0.0
What does the CIDR notation /32 represent in IPv4 addressing?
a) A single IP address
b) A subnet with 32 hosts
c) A range of IP addresses
d) The network portion of the address