David Smith

David Smith

  • NA
  • 2k
  • 0

C Sharp Interview Prep: Questions

Sep 16 2015 2:19 AM
1. What is the underlying type for enumerations?
 
 
2.What is the base class for the anonymous type?
 
 
3. Base upon the code below, how do you populate the even numbers integer array with even numbers? Use linq (Foreach or FindAll)
 
int [] numbers = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20}; 
 
4. What base class would you use to convey information for an event?
 
5. How often do a static constructor for a class execute?
 
6. What is the difference between const and readonly keywords
 
 7. When dealing with exceptions, when is the finally block hit?
 
8. You use Action<T> delegate when you?
 
9.  What code do you write to declare a property with a set accessor inaccessible to code outside the current type, while keeping the get accessor accessible?

Answers (21)