Set - 4

Question 21 :

Describe ways of cleaning up objects?

Answer :

Answer1
There is a perfect tool provide by .net frameworks calls Garbage collector, where by mean of GC we can clean up the object and reclaim the memory. The namespace used is System.GC 

Answer2
the run time will maintain a service called as garbage collector. This service will take care of deallocating memory corresponding to objects. it works as a thread with least priority. when application demands for memory the runtime will take care of setting the high priority for the garbage collector, so that it will be called for execution and memory will be released. the programmer can make a call to garbage collector by using GC class in system name space.


Question 22 :

How can you clean up objects holding resources from within the code?

Answer :

Call the dispose method from code for clean up of objects


Question 23 :

Which controls do not have events?

Answer :

Timer control.


Question 24 :

What is the maximum size of the textbox?

Answer :

65536.


Question 25 :

Which property of the textbox cannot be changed at runtime? 

Answer :

Locked Property.