C# Exclusive Interview Questions and Answers (453) - Page 3

  • A joint initiative from DotNetFunda.Com and Questpond.
  • A one stop place on the internet to get trusted and proven Interview Questions (based on more than a decade of experience in this field) to ensure the success of the candidates.
  • You will find almost all Interview questions from Questpond here and this list is growing day by day with all latest and updated interview questions.

453 records found.

Get 650+ Questpond's Interview videos on discount

When is the object ready for garbage collection?

when all the references to the object are lost.
what is the difference between pointer and reference value

Pointer is an address but Reference is not.
Whenever any of the business rules of an object or the integrity of the proprty or a method is violated, it should respond by

NOTE: This is objective type question, Please click question title for correct answer.
Protected member of parent can be accessed by

NOTE: This is objective type question, Please click question title for correct answer.
What are constructors?

Constructors are Methods--all calls " New" in VB.NET, they initialize objects during instantiation
Explain why you might use enums and constants instead of their associated literal values.

Enums and constants make code easier to read and maintain by substituting human-legible tokens for frequently used constant values.
In .NET all the dependent objects are automatically ready for garbage collection when the main object

NOTE: This is objective type question, Please click question title for correct answer.
An Abstract cannot be a

NOTE: This is objective type question, Please click question title for correct answer.
In C# can we do project level imports?

NOTE: This is objective type question, Please click question title for correct answer.
When should you call the garbage collector in .NET?

As a good rule, you should not call the garbage collector. However, you could call the garbage collector when you are done using a large object (or set of objects) to force the garbage collector to dispose of those very large objects from memory. However, this is usually not a good practice.
Which assembly is resource only assembly for a given culture

NOTE: This is objective type question, Please click question title for correct answer.
A class which is accessible outside assembly but can't be instantiated from outside assembly is called

NOTE: This is objective type question, Please click question title for correct answer.
Importance of classLibrary is

NOTE: This is objective type question, Please click question title for correct answer.
In C# project properties we can mention the _______________ but in code we have to explicitly mention the namespace.

NOTE: This is objective type question, Please click question title for correct answer.
Why an instance can't be created for an abstract class?

An Instance of Abstract class cannot be created because an abstract class may (not compulsory) have some abstract members i.e. members whose declaration is provided and implementation is not and if the instance of this class is created, that abstract method would be invoked and it doesnt have implementation and this would create a problem. To avoid this kind of problem the compiler gives error if we try to create the instance of abstract class (which can also be said as incomplete class)
Can u allow class to be inherited, but prevent the method from being over-ridden

Yes, just leave the class public and make the method sealed.
Every method of child class which is declared as "new" can also be declared as

NOTE: This is objective type question, Please click question title for correct answer.
A reference variable of child can refer to an object of parent class True / False?

False because the child class members that the reference variable can access do not exit in memory when the object is of parent class.

More C# Interview Questions & Answers here

Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Exclusive Interview Questions and Answers Categories