Searching for "unused"

Q:

A General of an Army wants to create a formation of square from 36562 army men. After arrangement, he found some army men remained unused. Then the number of such army men remained unused was

A) 36 B) 65
C) 81 D) 97
 
Answer & Explanation Answer: C) 81

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Arithmetical Reasoning
Exam Prep: Bank Exams

Q:

You are returning home from school. On the way, you find a sealed envelope in a street, fully addressed with unused stamps on it You would :

A) leave it there as it was and walk away B) remove the stamps and destroy the envelope.
C) open the envelope, find out who has dropped it by mistake, and send it to him if possible. D) post it at the nearest letter box.
 
Answer & Explanation Answer: D) post it at the nearest letter box.

Explanation:

 

Report Error

View Answer Report Error Discuss

Q:

Explain how garbage collection manages the reclamation of unused memory?

Answer

The garbage collector assumes that all objects in the managed heap are garbage. It starts walking the roots and builds a graph of all objects reachable from the roots recursively. It stops when it attempts to add an object to the graph that it previously added. The graph contains the set of all objects that are reachable from the application's roots. Any object/s that is not in the graph is not accessible by the application, and is considered garbage. Collection only occurs when the heap is full. In such a case, each and every garbage object calls the Finalize method and reclaims the unused memory

Report Error

View answer Workspace Report Error Discuss

Subject: .NET
Job Role: Software Architect