Basic CS-Networks [TCS Placement]: Sample Questions 27 - 28 of 133

Get unlimited access to the best preparation resource for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 27

Networks
Edit

Describe in Detail

Essay▾

What is difference between ARP and RARP?

Explanation

Table of Difference between ARP and RARP
ARPRARP
ARP means address resolution protocol.RARP means reverse address resolution protocol.
Associates the bit IP address with the bit physical address, used by a host or a router to find the physical address of another host on its network by sending a ARP query packet that includes the IP address of the receiver.The reverse address resolution protocol (RARP) allows a host to discover its Internet address when it knows only its physical address.
Nodes use ARP broadcast in LAN by using broadcast MAC addressRARP uses broadcast IP address.
Maps IP address of node to its MAC addressMaps bit MAC address to IP address.
Used by host or router to find physical address of another host/router in LAN.Used by thin clients with limited facilities.
Local host maintains ARP table.RARP server maintains RARP table.
ARP reply is used to update ARP table.RARP reply is used to configure IP address in local host.

Question 28

Networks
Edit

Describe in Detail

Essay▾

What is garbage collection? Explain the difference between garbage collection in . NET 4.0 and earlier versions.

Explanation

  • Garbage collection prevents memory leaks during execution of programs.
  • Garbage collector is a low-priority process that manages the allocation and deallocation of memory for application.
  • Checks unreferenced variables and objects.
  • GC finds objects no longer used by the application and frees up the memory from that object. In . NET 4.0, the GC. Collect () method contains the following overloaded methods:
    • GC. Collect (int)
    • GC. Collect (int, GCCollectionMode)
  • . NET also notifies when the GC. Collect () method is invoked and completed successfully.
  • . NET 4.0 supports new background garbage collection replacing the concurrent garbage collection used in earlier versions.
  • Concurrent GC allocates memory while running and uses current segment (which is 16 MB on a workstation) for that. After that, all threads are suspended. In case of background GC, a separate ephemeral GC - gen0 and gen1 can be started, while the full GC - gen0,1, and 2 - is already running.

Developed by: