Data Communication MCQs with Answers
Practice important Data Communication MCQs with answers and explanations.
Chapter: 216
Q3421:
Which of the following best describes the purpose of a spanning tree in a switched LAN?
A. Increase loops
B. Prevent routing errors
C. Eliminate loops and redundancy
D. Introduce multiple paths
Correct Answer:
C
Chapter: 216
Q3422:
Which value is assigned to LAN links when determining a spanning tree?
A. Weight
B. Delay
C. Cost
D. Port number
Correct Answer:
C
Chapter: 216
Q3423:
Fill in the blank: The ______ is calculated to determine the spanning tree in a network.
A. port number
B. spanning distance
C. link cost
D. connection path
Correct Answer:
C
Chapter: 216
Q3424:
What is the role of the cost (metric) in spanning tree algorithms?
A. To detect loops
B. To choose shortest paths
C. To increase redundancy
D. To bypass switches
Correct Answer:
B
Chapter: 216
Q3425:
Fill in the blank: In the spanning tree algorithm, the port that remains active is called the ______ port.
A. blocking
B. forwarding
C. transmitting
D. receiving
Correct Answer:
B
Chapter: 216
Q3426:
Which ports are disabled to avoid loops in a spanning tree?
A. Root ports
B. Forwarding ports
C. Blocking ports
D. Active ports
Correct Answer:
C
Chapter: 216
Q3427:
What does a spanning tree algorithm do in a LAN environment?
A. Adds redundancy
B. Improves transmission speed
C. Creates loop-free topology
D. Reduces bandwidth
Correct Answer:
C
Chapter: 216
Q3428:
Which algorithm is commonly used to create a loop-free topology in LANs?
A. Distance Vector Algorithm
B. Flooding Algorithm
C. Spanning Tree Algorithm
D. Dijkstra’s Algorithm
Correct Answer:
C
Chapter: 216
Q3429:
What happens to non-forwarding ports in a switch after applying the spanning tree protocol?
A. They are disabled
B. They remain active
C. They duplicate data
D. They act as root ports
Correct Answer:
A
Chapter: 216
Q3430:
Fill in the blank: A ______ tree is a special type of graph used in networking to eliminate loops.
A. connected
B. distributed
C. spanning
D. root
Correct Answer:
C
Chapter: 216
Q3431:
Which of the following ports forwards data after the spanning tree is formed?
A. Root port
B. Blocked port
C. Forwarding port
D. Loop port
Correct Answer:
C
Chapter: 216
Q3432:
What kind of network issue does the spanning tree help avoid?
A. Data duplication
B. Address collision
C. Network loops
D. Low bandwidth
Correct Answer:
C
Chapter: 217
Q3433:
At which layers does a router operate?
A. Only physical layer
B. Physical and data-link layer
C. Only network layer
D. Physical, data-link, and network layers
Correct Answer:
D
Chapter: 217
Q3434:
Fill in the blank: A router is considered a ______ device.
A. two-layer
B. one-layer
C. three-layer
D. four-layer
Correct Answer:
C
Chapter: 217
Q3435:
What type of address does a router have for each interface?
A. MAC address only
B. IP address only
C. Broadcast address
D. Physical and logical address
Correct Answer:
D
Chapter: 217
Q3436:
Which device modifies both source and destination link-layer addresses when forwarding packets?
A. Switch
B. Router
C. Repeater
D. Hub
Correct Answer:
B
Chapter: 217
Q3437:
What does a router check before acting on a packet?
A. Only IP address
B. Only port number
C. If link-layer destination matches its interface address
D. If source IP is allowed
Correct Answer:
C
Chapter: 217
Q3438:
Fill in the blank: Routers act only on packets where the ______ matches the receiving interface.
A. IP address
B. link-layer destination
C. address length
D. frame length
Correct Answer:
B
Chapter: 217
Q3439:
What is a VLAN primarily configured by?
A. Hardware switch
B. Router table
C. Physical wiring
D. Software
Correct Answer:
D
Chapter: 217
Q3440:
Fill in the blank: VLAN stands for ______.
A. Virtual Local Access Network
B. Virtual Logical Area Network
C. Virtual LAN
D. Virtual Line Addressing
Correct Answer:
C