Dot Net Interview Questions and Answers

by GangBoard Admin, December 6, 2018

In case you’re searching for Dot Net  Interview Questions and answers for Experienced or Freshers, you are at the correct place. There is parcel of chances from many presumed organizations on the planet. The Dot Net advertise is relied upon to develop to more than $5 billion by 2020, from just $180 million, as per Dot Net industry gauges. In this way, despite everything you have the chance to push forward in your vocation in Dot Net Development. Gangboard offers Advanced Dot Net  Interview Questions and answers that assist you in splitting your Dot Net interview and procure dream vocation as Dot Net Developer.

Best Dot Net Interview Questions and Answers

Do you believe that you have the right stuff to be a section in the advancement of future Dot Net, the GangBoard is here to control you to sustain your vocation. Various fortune 1000 organizations around the world are utilizing the innovation of Dot Net to meet the necessities of their customers. Dot Net is being utilized as a part of numerous businesses. To have a great development in Dot Net work, our page furnishes you with nitty-gritty data as Dot Net prospective employee meeting questions and answers. Dot Net  Interview Questions and answers are prepared by 10+ years experienced industry experts. Dot Net Interview Questions and answers are very useful to the Fresher or Experienced person who is looking for the new challenging job from the reputed company. Our Dot Net Questions and answers are very simple and have more examples for your better understanding.

By this Dot Net Interview Questions and answers, many students are got placed in many reputed companies with high package salary. So utilize our Dot Net Interview Questions and answers to grow in your career.

  1. What is Inheritance?

Derived class inherits the member of  base class is called inheritance. Its one object have all the properties and behaviors of its parent object. Using inheritance we can reuse the code.  We can achive single level and multi level inheritance.

public class Employee


public float salary = 400;


public class Programmer: Employee


public float bonus = 100;


class TestInheritance{

public static void Main(string[] args)


Programmer p1 = new Programmer();

Console.WriteLine(“Salary: ” + p1.salary);

Console.WriteLine(“Bonus: ” + p1.bonus);



  1. What is the Generic and non generic collections?

Two types of collections is there one is generic collection another one is non generic collection.

Generic Collection:

We can group one type of object in single collection is called generic collection. Here we dont need to convert particular type like string, int, etc.

Non Generic Collection:

We can group any type of object in single collection is called non generic collection. Here we need to convert particular type like string, int,etc., otherwise we will face issue in run time.

  1. What are the non generic collections?
  2. Array List
  3. Sorted List
  4. Stack
  5. Queue
  6. Hashtable
  7. Bit Array
  8. What is a Constructor?

It’s a method which have same name as class or struct name.  It’s called automatically at the time of object creation.

  1. What are the types of constructors?
  2. Default Constructor
  3. Parameterized Constructor
  4. Copy Constructor
  5. Static Constructor
  6. Private Constructor
  1. What is String Builder? Which one Preferable string or String Builder?

String Builder is a dynamic object. Its allow number of characters in string. Its does not create a new object in memory.

StringBuilder sb = new StringBuilder(“Hi Team!!”);

We can prefer StringBuilder. Beacuse it performs faster than string when appending multiple string values.

  1. What is Anonymous Functions?

Function without name is called Anonymous functions. Two types of anonymous functions.

  1. Lambda Expressions
  2. Anonymous Methods
  1. What is Reflection?

It is a process to get metadata of a type at runtime. Few classes for reflection are below,

  1. Type
  2. Assembly
  3. Assembly Name
  1. What is Abstract Class?

Its declared as abstract. It can have abstract and non-abstract methods. It cannot be instantiated. Its implementation must be provided by derived classes.

  1. What is Sealed?

Its a restrictions of class and methods. Sealed class cannot be derived and Sealed method cannot be overridden.

  1. What is Method overriding?

Derived class define same method as defined in base class. Its need to use virtual keyword with base class method and override keyword with derived class method.

public class Sample{

public virtual void message(){

Console.WriteLine(“Hi Welcome”);



public class SampleTwo: Sample


public override void message()





public class TestOverriding


public static void Main()


SampleTwo d = new SampleTwo();




  1. What is Encapsulation?

Its wrapping data into a single unit.

class Employee


public string ID { get; set; }

public string Name { get; set; }


class example


static void Main(string[] args)


Employee employee = new Employee();

employee .ID = “1”;

employee .Name = “Anbu”;

Console.WriteLine(“ID = “+employee .ID );

Console.WriteLine(“Name = “+employee .Name );          }


  1. What are the filters in MVC?
  2. Authentication
  3. Authorization
  4. Result
  5. Action
  6. Exception 
  1. How we can use multiple model in Single view?

We can use multiple model in Single view using below things,

  1. View Data
  2. View Bag
  3. Tuple
  4. Dynamic Model
  5. View Model


  1. Net stands for Active Server Page (Network Enabled Technology).
  2. CLR stands for “Common Language Runtime”.
  3. CLS stands for Common Language Specification
  4. MSIL Stands for “Microsoft Intermediate Language”.
  5. JIR stands for “Just In Time”.
  6. Transfer page processing transfers from one page to the other page without making a round-trip back to the client’s browser.
  7. Redirect is used to redirect the user’s browser to another page or site. It performs trip back to the client where the client’s browser is redirected to the new page.
  8. Compare validator control you use if you need to make sure the values in two different controls matched.
  9. Types of validators in ASP.NET?
    1. 6
  10. List down the types of validators in ASP.NET?
    1. Required field Validator
    2. Range Validator
    3. Compare Validator
    4. Custom Validator
    5. Regular expression Validator
    6. Summary Validator
  11. View State is used to retain the state of server-side objects between page post backs.
  12. ViewState is stored in a hidden field on the page at client side.
  13. In-Process stores the session in memory on the web server
  14. Out-of-Process Session state management stores data in an external server.
  15. Caching is a technique used to increase performance by keeping frequently accessed data or files in memory.
  16. Fragment Caching which is used to caches the portion of the page generated by the request.
  17. What are the three types of Catching?
    1. Output Caching,
    2. Fragment Caching,
    3. Data Caching.
  18. List down the events in Page life cycle.
    1. Page_PreInit
    2. Page_Init
    3. Page_InitComplete
    4. Page_PreLoad
    5. Page_Load
    6. Page_LoadComplete
    7. Page_PreRender
    8. Render
  19. HTTP protocol is used to call a Web service
  20. Web config file is specific to a web application.
  21. machine config is specific to a machine or server.
  22. multiple web config files into an application where as we can have only one machine config file on a server.
  23. Role Based Security used to implement security based on roles assigned to user groups in the organization/
  24. MVC is a framework used to create web applications.
  25. MVC Stands for “Model View Controller”.
  26. Page Load Event are the controls fully loaded.
  27. Boxing is assigning a value type to reference type variable.
  28. UnBoxing is Assigning reference type variable to value type variable.
  29. strong typing, the data types of variable are checked at compile
  30. weak typing the variable data types are checked at
  31. Validate() method is used to force all the validation controls to run and to perform validation.
  32. The data types supported by the RangeValidator control are Integer, Double, String, Currency, and Date.
  33. Session Cookie is resides on the client machine for a single session until the user does not log out.
  34. Persistent Cookie is resides on a user’s machine for a period specified for its expiry, such as 10 days, one month, and never.
  35. Web services have file extension .asmx.
  36. The components of Net are Dataset, Data Reader, Data Adaptor, Command, connection.
  37. ExecuteScalar returns output value where as ExecuteNonQuery does not return any value but the number of rows affected by the query.
  38. ExecuteScalar used for fetching a single value and ExecuteNonQuery used to execute Insert and Update statements.
  39. What are the types of validation in ASP.NET ? Client side validation and server side validation.
  40. When validation is done on the client browser, then it is known as Client-Side Validation.
  41. When validation occurs on the server, then it is known as Server-Side Validation.
  42. Server-Side Validation is a secure form of validation.
  43. What are the different Session state management options available in ASP.NET?
    1. Client-Side State Management Options
    2. Server-Side State Management Options
  44. Client-Side State Management options involve storing information either in the page or on the client computer.
  45. Server-Side State Management need to store the state information on the server side.
  46. IIS Stands for “Internet Information Server”.
  47. The code that is managed by the CLR is called Managed code.
  48. Unmanaged Code is developed by any other language independent of .Net framework.
  49. Exe and DLL are Assembly executable modules.
  50. Exe is an executable
  51. DLL stands for Dynamic Link Library.
  52. CAS stands for “Code access security”.
  53. GAC stands for Global Assembly Cache.
  54. Garbage collection is a feature of .Net to free the unused code objects in the memory.
  55. Postback is a request which is sent from a client to the server from the same page
  56. Globalization is a technique to identify the part of a Web application that is different for different languages and separate it out from the web application.
  57. In localization to configure a Web application so that it can be supported for a specific language or locale.
  58. In early binding, a non-virtual method is called which is decided at a compile time
  59. In late binding, a virtual method is called which is decided at runtime.
  60. Signout() method is used to sign out from forms authentication.
  61. Authentication is a process of identifying user.
  62. Authorization is used to check the access rights of an identified user.
  63. Write() is used for normal output whereas Response.Output.Write() is used for formatted output.
  64. ADO stands for Active Data Object
  65. NET is a set of .NET libraries for ADO
  66. Connected and Unconnected are the two types of architecture.
  67. DataSet contains a collection of DataTables and the DataTable contains a collection of DataRows, DataRelations, and DataColumns
  68. DataReader Used in a connected architecture
  69. DataReader object has read-only access.
  70. DataReader object supports a single table based on a single SQL query of one database
  71. A DataReader object is bound to a single control
  72. DataReader cannot modify data.
  73. DataSet Used in a disconnected architecture
  74. DataSet object has read/write-only access.
  75. DataSet object supports a Multilple table based on a various SQL query of various database
  76. A DataSet object is bound to a multiple control
  77. DataSet can modify data.
  78. What are the three methods of SQL Commands object.?
    1. ExecuteScalar
    2. ExecuteNonQuery
    3. ExecuteReader
  79. ExecuteScalar is useful for returning a single value from the database.
  80. ExecuteNonQuery is useful for performing data manipulation on the database
  81. E xecuteReader is used when we need to retrieve rows and columns of data using the SQL select statements.
  82. A Data Adapter represents a set of data commands and a database connection to fill the dataset and update a SQL Server database.
  83. DataProviders are used for connecting to a database, retrieving data storing data, updating the data etc.
  84. What are the Four Components of DataProviders are:
    1. Connection
    2. Commands
    3. DataReader
    4. DataAdapter
  85. LINQ is native query language for .NET framework and it is specially designed to support queries with the .net applications.
  86. Connection object Which is used to Represents connection to the Database
  87. Command object Which is used to execute stored procedure and command on Database
  88. ExecuteNonQuery Which is used to Executes command but doesn’t return any value
  89. ExecuteScalar Which is used to Executes and returns single value
  90. ExecuteReader Which is used to Executes and returns result set
  91. DataReader Which is used to Forward and read only recordset
  92. DataAdapter Which is used to This acts as a bridge between database and a dataset.
  93. Object pooling is a concept of storing a pool (group) of objects in memory that can be reused later as needed
  94. The DataSource property and the DataMember property are used to bind a DataGridView control.
  95. SqlClient is explicitly used to connect your application to SQL server directly.
  96. OLEDB Provider is generic for various databases, such as Oracle and Access including SQL Server.
  97. Connection pooling refers to the task of grouping database connections in cache to make them reusable.
  98. The Clone() method copies only the structure of a DataSet
  99. The Copy() method copies the structure as well as the data stored in the DataSet.
  100. Abort() function stops the thread execution at any time.
  101. Sort() method of GridViewControl is used to sort the data in a datatable.



Related Post

No Comments

Leave a Reply

Your email address will not be published Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


Online Training Quick Enquiry

Get Free Online training