Interview Tips Interview Tips, Interview Questions and Answers

21Dec/090

Basic interview questions for C# Component Developers

    1. Explain the differences between public, protected, private and internal.
    2. What benefit do you get from using a Primary Interop Assembly (PIA)?
    3. By what mechanism does NUnit know what methods to test?
    4. What is the difference between typeof(foo) and myFoo.GetType()?
    5. Explain what’s happening in the first constructor: public class c{ public c(string a) : this() {;}; public c() {;} } How is this construct useful?
    6. What is this? Can this be used within a static method?
    7. Explain the importance and use of each component of this string: Foo.Bar, Version=2.0.205.0, Culture=neutral, PublicKeyToken=593777ae2d274679d
    8. What is the difference between: catch(Exception e){throw e;} and catch(Exception e){throw;}
    9. Juxtapose the use of override with new. What is shadowing?
    10. Explain the use of virtual, sealed, override, and abstract.
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.