IP Addressing Fundamentals MCQ Test: IPv4, IPv6 and Subnetting

Master the fundamentals of IP addressing with this comprehensive MCQ test. Explore IPv4, IPv6 and subnetting concepts to enhance your networking knowledge. Perfect for IT learners and professionals preparing for exams!

Questions (30)


  1. What is the bit length of an IPv4 address?

    • a) 16 bits
    • b) 32 bits
    • c) 64 bits
    • d) 128 bits
    View Answer
    Correct 32 bits
  2. Which class of IPv4 addresses is used for multicast communication?

    • a) Class A
    • b) Class B
    • c) Class D
    • d) Class E
    View Answer
    Correct Class D
  3. What is the range of the first octet for Class C IPv4 addresses?

    • a) 1-126
    • b) 128-191
    • c) 192-223
    • d) 224-239
    View Answer
    Correct 192-223
  4. What is the default subnet mask for a Class B IPv4 address?

    • a) 255.0.0.0
    • b) 255.255.0.0
    • c) 255.255.255.0
    • d) 255.255.255.255
    View Answer
    Correct 255.255.0.0
  5. Which IPv6 address type is used for communication within a single node?

    • a) Global unicast
    • b) Link-local
    • c) Loopback
    • d) Multicast
    View Answer
    Correct Loopback
  6. What does CIDR stand for in IP addressing?

    • a) Classless Inter-Domain Routing
    • b) Communication Inter-Domain Routing
    • c) Clustered IP Distribution Range
    • d) Classful Internet Design Rules
    View Answer
    Correct Classless Inter-Domain Routing
  7. How many bits are there in an IPv6 address?

    • a) 32 bits
    • b) 64 bits
    • c) 96 bits
    • d) 128 bits
    View Answer
    Correct 128 bits
  8. The subnet mask 255.255.255.0 is equivalent to which CIDR notation?

    • a) /8
    • b) /16
    • c) /24
    • d) /32
    View Answer
    Correct /24
  9. What is the primary purpose of subnetting?

    • a) Increase network speed
    • b) Conserve IP addresses
    • c) Simplify routing tables
    • d) Ensure data integrity
    View Answer
    Correct Conserve IP addresses
  10. Which of the following is not a valid IPv4 address?

    • a) 192.168.0.1
    • b) 10.0.0.256
    • c) 172.16.254.1
    • d) 127.0.0.1
    View Answer
    Correct 10.0.0.256
  11. The first 64 bits of an IPv6 address typically represent the:

    • a) Host ID
    • b) Network prefix
    • c) Subnet ID
    • d) Multicast group
    View Answer
    Correct Network prefix
  12. Which protocol is used to assign IP addresses dynamically?

    • a) ARP
    • b) ICMP
    • c) DHCP
    • d) DNS
    View Answer
    Correct DHCP
  13. What type of IPv6 address is FE80::/10?

    • a) Global unicast
    • b) Link-local
    • c) Multicast
    • d) Anycast
    View Answer
    Correct Link-local
  14. The address 127.0.0.1 is used for:

    • a) Broadcasting
    • b) Multicasting
    • c) Loopback testing
    • d) Assigning IPs dynamically
    View Answer
    Correct Loopback testing
  15. Which IPv4 address is reserved for local host communication?

    • a) 255.255.255.255
    • b) 127.0.0.1
    • c) 192.168.1.1
    • d) 0.0.0.0
    View Answer
    Correct 127.0.0.1
  16. What is the main difference between IPv4 and IPv6?

    • a) IPv6 has a smaller address space
    • b) IPv6 includes security features by default
    • c) IPv4 supports only private addressing
    • d) IPv6 is connection-oriented
    View Answer
    Correct IPv6 includes security features by default
  17. Which type of address is automatically assigned to a device in the absence of DHCP in IPv4?

    • a) Broadcast address
    • b) Multicast address
    • c) APIPA address
    • d) Loopback address
    View Answer
    Correct APIPA address
  18. How many subnets can be created with a /26 subnet mask?

    • a) 2
    • b) 4
    • c) 8
    • d) 64
    View Answer
    Correct 8
  19. What is the hexadecimal equivalent of the IPv4 address 192.168.1.1?

    • a) C0.A8.01.01
    • b) C0:A8:1:1
    • c) 192.168.1.1
    • d) C.A:1:1
    View Answer
    Correct C0.A8.01.01
  20. What does the term "broadcast address" mean in IPv4?

    • a) The address used to send data to all devices on a network
    • b) The default gateway address
    • c) The first address in a subnet
    • d) An address used for multicast communication
    View Answer
    Correct The address used to send data to all devices on a network
  21. Which address type in IPv6 starts with "FF"?

    • a) Unicast
    • b) Multicast
    • c) Link-local
    • d) Anycast
    View Answer
    Correct Multicast
  22. What is the valid range for IPv4 private addresses in Class A?

    • a) 1.0.0.0 - 127.255.255.255
    • b) 10.0.0.0 - 10.255.255.255
    • c) 192.168.0.0 - 192.168.255.255
    • d) 172.16.0.0 - 172.31.255.255
    View Answer
    Correct 10.0.0.0 - 10.255.255.255
  23. What is the main purpose of NAT (Network Address Translation)?

    • a) Encrypt communication
    • b) Translate private IP addresses to public IP addresses
    • c) Assign IP addresses dynamically
    • d) Create subnets within a network
    View Answer
    Correct Translate private IP addresses to public IP addresses
  24. The IPv6 address ::1 is equivalent to which IPv4 address?

    • a) 192.168.1.1
    • b) 127.0.0.1
    • c) 0.0.0.0
    • d) 255.255.255.255
    View Answer
    Correct 127.0.0.1
  25. How many addresses are available in a /29 subnet?

    • a) 4
    • b) 6
    • c) 8
    • d) 16
    View Answer
    Correct 8
  26. Which of the following is an example of a global unicast IPv6 address?

    • a) FE80::1
    • b) FF02::1
    • c) 2001:0db8::1
    • d) ::1
    View Answer
    Correct 2001:0db8::1
  27. Which class of IPv4 addresses has the most hosts per network?

    • a) Class A
    • b) Class B
    • c) Class C
    • d) Class D
    View Answer
    Correct Class A
  28. What is the primary benefit of IPv6 over IPv4?

    • a) Enhanced security
    • b) Increased address space
    • c) Better compatibility with older devices
    • d) Simplified routing protocols
    View Answer
    Correct Increased address space
  29. How many hexadecimal blocks are present in an IPv6 address?

    • a) 4
    • b) 6
    • c) 8
    • d) 16
    View Answer
    Correct 8
  30. The subnet mask 255.255.255.128 corresponds to which CIDR prefix?

    • a) /24
    • b) /25
    • c) /26
    • d) /27
    View Answer
    Correct /25

Ready to put your knowledge to the test?

Start Exam