MCQ On IPV4
Q1. What is the size of an IPv4 address?.
- 16 bits
- 32 bits
- 48 bits
- 64 bits
Answer: b, 32 bits
Solution: IPv4 uses a 32-bit address space.
Q2. The loopback IP address used for testing is:.
- 127.0.0.0
- 127.0.0.1
- 127.255.255.255
- 255.255.255.0
Answer: b, 127.0.0.1
Solution: 127.0.0.1 is the standard loopback address for localhost testing.
Q3. Which protocol is used to map IP address to MAC address?.
- ICMP
- ARP
- RARP
- DHCP
Answer: b, ARP
Solution: ARP resolves IP addresses to corresponding MAC addresses.
Q4. The IPv4 address space provides how many total addresses?.
- 2^32
- 2^64
- 4 million
- 1 billion
Answer: a, 2^32
Solution: IPv4 uses 32 bits, giving 2^32 (~4.29 billion) possible addresses.
Q5. Which address is used when a packet must be delivered to all hosts on a LAN?.
- Unicast
- Broadcast
- Multicast
- Anycast
Answer: b, Broadcast
Solution: Broadcast delivers packets to all hosts in the network.
Q6. Which of the following field in IPv4 datagram is not related to fragmentation?.
- Flags
- Offset
- TOS
- Identifier
Answer: c, TOS
Solution: TOS (Type of Service) is about QoS, not fragmentation.