Skip to main content

Routing and Switching MCQs with Answers

Practice important Routing and Switching MCQs with answers and explanations.

Chapter: 82
Q921:
Which command is used to configure OSPF on a router?
A. router ospf process-id
B. router ospf
C. ospf config
D. config ospf
Correct Answer: A
Chapter: 82
Q922:
Fill in the blank: The command __________ is used to advertise networks in OSPF.
A. network
B. advertise
C. ip ospf
D. router ospf
Correct Answer: A
Chapter: 82
Q923:
What does the SPF algorithm use to determine the total cost of a route?
A. Accumulated costs along each path
B. Fixed cost for each hop
C. Randomly assigned costs
D. Pre-configured costs
Correct Answer: A
Chapter: 82
Q924:
Fill in the blank: The basic functionality of link-state routing protocols can be configured using the __________ command.
A. router ospf
B. network
C. ospf-config
D. router-config
Correct Answer: A
Chapter: 82
Q925:
Which routing protocol uses the Dijkstra SPF algorithm?
A. OSPF
B. RIP
C. EIGRP
D. BGP
Correct Answer: A
Chapter: 82
Q926:
Fill in the blank: In link-state routing, each router calculates the SPF algorithm from its __________.
A. Own perspective
B. Neighbor's perspective
C. Central server's perspective
D. All routers' perspective
Correct Answer: A
Chapter: 82
Q927:
What type of algorithm is the SPF algorithm classified as?
A. Shortest path algorithm
B. Routing table algorithm
C. Distance vector algorithm
D. Broadcast algorithm
Correct Answer: A
Chapter: 82
Q928:
Fill in the blank: Link-state routing protocols are more __________ compared to distance vector protocols.
A. Complex
B. Simple
C. Efficient
D. Redundant
Correct Answer: A
Chapter: 82
Q929:
Which of the following is NOT a step in OSPF configuration?
A. Configuring static routes
B. Using the network command
C. Defining router IDs
D. Enabling OSPF process
Correct Answer: A
Chapter: 83
Q930:
What is the first step in the link-state routing process?
A. Learning about directly connected networks
B. Exchanging Hello packets
C. Building a Link-State Packet (LSP)
D. Flooding the LSP to all neighbors
Correct Answer: A
Chapter: 83
Q931:
Fill in the blank: In link-state routing, each router builds a __________ containing the state of each directly connected link.
A. Link-State Packet (LSP)
B. Routing Table
C. Hello Packet
D. Topology Map
Correct Answer: A
Chapter: 83
Q932:
What is the purpose of the SPF algorithm in link-state routing?
A. To construct a complete map of the topology
B. To send Hello packets to neighbors
C. To configure static routes
D. To exchange LSPs with neighbors
Correct Answer: A
Chapter: 83
Q933:
Fill in the blank: Each router uses the __________ to compute the best path to each destination network.
A. Link-State Packet (LSP)
B. Local database
C. Topology Map
D. SPF Algorithm
Correct Answer: D
Chapter: 83
Q934:
Which protocol is used by link-state routers to discover neighbors on its links?
A. Hello Protocol
B. Routing Protocol
C. Link-State Protocol
D. Address Resolution Protocol (ARP)
Correct Answer: A
Chapter: 83
Q935:
Fill in the blank: The process of link-state routing involves flooding LSPs to all neighbors until all routers in the __________ have received the LSPs.
A. Area
B. Network
C. Subnet
D. Link
Correct Answer: A
Chapter: 83
Q936:
What happens if a router stops receiving Hello packets from a neighbor?
A. The neighbor is considered unreachable
B. The router ignores the packets
C. The adjacency is established
D. The LSP is deleted from the database
Correct Answer: A
Chapter: 83
Q937:
Fill in the blank: Each router in a link-state protocol builds a map of the __________ and computes the best path to each network.
A. Topology
B. Routing Table
C. Neighbors
D. Network
Correct Answer: A
Chapter: 83
Q938:
What is the purpose of exchanging Hello packets between link-state routers?
A. To form an adjacency and keepalive function
B. To flood LSPs to all neighbors
C. To calculate the SPF algorithm
D. To configure static routes
Correct Answer: A
Chapter: 83
Q939:
Fill in the blank: The Link-State Packet (LSP) contains information such as __________, link type, and bandwidth.
A. Neighbor ID
B. Routing Table
C. IP Address
D. Subnet Mask
Correct Answer: A
Chapter: 83
Q940:
What does a router do with the LSPs it receives from neighbors?
A. Stores them in a local database
B. Directly uses them to configure routes
C. Deletes them after processing
D. Forwards them without storing
Correct Answer: A

Test Your Knowledge

Take a timed quiz on Routing and Switching

🚀 Start Quiz Now