Skip to main content

Routing and Switching MCQs with Answers

Practice important Routing and Switching MCQs with answers and explanations.

Chapter: 24
Q261:
Which value in the IPv4 header is always set to 0100 for IPv4 packets?
A. Version
B. Differentiated Services (DS)
C. Time-to-Live (TTL)
D. Protocol
Correct Answer: A
Chapter: 24
Q262:
Fill in the blank: The IPv4 header contains fields that are examined by the ________ process.
A. Layer 3
B. Layer 4
C. Layer 2
D. Layer 1
Correct Answer: A
Chapter: 24
Q263:
What is the purpose of the Protocol field in the IPv4 header?
A. To pass the data to the appropriate upper-layer protocol
B. To specify the packet version
C. To determine the TTL value
D. To identify the source IP address
Correct Answer: A
Chapter: 24
Q264:
Fill in the blank: The IPv4 header's Source IP Address field contains a ________-bit binary value.
A. 32
B. 16
C. 8
D. 64
Correct Answer: A
Chapter: 24
Q265:
Which command uses the TTL field to identify the routers between the source and destination?
A. Ping
B. Traceroute
C. IP Config
D. Netstat
Correct Answer: B
Chapter: 24
Q266:
What information does the Payload section of an IPv4 packet contain?
A. The Layer 4 segment information and actual data
B. The IP header and routing information
C. The TTL and DSCP values
D. The packet version and source address
Correct Answer: A
Chapter: 25
Q267:
What are the two parts of an IP address?
A. Network portion and Host portion
B. Source address and Destination address
C. Subnet mask and Prefix length
D. Host address and Broadcast address
Correct Answer: A
Chapter: 25
Q268:
What does a subnet mask signify in an IP address?
A. The network portion and host portion
B. The source and destination addresses
C. The broadcast address
D. The range of valid host addresses
Correct Answer: A
Chapter: 25
Q269:
Fill in the blank: The subnet mask is compared to the IP address bit by bit from ________.
A. left to right
B. right to left
C. top to bottom
D. bottom to top
Correct Answer: A
Chapter: 25
Q270:
What does the prefix length in slash notation represent?
A. The number of bits set to 1 in the subnet mask
B. The number of bits set to 0 in the subnet mask
C. The total length of the IP address
D. The total length of the subnet mask
Correct Answer: A
Chapter: 25
Q271:
Fill in the blank: If the subnet mask is 255.255.255.0, the prefix length is ________.
A. /24
B. /16
C. /8
D. /32
Correct Answer: A
Chapter: 25
Q272:
When sending data, if the network bits of the source and destination IP addresses match, where is the packet sent?
A. Locally to the destination host
B. to the default gateway
C. to the broadcast address
D. to the router
Correct Answer: B
Chapter: 25
Q273:
Fill in the blank: The IPv4 broadcast address allows communication to ________.
A. all hosts in the network
B. a single host
C. a specific network address
D. all devices on the internet
Correct Answer: A
Chapter: 25
Q274:
What is the first host address in the 10.1.1.0/24 network?
A. 10.1.1.1
B. 10.1.1.0
C. 10.1.1.254
D. 10.1.1.255
Correct Answer: A
Chapter: 25
Q275:
What address is always one greater than the network address?
A. The first host address
B. The last host address
C. The broadcast address
D. The subnet mask
Correct Answer: A
Chapter: 25
Q276:
What is the purpose of a subnet mask in relation to an IP address?
A. To determine which part is the network and which part is the host
B. To provide a unique identifier for each device
C. To establish a connection between devices
D. To specify the broadcast address
Correct Answer: A
Chapter: 25
Q277:
Fill in the blank: A device uses the subnet mask to determine what ________ it belongs to.
A. default gateway
B. network address
C. IP address
D. broadcast address
Correct Answer: B
Chapter: 25
Q278:
What is the broadcast address for the 10.1.1.0/24 network?
A. 10.1.1.255
B. 10.1.1.0
C. 10.1.1.1
D. 10.1.1.254
Correct Answer: A
Chapter: 26
Q279:
What are the three types of communication in an IPv4 network?
A. Unicast, Broadcast, Multicast
B. Unicast, Multicast, Anycast
C. Broadcast, Multicast, Anycast
D. Unicast, Anycast, Broadcast
Correct Answer: A
Chapter: 26
Q280:
What does a unicast packet do?
A. Sends data to one specific host
B. Sends data to all hosts in the network
C. Sends data to a selected group of hosts
D. Sends data to a broadcast address
Correct Answer: A

Test Your Knowledge

Take a timed quiz on Routing and Switching

🚀 Start Quiz Now