Vaidikalaya

MCQ On classful-ip-addressing


Q1. Which of the following is NOT a class of IPv4 address?.
  1. Class D
  2. Class E
  3. Class F
  4. Class C

Answer: c, Class F

Solution: IPv4 has classes A–E; Class F does not exist.

Q2. What is the first octet range of Class A IP addresses?.
  1. 0–127
  2. 128–191
  3. 192–223
  4. 224–239

Answer: a, 0–127

Solution: Class A ranges from 0 to 127.

Q3. The maximum number of networks in Class B?.
  1. 16,384
  2. 65,534
  3. 24
  4. 2,097,152

Answer: a, 16,384

Solution: Class B has 14 bits for networks ? 2^14 = 16,384.

Q4. Which IPv4 class is used for multicast?.
  1. A
  2. B
  3. C
  4. D

Answer: d, D

Solution: Class D (224–239) is reserved for multicast.

Q5. What is the default subnet mask of a Class B network?.
  1. 255.0.0.0
  2. 255.255.0.0
  3. 255.255.255.0
  4. 255.255.255.252

Answer: b, 255.255.0.0

Solution: Class B uses first two octets for network.

Q6. What is the default subnet mask for Class C?.
  1. 255.0.0.0
  2. 255.255.0.0
  3. 255.255.255.0
  4. 255.255.255.255

Answer: c, 255.255.255.0

Solution: Class C uses first three octets for network.

Q7. Class C network supports how many hosts per network?.
  1. 128
  2. 254
  3. 65,534
  4. 16,777,214

Answer: b, 254

Solution: Class C has /24 ? 2^8 - 2 = 254 hosts.

Q8. IP address 150.10.20.1 belongs to which class?.
  1. Class A
  2. Class B
  3. Class C
  4. Class D

Answer: b, Class B

Solution: 150.x.x.x lies in 128–191 ? Class B.

Q9. What is the purpose of Class E IP addresses?.
  1. Private network
  2. Multicast
  3. Experimental use
  4. Loopback

Answer: c, Experimental use

Solution: Class E (240–255) is used for research and experimental purposes.

Q10. How many networks are possible in Class A?.
  1. 128
  2. 16,384
  3. 2,097,152
  4. 16,777,216

Answer: a, 128

Solution: Class A has 7 bits for networks ? 2^7 = 128.

Q11. In Classful addressing, private IP range for Class A is:.
  1. 10.0.0.0 – 10.255.255.255
  2. 172.16.0.0 – 172.31.255.255
  3. 192.168.0.0 – 192.168.255.255
  4. 169.254.0.0 – 169.254.255.255

Answer: a, 10.0.0.0 – 10.255.255.255

Solution: Class A private range is 10.0.0.0/8.

Q12. Which of the following IP belongs to Class C?.
  1. 10.0.0.1
  2. 175.12.1.1
  3. 205.16.32.1
  4. 130.4.5.6

Answer: c, 205.16.32.1

Solution: 205.x.x.x lies in 192–223 ? Class C.

Q13. Which class uses the first four bits as 1110?.
  1. Class A
  2. Class B
  3. Class C
  4. Class D

Answer: d, Class D

Solution: Class D binary prefix is 1110.