C#.Net Interview Question and Answers

71. What is the difference between Array and LinkedList?
  Array is a simple sequence of numbers which are not concerned about each others positions. they are independent of each others positions. adding,removing or modifying any array element is very easy. Compared to arrays ,linked list is a comlicated sequence of numbers.
 
Rakesh, said Jan 04,2014
The Memory allocation for arrays are continuous whereas for linked-list its discontinues, thus making the address of the data unpredictable compared to arrays.
Your Name Your Email-ID
Your Answer
72. Does C# have a throws clause?
  No, unlike Java, C# does not require the developer to specify the exceptions that a method can throw.
 
Your Name Your Email-ID
Your Answer
73. Does C# support a variable number of arguments?
  Yes, uisng the params keyword. The arguments are specified as a list of arguments of a specific type.
 
Your Name Your Email-ID
Your Answer
74. Can you override private virtual methods?
  No, private methods are not accessible outside the class.
 
Your Name Your Email-ID
Your Answer
75. What is a multi cast delegates?
  Each delegate object holds reference to a single method. However, it is possible for a delegate object to hold references of and invoke multiple methods. Such delegate objects are called multicast delegates or combinable delegates.
 
Your Name Your Email-ID
Your Answer




ASP.Net | Datastage | HR Interviews | Placement Papers | Verbal Analogy