Answers: 1. Console is a class, System is namespace, writeline is a method.
2. Answer is C. We can use only namespaces in using system; etc.
for example It is illegal to use a way like using system.console;
3. Answer is 13. C# compiler will automatically convert it.
4.Answer is option a in my opinion, i am preety much sure about it.
5. Option C and D, By default it is string , we need to convert it to integer using converttoint32 or double method.
So a text box can contain all of above.
6. Option C, code refactoring.
7. Option b, we must eliminate method from event list in properties window otherwise compiler error will occur.
If I am wrong in my answers, please notify me.
Kanhiya Deswal
Jun 17, 2012