360 सरकारी नौकरियों

Latest DOT NET Interview Questions for Freshers

Here we will update all Latest DOT NET Interview Questions for freshers. Are looking for DOT NET interview questions then here are the latest  DOT NET interview questions asked by the MNC Companies in the January 2017. Have look at these DOT NET Interview questions before going to face an Interview and get qualified in Technical Round. I definitely recommend you please read these questions before attending for TR round. These all Latest DOT NET Interview Questions for freshers are prepared by the technical team of level 3 company professionals.

I think many candidates are looking for DOT NET Interview Questions for freshers. That’s why i am posting these DOT NET Interview Questions for freshers. You definitely qualified for Interview when you aware of these below DOT NET Interview Questions for freshers. Now have a look at Latest DOT NET Interview Questions for freshers.

Latest DOT NET Interview Questions for Freshers:

Q. What is .NET Framework?

A: The Tools and the components that are required to develop and execute an application and services are collectively known as .NET Framework. It was developed by Microsoft in the year 2002. There are majorly three components, they are Base Class Library (BCL), Common Language Run time (CLR) and Name Space.

Q. What Is .NET?

A: .NET is abbreviated as Network Enable Technology (NET). NET is the platform that incorporates the applications, services, tools and changes the infrastructure of the company web’s strategy.

Q. What is the difference between .NET and Java?

A: The main difference between .NET and Java is, Java is a programming Language and .NET is the framework technology. That is Java language is shared by multiple platform while .NET platform shares multiple languages such as C#, Asp.Net, VB#, etc.

Q. What is the difference between Console.Writeline() and Console.Write()?

A: Console.Writeline() prints in the new line and Console.Write() prints in the same line.

Q. What is class?

A: Class is a collection of objects, methods, data members, etc. and it is used to define an user defined and reference type data type.

Q. What are Static Members of Class Non – Static members of Class?

AStatic Members of Class: The members are binded with class definition and they can be accessed by using class name only.

Non – Static members of Class: These are the members binded with object definition and they can be accessed using the object name itself.

Q. What is an Object?

A: Object is defined as Instance of an object is said to be an Object.

Syntax: Class Name Object Name = New Class Name ([arg.value]).

Q. What are Data Types?

A: Data Types are used to specify the type of value that can be assigned to a variable. There are rwo types of Data Types.

  1. Value Type Data Type : Whenever a Data Type is derived based on structure then it is said to be value type data type.
  2. Reference Type Data Type : Whenever a data type is derived based on class definition, it is said to be reference type.

Q. What is the default value for Reference type Data Type?

A: Null values.

Q. What is Boxing and Unboxing?

  1. Boxing: Whenever a value type data type member is assigned to a reference type data type member, then it is said to be Boxing. EX:- int a = b; object b; b = a;
  2. UnBoxing: Whenever a reference type data type member is assigned to a value type data type member, then it is said to be UnBoxing. EX:- int a; object b = 5; a = int (b);

Q. What is Constructor?

A: Constructor is a special type of method used to assign values to the members of a class. There are two types of Constructors.

  • Static Constructor:- It is used to Initialize Static members of the Class. Modifiers Can’t be used and  Arguments can’t be passed for Static Constructor.
  • Non- Static Constructor:- It is used to initialize Static & Non – Static members of a class. Access specifiers are must to define a Non – Static Constructor.

Q. What is a Method and write Syntax?

A: Method is a Procedure.


[Access Specifier] return type Method Name (arg [] info)




Q. What is Exceptional Handling?

A: An Exceptional Handling is a problem that would arises when execution of the program. To define unknown errors and notify to the user we will use Exceptional Handling. In C# Exceptional Handling is done by Try, Catch, Throw, Finally Blocks.

Q. What are the OOPS Concepts, what is the purpose to use OOPS?

A: OOPS (Object Oriented Programming System) is the methodology to implement a program using Class and Objects. The main purpose of using OOPS Concepts is, it provides re-usability and eliminates Redundant Code. The following are the OOPS Concepts in C#.

  1. Class.
  2. Object.
  3. Encapsulation.
  4. Inheritance.
  5. Abstraction.
  6. Polymorphism.

Q. What is Encapsulation?

A: Wrapping or Binding the data in to a Single Unit is called Encapsulation.


public class Aperture


public Aperture ()



protected double height;

protected double width;

protected double thickness;

public double get volume()


Double volume=height * width * thickness;

if (volume<0)

return 0;

return volume;



Q. What is Abstraction?

A: Abstraction is the process of hiding the details of Particular concept/ object from a user and exposing only the essential features.


A car is made with many machines, motors, sensors, engine, iron rods, seats and many. But you can see only the out view only. This is called hiding the data by showing appropriate structure.

Q. What is Inheritance?

A: Inheritance is defined as the process of deriving the properties for a class (called Base class) from the already existing class (called derived class).

There are four types of Inheritance.

  1. Single – 1 Base Class & 1 Derived Class.
  2. Hierarchical – 1 Base & Multiple Derived Classes.
  3. Multiple – Multiple Base classes with single Derived class.
  4. Multilevel – 1 Base Class -> Child Class -> Child Class.

Q. What is Polymorphism?

A: Polymorphism is used ti exhibit different forms of any particular procedure. There are two methods or types.

  1. Static (or) Overloading – When a compiler compiles a program, it knows the information about the method arguments and accordingly it binds the appropriate method to an object. This type of binding is called Compile time Polymorphism or Static Polymorphism or early Binding.
  2. Dynamic (or) Overriding – It is a feature that allows a derived class to provide a specific implementation of a method that is already defined in the base class using virtual methods which can be inherited to the derived class which is overwritten by derived class method using “Override” Keyword. This feature is called Overriding or Run time Polymorphism or late binding.

Q. What is interface?

A: An Interface is the collection of data members and member functions but it doesn’t implement them. These are introduced to provide the features of multiple inheritance to classes. The methods defined in inheritance only specifies the parameters that they will take and the type of values they return.

Q. What is a Delegate?

A: A Delegate is a special type of object that contains the details of the method rather than data.


using System;

delegate int NumberChanger(int n);
namespace DelegateAppl
   class TestDelegate
      static int num = 10;
      public static int AddNum(int p)
         num += p;
         return num;

      public static int MultNum(int q)
         num *= q;
         return num;
      public static int getNum()
         return num;

      static void Main(string[] args)
         //create delegate instances
         NumberChanger nc1 = new NumberChanger(AddNum);
         NumberChanger nc2 = new NumberChanger(MultNum);
         //calling the methods using the delegate objects
         Console.WriteLine("Value of Num: {0}", getNum());
         Console.WriteLine("Value of Num: {0}", getNum());

Q. What is ASP?

A: Active Server Page, also Known as ASP, it is a Microsoft Server Side Technology.

Q. What is the difference between ASP & ASP.NET?

A: ASP:- 

  1. ASP is a interpreted language like Java script or VB script.
  2. ASP has mixed HTML and coding logic.
  3. Limited OOPS.
  4. Limited Session and application state management.
  5. Limited Development and debugging tools available.


  1. In ASP.NET separate code and design logic possible.
  2. Variety of compilers and tools  available.
  3. Completely object oriented.
  4. Complete session and application state management.
  5. Full XML support for easy data exchange.

Q. What is ASP.NET?

A: It is a server side scripting technology, enables scripts to be exchanged by an internal server. It is developed by Microsoft to create dynamic web apps, web services, etc,.

Q. What is Cookie?

A: Cookie is light weight executable program, which the server posts to client machines. Cookies stores the identity of the user at first time visit of website and validate them later of the next visits for their authenticity.

Q. What are the major Built-in objects in ASP.NET?

A: There are seven built-in objects in ASP.NRT.

  1. Application.
  2. Request.
  3. Response.
  4. Server.
  5. Session.
  6. Context.
  7. Trace.

Q. What is the difference between Server. Transfer() and Response. Redirect()?

A: Server. Transfer() :- Server. Transfer() method stops the current execution and runs the context on the specified page and passed back when the execution completes.

Response. Redirect() :- Response. Redirect() method transfers the control and never passed back to the calling page.

Q. What is Post back?

A: The process in which the webpage and sends data back the same page on the server.

Q. What is Auto Post Back?

A. If you wants a control to post back automatically when an event is raised, you need to set Auto Post Back property as true.

Q. What is round trip?

A: The trip of a web page from client -> server -> client is called round trip.

Q. What are the types of Cookies?

A: Two types.

  1. Session Cookie.
  2. Persistent Cookie.

Q. What is the difference between Session Cookie and Persistent Cookie?

A: Session Cookie: Resides on the client machine for a single session until the user doesn’t logout.

    Persistent Cookie: Resides on the client machine for a period specified for expiry.

Q. Which is the parent class of the web server control?

A: System. Web. UI. Control.

Q. Which ASP.NET objects encapsulate the state of the client and the browser?

A: The session object encapsulates the state of the client and browser.

Q. What is the difference between User Control and Custom Control?

A: User Control: Easy to create, can not be placed in tool box.

    Custom Controls:  Easy to create, placed in to tool box.

Q. What is a view State?

A: View State is a .Net mechanism to store the posted data among post backs. View state allows the state of objects to be stored in a hidden field on the page, saved on client side and transported back to server whenever required.

Q. What is Authentication and Authorization?

A. Authentication: It is the process of Identifying/ Validating the user against the credentials.

Authorization: Authorization performs after authentication. Authorization is the process of granting access to those users based on Identity.

Q. What are the types of Authentication?

A: There are 3 types.

  1. Windows: This method of authentication uses the existing Windows accounts to authenticate users. This type of authentication is used mostly for intranet applications, where the users already have valid Windows accounts.
  2. Forms Based: Allows you to create own data base of users and validate the identity of those whwn website visits.
  3. Passport Authentication: Passport method of authentication uses Microsoft’s Passport service to authenticate users.

Q. What are the different ways to send data across pages in ASP.NET?

A: There are two types to send data across pages.

  1. Session.
  2. Public Properties.

Q. Where the View State Information Stored?

A: Stored in HTML hidden Fields.

Q. What is the default time for Cookie?

A: 30 Minute.

Q. What is the difference between HTML and Web Server Controls?

A: HTML Controls are client side controls, so validations are performed at client side, where web server controls are server side controls validations are performed at server side.

Q. What is the difference between server side scripting and client side scripting?

A: Server Side Scripting: It means that all the script will be executed by the server and interpreted as needed. ASP.NET doesn’t have some of the functionality like sockets, uploading,etc,.

Client Side Scripting: It means, script will be executed immediately in the browser such as form field validation, clock, Email validation, etc,.

Q. How do you create a permanent Cookie?

A: Set the expiry date as DateTime. Maxvalue.

Q. What managed and Unmanaged Code?

A: Managed Code: The code which is completely run by the Common Language Run time (CLR) is called Managed Code.

Unmanaged Code: The code which is not managed by the CLR (by OS) is known as Unmanaged Code.

Q.  What is Web server?

A: Web server is a communicator. It is the one that provides service to another applications.

Q. What is a session?

A: Session is a state that enables the user to store and retrieve the data with the HTTP Protocol.

Q. What is Access Specifier and What are the types of Access Specifiers?

A: Access Specifier: Access Specifier judge the scope of accessibility of an object. There are five types of Access Specifiers.

  1. Public: There is no restrictions to access. It Provides access to other functions and objects also.
  2. Private: The Scope or Accessibility is limited to the class or Structure in which they are declared.
  3. Protected: The Accessibility is limited to the class or struct and to the class which is derived from it.
  4. Internal: The scope accessibility within the program that contain its declarations and also access within the same assembly level but not from another assembly.
  5. Protected Internal : By combining both Protected and Internal we can define Protected Internal. That is the scope of accessibility will be anywhere in the same assembly and in the same class also the classes derived from the same class .

Q. What is ASP.NET Page Life Cycle? What are the events of Asp.Net Page Life Cycle?

A: When a Client system requested, then it loaded on the server, processes and then return back to the client browser. At this time of request so many events and objects are invoked, which could overridden according the request.


  1. PreInit.
  2. Init.
  3. InitComplete.
  4. PreLoad.
  5. Load.
  6. LoadComplete.
  7. PreRender.
  8. SaveStateComplete.

Q. What is SQL?

A: SQL is Structured Query Language. It is a Universal Database Language, protect of IBM.

Q. Write about SQL Sub languages?

A: There three sub languages in ADO.NET.

  1. DDL – Data Definition Language.
  2. DML – Data Manipulation Language.
  3. DRL – Data retrieve Language.

Q. Write the commands in ADO.NET?

A: There are totally 8 commands used in ADO.NET.

  1. DDL – Create, Alter, Drop, Truncate.
  2. DML – Insert, Update, Delete.
  3. DRL – Select.

Q. What is the difference between SQL and Oracle?

A: In SQL we create database and don’t have password. But in Oracle at the time data base creation password is must and administrator is responsible for that.

Q. Write the Syntax of all SQL Commands?

A: There 8 Commands in SQL.

1.Create :- Used for creating Database or Table.


i. Create Database Database Name (or)

ii. CREATE TABLE table_name( column1 datatype, column2 datatype, column3 datatype, ….. columnN                                                                                            datatype, PRIMARY KEY( one or more columns ) );

2.Alter:- Used for adding, deleting or modifying columns in an existing table.


i. ALTER TABLE table_name
ADD column_name datatype

ii. ALTER TABLE table_name
DROP COLUMN column_name

3.Drop:- Used for dropping the table along with the data.


Drop Table TableName

4.Truncate:- Used to delete complete data from the table.


Truncate Table Tablename.

5. Insert:- To add Values to the table we use Insert.


i. Insert into Table- Name Values (Value 1, Value 2,……….)

ii. Insert into Table- Name (column1, column2) values (Value1, Value2)

6. Update:- Used to updating the existing values in a particular row.


Update Table- Name Set Column 1 = New Vale Where Column Value = Old Value.

7. Delete:- Used to delete Particular row from a table.


Delete from Table – Name Where  Column = Value.

8. Select:- Used to retrieve the data or showing the data in table format.


i. Select *from table- name.

ii. Select column1, column2 from table-name.

iii. Select column1, column2 from table-name where column = value.

Q. What are Stored Procedures?

A: Stored Procedures are set of logically pre-compiled code. Created on a single table  when you perform an action. The performance is very high.


Create Stored Procedure Procedure Name


@id int,

@Name Varchar (50),

@Marks Int,

@Mobile Numb nchar(10),




insert into table-name values (id, name, marks, mobile numb)



Q. What is View?

A: View is a virtual table. A view contains rows and columns just like a real table. The fields in the view are fields from one or more real tables in the data base.


Create View Viewname As

Select Column – Name from Table Where Condition.


Create View Dot Net as select id-name from table where id = 1.

Q. What are structures? Write the syntax?

A: Structure is a value type data type. It helps you to make a single variable hold related data of various types. Structs are used to represent a record.


Struct Name




Class Program


Names Name 1;

Names Name 2;


Q. What are Constraints?

A: By using Constraints no need for triggers, rules or defaults, it automatically integrate the database.


  1. Primary Key :- Used for Uniquely identify. he primary key constraints are used to enforce entity integrity.
  2. Unique :- Used to set uniqueness values, no to duplicate values.
  3. Foreign Key :- It is used to refer one table value to another table. To Found the Foreign Key we must have two tables. One will be act as parent table and other will be acts as child table.
  4. Not Null :- Used to reject the Null values.  The not null constraints are used to enforce domain integrity, as the check constraints.
  5. Identity :- Creates an identity column in the table. It is used with CREATE TABLE and ALTER TABLE.

Q. What are Joins and mention the types of Joins?

A: Joins in SQL are used to combine records from one or more tables in the database.


  1. INNER JOIN: returns rows when there is a match in both tables.
  2. LEFT JOIN: returns all rows from the left table, even if there are no matches in the right table.
  3. RIGHT JOIN: returns all rows from the right table, even if there are no matches in the left table.
  4. FULL JOIN: returns rows when there is a match in one of the tables.
  5. SELF JOIN: is used to join a table to itself as if the table were two tables, temporarily renaming at least one table in the SQL statement.
  6. CARTESIAN JOIN: returns the Cartesian product of the sets of records from the two or more joined tables.

Here we updates the Latest DOT NET Interview questions for freshers. All DOT NET Interview questions posted here are updated based on the questions asked by the MNC and Level 3 companies. Our team collected these DOT NET Interview questions from the candidates who are facing interview in the January 2017. All these Latest DOT NET Interview Questions for freshers are suggested by the level 3 company professionals in the interview panel. www.360govtjobs.com updates all latest Government Jobs, Bank Jobs, Police Jobs, Interview questions. Now we have seen Latest DOT NET Interview Questions for freshers. So, I recommended you please go through the above latest DOT NET Interview questions for freshers and get qualifies for your job in your dream company.

Leave a Reply

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

360govtjobs | Latest Government Jobs © 2016-17 Frontier Theme