C#.Net Interview Question and Answers

11. What are the modifiers in C#?
 
  • Abstract
  • Sealed
  • Virtual
  • Const
  • Event
  • Extern
  • Override
  • Readonly
  • Static
  • New
 
Your Name Your Email-ID
Your Answer
12. What are the types of access modifiers in C#?
 
    Access modifiers in C# are :
  • public
  • protect
  • private
  • internal
  • internal protect
 
Your Name Your Email-ID
Your Answer
13. What is boxing and unboxing?
  Implicit conversion of value type to reference type of a variable is known as BOXING, for example integer to object type conversion.
Conversion of reference type variable back to value type is called as UnBoxing.
 
Lakshmi Narayanan, said May 13,2014
Boxing and unboxing one can link between value-types and reference-types by allowing any value of a value-type to be converted to and from type object. Eg: int i = 1; object o = i; // boxing int j = (int) o; // unboxing
Your Name Your Email-ID
Your Answer
14. What is object?
  An object is an instance of a class. An object is created by using operator new. A class that creates an object in memory will contain the information about the values and behaviours (or methods) of that specific object.
 
Your Name Your Email-ID
Your Answer
15. Where are the types of arrays in C#?
 
  • Single-Dimensional
  • Multidimensional
  • Jagged arrays.
 
Your Name Your Email-ID
Your Answer