Question
Which component of a network ensures that data is
delivered to the correct host in a multi-host environment?Solution
A switch is a network device that ensures data is delivered to the correct host within a local network. It operates at the Data Link Layer (Layer 2) of the OSI model and uses MAC addresses to forward data to the correct port, which is connected to the destination host. Unlike a hub, which broadcasts data to all connected devices, a switch intelligently sends data only to the intended recipient. The incorrect options: Router : Routers operate at the Network Layer and are responsible for directing traffic between different networks, not within a single local network. Repeater : A repeater amplifies signals to extend network reach but does not direct traffic to specific hosts. Firewall : A firewall is a security device that monitors and controls incoming and outgoing network traffic but is not responsible for delivering data to hosts. Hub : A hub simply broadcasts data to all devices on the network, making it less efficient and secure compared to a switch.
The bundling of data (attributes) and methods (functions) that operate on the data into a single unit (class), and restricting direct access to some of ...
An abstract class:
The ability of an object to take on many forms, or the ability of a single interface to represent different underlying forms, is known as:
What is the main purpose of an interface in OOP?
Which access modifier restricts access to a class member only within the class itself and its derived classes?
Which type of polymorphism is achieved through method overloading (where multiple methods have the same name but different parameters)?
What is a "method" in the context of OOP?
Which of the following is a common way to achieve abstraction in OOP?
What is a key benefit of encapsulation?
In Python, if you want to call the constructor of a parent class explicitly, which method do you use?