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.
Which of the following is a correct way to declare and initialize a pointer to an integer in C?
What is the primary purpose of a "symbol table" in a compiler's runtime environment?
Which parser is most commonly used in modern compilers?
What is the size of 'sizeof(int)' on a system where 'int' is 4 bytes and 'sizeof(char)' is 1 byte?
What is the primary output of the lexical analysis phase of a compiler?
The primary function of a "loader" is to:
 Which of the following is NOT a typical task performed during the code optimization phase?
In LR parsing, what does the term "shift" mean?
The symbol table in a compiler is used to store:
Which memory allocation strategy is used for global variables and static variables, where memory is allocated once at compile time and remains throughou...