Question
Which of the following protocols is used for resolving IP
addresses to MAC addresses in a network?Solution
The Address Resolution Protocol (ARP) is used to map an IP address to a MAC address within a local area network (LAN). It operates at the Network Layer (Layer 3) and communicates with the Data Link Layer (Layer 2) to retrieve the physical address of the destination device. When a device wants to send data to another device within the same network, it broadcasts an ARP request to resolve the MAC address corresponding to the known IP address. Why Other Options Are Incorrect:
- Â DHCP: Dynamic Host Configuration Protocol assigns IP addresses dynamically to devices but does not resolve IP to MAC addresses.
- Â ICMP: Internet Control Message Protocol is used for diagnostic purposes, such as ping tests, and does not handle address resolution.
- Â DNS: The Domain Name System resolves domain names (e.g., www.example.com ) to IP addresses, not MAC addresses.
- Â FTP: File Transfer Protocol is an application layer protocol for transferring files, unrelated to address resolution.
Output of below code
public class Prg {
public static void main(String args[]){
System.out.print("A" + "B" + 'A');
}
...The Master Theorem gives time complexity for recurrences of the form:
Which of the following is true for the time complexity of binary search?
Which is not true about minimum spanning tree?
Which sorting algorithm divides the array into halves recursively?
Which command is TCL command
Which of the following is substring of “IXAMBEE”?
Which data structure is used in BFS (Breadth-First Search)?
Which of the following is considered the strongest type of encryption method in modern cyber security practices?   Â
In a binary search tree (BST), what is true about the left child of a node?