The blog has moved to the new site F10Debug.com

Wednesday, September 25, 2013

Part 4: C#.Net interview questions and answers

Part 1 - C#.Net interview questions and answers

Part 1 - C#.Net interview questions and answers

Part 3 - C#.Net interview questions and answers

Part 5 - C#.Net interview questions and answers


50.       Can you override private virtual methods?

51.       What is dispose methods in .Net?

52.       What is the use of Dispose method?

53.       How to force dispose method to call automatically?

54.       What is significance of Finalize method in .Net?

55.       How can we suppress finalize method in .Net?

56.       What is Garbage collector?

57.       What is difference between system.string Vs system.stringbuilder?

58.       Interview questions related to constructor and destructor
a)      What is constructor in .Net?
b)      What is destructor in .Net
c)       What are types of constructor? Static and dynamic constructor?
d)      How many constructor's and destructor are allowed in program?
e)      When constructor and destructor are called?
f)       When should we use constructor and destructor? 
g)      What are the advantages and disadvantages of it?
h)      For below code which constructor will fire first?
i)        In what instances you will declare constructor to be private?


59.       Interview questions on Error handling in C#
a)       Can we have try block with finally block without having catch block?
b)       Can we have try block without having catch block and finally block?
c)       What are exceptions?
d)      What are the 3 approaches to handle exceptions in a Web application?
e)      Where will the control flow if an exception occurs inside a try block?
f)       Will the finally block gets executed, if an exception occurs? 
g)    Will finally block get executed if the exception had not occurred
h)    How do you raise expection?
i)     What are Error Events?
k)   Give an example to show how error events can be used to handle exceptions?

60.       What is Extension Methods in C#, how to create it and Advantages of it?

61.       What is Typed Object in C#, Example, Advantages and disadvantages of it?

62.       Nullable Types in C#, Advantages, Disadvantages.

63.       Anonymous types in C#, Advantages.

64.       What's the difference between IEnumerable<T> and List<T> ?

65.       IEnumerable Vs IQueriable?

66.       Boxing and Unboxing?

67.       Bool Vs Boolean


Monday, September 23, 2013

Part 3: C#.Net Interview questions and answers

Part 1 C#.Net Interview questions and answers

Part 2 C#.Net Interview questions and answers

Part 4 C#.Net Interview questions and answers

Part 5 C#.Net Interview questions and answers



37.       Interview Questions Related to Delegates and Events
b)      Types of delegates with examples?
c)       What are events?
d)      Events Vs Delegates?
e)      Do events have return type?
f)       Can events have access modifiers?
g)       Can we have shared events?
h)      Advantage and disadvantage of using delegates and events
i)        When to use delegates and events / in which scenario / give me practical example when should I use delegates and events?
j)        Can I use events without delegates and delegates without events?

38.       Different accessibility levels in .Net?

39.       Can we have different accessibility modifier on get /set method of a property?

40.       What is stack? What is heap? Give differences between two?

41.      What is shadowing?

42.      Shadowing Vs Overriding?

43.     What is use of overrides and overridable keywords?

44.     What does virtual keywords means in overriding?

45.    What does new keywords means in overriding?

46.    Examples on use of virtual / new keyword while overriding?

47.   Virtual functions?

48.   Can you override private virtual methods?  

49.   Can you declare the override method static while the original method is non-static?

Part 1 C#.Net Interview questions and answers

Part 2 C#.Net Interview questions and answers

Part 4 C#.Net Interview questions and answers

Part 5 C#.Net Interview questions and answers