What is the purpose of Spanning Tree Protocol in a switched LAN?

Review the verified answer and explanation for this SPSC – Sindh Public Service Commission past-paper question on CampusFin.

What is the purpose of Spanning Tree Protocol in a switched LAN? Answer: To prevent switching loops in networks with redundant switched paths

Spanning Tree Protocol (STP) is used in switched LANs to eliminate switching loops that can occur when multiple redundant paths exist between switches. STP ensures there is only one active path between any two network devices, preventing broadcast storms and network failures.

Question context

This question is part of 🌐 Networking within the broader 💾 Computer Science subject and appears in the SPSC – Sindh Public Service Commission preparation collection. Reviewing the answer together with nearby questions helps reinforce the underlying concept and identify how it may appear in competitive exams.