What is the purpose of a switch in networking?
A switch connects devices within a local area network (LAN) and uses MAC addresses to forward data to the correct device, making it more efficient than a hub.