Basic CS [TCS Placement]: Sample Questions 26 - 27 of 196
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 26
Explanation
Memory management in the CLR is divided into three generations that are build up by grouping memory segments. Generations enhance the garbage collection performance:
- Generation 0 - When an object is initialized, it is said to be in generation 0.
- Generation 1 - Objects under garbage collection process are considered to be in generation 1.
- Generation 2 - New objects created and added to the memory are added to generation 0 and the old objects in generation 1 are considered to be in generation 2.
Question 27
Explanation
- Peer-to-peer (P2P) is a decentralized communications model where each party has the same capabilities and either party can initiate a communication session.
- Unlike the client/server model, in which the client makes a service request and the server fulfills the request, the P2P network model allows each node to function as both a client and server
- P2P systems can be used to provide routing of network traffic, massive parallel computing environments, distributed storage, and other functions.