Blog

MCQs

Disclaimer:

Educational Use Only:

The website links provided are to be used strictly for educational and knowledge-gaining purposes only.

No Misuse:

Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.

Respect for Websites and Businesses:

Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.

Acknowledge Value of Knowledge:

Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.

No Endorsement:

The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.

User Responsibility:

By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.


  1. What is the primary purpose of the Spanning Tree Protocol (STP) in network switches?
    a. To prevent broadcast loops in Ethernet networks by creating a loop-free topology
    b. To increase network speed by using all redundant links
    c. To assign IP addresses dynamically
    d. To provide wireless connectivity
    Answer: a. To prevent broadcast loops in Ethernet networks by creating a loop-free topologywikipedia+1
  2. What IEEE standard defines the original Spanning Tree Protocol?
    a. IEEE 802.11
    b. IEEE 802.1D
    c. IEEE 802.3
    d. IEEE 802.1Q
    Answer: b. IEEE 802.1Dwebasha
  3. Which device in an STP topology is responsible for controlling the network tree?
    a. Backup bridge
    b. Edge switch
    c. Root bridge
    d. Designated bridge
    Answer: c. Root bridgewikipedia+1
  4. What identifier is used to elect the root bridge in STP?
    a. Device hostname
    b. Bridge ID (priority + MAC address)
    c. Port ID
    d. VLAN number
    Answer: b. Bridge ID (priority + MAC address)uninets+1
  5. What is the default priority value used by switches participating in STP if not configured?
    a. 100
    b. 1024
    c. 32768
    d. 65535
    Answer: c. 32768uninets
  6. What term describes the ports on switches that provide the shortest path toward the root bridge?
    a. Blocked ports
    b. Alternate ports
    c. Root ports
    d. Backup ports
    Answer: c. Root portswebasha+1
  7. What state does an STP port enter when it is not forwarding frames but can process BPDUs?
    a. Listening
    b. Forwarding
    c. Disabled
    d. Learning
    Answer: d. Learninguninets
  8. Which of the following states does NOT exist in the original STP (802.1D) port states?
    a. Learning
    b. Forwarding
    c. Discarding
    d. Blocking
    Answer: c. Discardingitexamanswers+1
  9. What is a BPDU?
    a. Backup Port Data Unit
    b. Bridge Protocol Data Unit
    c. Broadcast Path Data Utility
    d. Bridging Point Data Unit
    Answer: b. Bridge Protocol Data Unitwikipedia+1
  10. Which port role sends and receives BPDUs to maintain STP topology but does not forward user frames?
    a. Blocked port
    b. Root port
    c. Designated port
    d. Disabled port
    Answer: a. Blocked portwebasha+1
  11. What type of STP port can forward frames for its segment and is selected based on having the lowest cost to the root bridge?
    a. Designated port
    b. Root port
    c. Blocked port
    d. Alternate port
    Answer: a. Designated portwebasha
  12. How does STP prevent switching loops in a LAN topology?
    a. Disabling Ethernet ports permanently
    b. Disabling redundant paths by blocking specific ports
    c. Assigning static IP addresses
    d. Routing all traffic through a single switch always
    Answer: b. Disabling redundant paths by blocking specific portswikipedia+1
  13. What is the function of the listening state in STP?
    a. Forwarding all frames
    b. Listening for BPDUs and not forwarding frames
    c. Flooding the network with BPDUs
    d. Deleting MAC address table entries
    Answer: b. Listening for BPDUs and not forwarding framesuninets
  14. In STP, which occurs FIRST during topology initialization?
    a. Root bridge election
    b. Port role assignment
    c. MAC address learning
    d. Frame forwarding
    Answer: a. Root bridge electionuninets
  15. What happens if two switches have the same priority during a root bridge election?
    a. Both become root bridges
    b. The switch with the lowest MAC address is chosen
    c. The switch with the highest MAC wins
    d. All ports are blocked
    Answer: b. The switch with the lowest MAC address is chosenindeed+1
  16. What protocol is used for rapid reconfiguration in Ethernet networks as an improvement over classic STP?
    a. PPP
    b. RSTP (Rapid Spanning Tree Protocol)
    c. OSPF
    d. RIP
    Answer: b. RSTP (Rapid Spanning Tree Protocol)itexamanswers+1
  17. How often does a switch running the original STP send out BPDU frames?
    a. Every 2 seconds
    b. Every 10 seconds
    c. Every 5 seconds
    d. Every second
    Answer: c. Every 2 seconds (for RSTP), Every 2 seconds in original, every 2 seconds default Ciscoitexamanswers
  18. Which one of the following is NOT a port role in STP?
    a. Root port
    b. Listening port
    c. Designated port
    d. Blocked port
    Answer: b. Listening portitexamanswers+1
  19. What is the primary issue addressed by implementing STP in switched networks?
    a. IP fragmentation
    b. MAC address overflow
    c. Broadcast storms and looping
    d. VLAN hopping
    Answer: c. Broadcast storms and loopingwikipedia+1
  20. Which of the following events triggers an STP topology change?
    a. STP configuration command
    b. BPDU filter activation
    c. Addition or removal of a network link
    d. MAC address table flush
    Answer: c. Addition or removal of a network linkwikipedia+1
  21. What is the outcome for a port in the blocked state?
    a. It can forward all traffic
    b. It only learns MAC addresses
    c. It does not forward frames or learn MAC addresses
    d. It transmits BPDUs
    Answer: c. It does not forward frames or learn MAC addresseswebasha+1
  22. Which port role will be assigned to all active trunk switch ports on the root bridge of a network?
    a. Root port
    b. Designated port
    c. Alternate port
    d. Disabled port
    Answer: b. Designated portitexamanswers
  23. During spanning tree initialization, what do all switches do first?
    a. Wait for the root bridge announcement
    b. Block all ports by default
    c. Send BPDUs claiming themselves as the root bridge
    d. Immediately start forwarding data
    Answer: c. Send BPDUs claiming themselves as the root bridgeitexamanswers
  24. Which three port states are used by Rapid PVST+? (Choose three.)
    a. Discarding
    b. Blocking
    c. Learning
    d. Forwarding
    Answer: a. Discarding; c. Learning; d. Forwardingitexamanswers
  25. What makes RSTP (802.1w) faster than traditional 802.1D STP?
    a. Disabling BPDUs
    b. Direct transition to forwarding state for some ports
    c. Slower convergence
    d. No BPDU support
    Answer: b. Direct transition to forwarding state for some portsuninets+1
  26. How are BPDUs used in STP?
    a. To transfer user data
    b. To detect topology changes and elect root bridge
    c. To assign IP addresses to switches
    d. To configure VLANs
    Answer: b. To detect topology changes and elect root bridgewikipedia+1
  27. Which of the following is true about designated ports?
    a. They are always blocked
    b. They are assigned based on port security
    c. There is one per LAN segment for forwarding frames
    d. They only send BPDUs
    Answer: c. There is one per LAN segment for forwarding frameswebasha+1
  28. What does the command “show spanning-tree” display?
    a. IP routing table
    b. Switch forwarding database
    c. Current STP status and port roles
    d. MAC address assignment
    Answer: c. Current STP status and port roles9tut
  29. What is the main purpose of alternate ports in RSTP?
    a. Assign static VLANs
    b. Provide a backup path in case the designated port fails
    c. Always block frames
    d. Remove unused BPDUs
    Answer: b. Provide a backup path in case the designated port failsitexamanswers
  30. Which port state in STP is responsible for learning MAC addresses but not forwarding frames?
    a. Forwarding
    b. Blocking
    c. Learning
    d. Listening
    Answer: c. Learninguninets
  31. Which protocol is used in conjunction with STP for VLAN support?
    a. VTP (VLAN Trunking Protocol)
    b. OSPF
    c. BGP
    d. STP does not support VLANs
    Answer: a. VTP (VLAN Trunking Protocol)9tut
  32. What criteria determines the root port selection on a non-root bridge?
    a. The port with the highest priority
    b. The port with the lowest path cost to the root bridge
    c. The port with the lowest MAC address
    d. Random selection
    Answer: b. The port with the lowest path cost to the root bridgewebasha+1
  33. How does spanning tree handle redundant links?
    a. Enables all links for faster traffic
    b. Shuts off all but one link per segment
    c. Automatically blocks redundant links
    d. Assigns IP addresses to each link
    Answer: c. Automatically blocks redundant linkswikipedia+1
  34. What is the function of the Forward Delay timer in STP?
    a. To age out old MAC addresses
    b. To determine how long a port stays in listening and learning states
    c. To assign Bridge Priority
    d. To synchronize clocks
    Answer: b. To determine how long a port stays in listening and learning statesuninets
  35. Which switch becomes the root bridge if all switches have the same priority?
    a. The one with the highest IP address
    b. The one with the lowest MAC address
    c. The one with the most ports
    d. The first switch to boot up
    Answer: b. The one with the lowest MAC addressindeed+1
  36. Which command would disable STP on a Cisco switch interface?
    a. disable spanning-tree
    b. no spanning-tree vlan [vlan-id]
    c. spanning-tree disable
    d. stp shutdown
    Answer: b. no spanning-tree vlan [vlan-id]9tut
  37. BPDU Guard is used for what purpose?
    a. To enable VLAN hopping
    b. To detect unauthorized switches on the network
    c. To increase bandwidth
    d. To assign port security settings
    Answer: b. To detect unauthorized switches on the network9tut
  38. What is the Bridge Priority field length in the Bridge ID?
    a. 2 bits
    b. 4 bits
    c. 2 bytes
    d. 4 bytes
    Answer: c. 2 bytesuninets
  39. In which state does a port NOT learn MAC addresses and NOT forward frames?
    a. Forwarding
    b. Blocking
    c. Listening
    d. Learning
    Answer: b. Blockingwebasha+1
  40. What happens when a topology change is detected in STP?
    a. TCN BPDU is generated and sent upwards to the root bridge
    b. All ports go to forwarding state immediately
    c. Root bridge is re-elected without notification
    d. BPDU transmission is halted
    Answer: a. TCN BPDU is generated and sent upwards to the root bridgewebasha
  41. What is the main disadvantage of classic STP in large networks?
    a. It does not support VLANs
    b. Slow convergence time
    c. Expensive license
    d. Lack of vendor support
    Answer: b. Slow convergence timepynetlabs
  42. What port role in RSTP provides an alternate path to the root bridge?
    a. Backup port
    b. Alternate port
    c. Root port
    d. Designated port
    Answer: b. Alternate portitexamanswers
  43. Which of the following is true in STP calculations?
    a. Lower cost is preferred for path selection to the root bridge
    b. Higher cost is preferred for path selection
    c. Root bridge always selects highest bandwidth
    d. Only MAC addresses are considered
    Answer: a. Lower cost is preferred for path selection to the root bridgeuninets+1
  44. How does STP improve network reliability?
    a. By blocking non-essential links until needed
    b. By assigning all links to forwarding state
    c. By broadcasting frames on every port
    d. By synchronizing all MAC addresses
    Answer: a. By blocking non-essential links until neededwikipedia
  45. Which of the following could cause a switch to start a new root bridge election?
    a. Changing bridge priority value on a switch
    b. Adding static MAC addresses to the table
    c. Disabling all VLANs
    d. Resetting port security
    Answer: a. Changing bridge priority value on a switchwebasha+1
  46. In a network, what does a blocked port eventually do upon loss of the forwarding link?
    a. Becomes a forwarding port after convergence
    b. Remains permanently inactive
    c. Announces itself as a root bridge
    d. Initiates MAC address flooding
    Answer: a. Becomes a forwarding port after convergencewikipedia+1
  47. What field is NOT included in a standard BPDU?
    a. Root bridge ID
    b. Path cost to root
    c. Bridge MAC address
    d. VLAN membership
    Answer: d. VLAN membershipuninets
  48. Which two timers are important to the operation of STP?
    a. Root timer and Path timer
    b. Hello timer and Forward delay timer
    c. Listening timer and Learning timer
    d. Block timer and Delay timer
    Answer: b. Hello timer and Forward delay timeruninets
  49. What can cause an STP topology change notification (TCN) to be sent?
    a. Loss or addition of a switch or link
    b. BPDU filtering on all ports
    c. Changing the hostname only
    d. DHCP renewal
    Answer: a. Loss or addition of a switch or linkwebasha+1
  50. What is unique about STP’s handling of redundant physical paths in a LAN?
    a. None are allowed
    b. Only one is allowed for load balancing
    c. All but one path are blocked to prevent loops, and backup links can activate if primary fails
    d. Each link is assigned to a different VLAN
    Answer: c. All but one path are blocked to prevent loops, and backup links can activate if primary failswikipedia+1

 

  1. https://en.wikipedia.org/wiki/Spanning_Tree_Protocol
  2. https://www.webasha.com/blog/ccna-interview-questions-on-stp-346
  3. https://www.uninets.com/blog/spanning-tree-protocol
  4. https://itexamanswers.net/chapter-2-quiz-spanning-tree-protocol-answers-ccnpv8-encor.html
  5. https://in.indeed.com/career-advice/interviewing/stp-interview-questions
  6. https://www.9tut.com/spanning-tree-protocol-stp-tutorial
  7. https://www.pynetlabs.com/spanning-tree-protocol-explained/
  8. https://testbook.com/objective-questions/mcq-on-spanning-tree–5eea6a0c39140f30f369e0f5
  9. https://www.examveda.com/networking/practice-mcq-question-on-spanning-tree-protocol/
  10. https://networkhope.in/quiz-on-spanning-tree-protocol-part-i/
  11. https://ipcisco.com/quiz/spanning-tree-protocol-stp/
  12. https://www.indiabix.com/networking/spanning-tree-protocol/
  13. https://www.grabstudy.com/Technical-MCQs/Spanning-Tree-Protocol.php?pn=2
  14. https://www.geeksforgeeks.org/computer-networks/introduction-of-spanning-tree-protocol-stp/
  15. http://networkerinterview.net/entries/spanning-tree-protocol/STP
  16. https://networkwalks.com/stp-quiz-online/
  17. https://ccnatutorials.in/multiple-choice-questions/mcq-for-stp-set-3/
  18. https://www.nwkings.com/what-is-spanning-tree-protocol
  19. http://networkerinterview.net/entries/stp/stp-ccnp-interview-questions-and-answers
  20. https://www.sanfoundry.com/minimum-spanning-tree-multiple-choice-questions-answers-mcqs/

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!