Select chapter



Basics (2.papers)
Data Types (2.papers)
enums (2.papers)
OOPS (4.papers)
Arrays (1.papers)
Structs (2.papers)
Properties (2.papers)
Strings (2.papers)
Interfaces (1.papers)
Constructors (2.papers)
Ref-Out-Keywords (1.papers)
Collections (2.papers)
Generics (1.papers)
Hide

Sponsored Links


  

c# basics interview questions and answers

Show Answer
Share Facebook gmail Twitter
2
A variable declared inside a method is called as ?
  1. Global variable.
  2. Public variable.
  3. Local variable.
  4. Serial variable.
Show Answer
Share Facebook gmail Twitter
3
Which of the following operators has the highest precedence?
  1. Post Increment (Y++) .
  2. Pre Increment (++X) .
  3. Shift bits left ( << ) .
  4. Bit Wise OR ( | ) .
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
13
What is the output of the following Test method If n is the power of 2?
  1. bool Test()
            {
                return n&n-1==0 ;
            }
  2. bool Test()
            {
                return n&n-1==1 ;
            }
  3. bool Test()
            {
                return n&n-1==2 ;
            }
  4. bool Test()
            {
                return n&n-1==3 ;
            }
Show Answer
Share Facebook gmail Twitter
14
What is UnBoxing?
  1. Converting object type to value type.
  2. Converting Reference type to object type.
  3. Converting value type to  object type.
  4. Converting object type to reference type.
Show Answer
Share Facebook gmail Twitter
15
What is Boxing?
  1. Converting any data type to object type.
  2. Converting int to object type.
  3. Converting value type to object type.
  4. Converting reference type to object type.
Show Answer
Share Facebook gmail Twitter
16
Boxing in csharp is _____?
  1. Explicit conversion.
  2. Implicit conversion.
  3. Down Casting.
  4. Up casting.
Show Answer
Share Facebook gmail Twitter
17
UnBoxing in csharp is ______?
  1. Explicit conversion.
  2. Implicit conversion.
  3. Up Casting.
  4. Down Casting.
Show Answer
Share Facebook gmail Twitter
18
What will happen when a null reference is UnBoxed ?
  1. Compilation error.
  2. true.
  3. false.
  4. An Exception is thrown.
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Read more papers :