Correct Answer: The Net runtime knows about all the references between the objects It can identify all the circular references that are reachable from the root and hence finalize them to free them all at once if and when needed
Correct Answer: The Net runtime knows about all the references between the objects It can identify all the circular references that are reachable from the root and hence finalize them to free them all at once if and when needed
5. What is the purpose of reserved word using in C#?
Correct Answer: A keyword that specifies that types in a particular nemespace can be referred to without requiring their full qualified type names 'using' reserved word always come with namespaces eg using systems so because of this useful classes supplied by Microsoft which are contained by system namespace are availble for user
6. Explain how garbage collection manages the reclamation of unused memory?
Correct 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
7. Explain the process of creating a menu using the MainMenu component
Correct Answer: MainMenu component is a component that allows the display of Menus at runtime on a form Process of creating Menu using MainMenu Component: a Add MainMenu component on Windows Form b Menu designer allows deciding the structure of the main menu by selecting the Type Here area and adding the Menu Items to be displayed on the menu c Add functionality to Menu Items as required
Correct Answer: It is the folder that contains web applications The folder that has been published as virtual folder by IIS can only contain web applications
Correct Answer: Net allows developers to write program logic in at least 25 languages The classes written in one language can be used by other languages in Net This service of Net is possible through CTS which ensure the rules related to data types that all language must follow It provides set of types that are used by all NET languages and ensures NET language type compatibility
10. What are the ways of preserving data on a Web Form in ASP.NET?
Correct Answer: These objects provide two levels of scope: Application State Data stored in the application object can be shared by all the sessions of the application Application object stores data in the key value pair