A hardware device that filters and transfers network data packets from one device to another is called a switch. Switches are intelligent as they find the shortest way to transfer data packets and you can transfer data to a particular host instead of sending it to all connected devices.

Switches are used for sharing resources by connecting all the devices like servers, computers, scanners, etc where they can communicate with each other.

BY Best Interview Question ON 08 Nov 2020