DOT NET Technical Interview Questions For Freshers

What is .NET Framework? .NET Framework is a complete environment that allows developers to develop, run, and deploy the following applicat...

What is .NET Framework?
.NET Framework is a complete environment that allows developers to develop, run, and deploy the following applications:
  • Console applications 
  • Windows Forms applications 
  • Windows Presentation Foundation (WPF) applications 
  • Web applications (ASP.NET applications) 
  • Web services 
  • Windows services 
  • Service-oriented applications using Windows Communication Foundation (WCF) 
  • Workflow-enabled applications using Windows Workflow Foundation (WF)

What is ASP?
Active Server Pages(ASP), also known as Classic ASP, is a Microsoft’s server side technology, which helps in creating dynamic and user friendly Web pages.It uses different scripting languages to create dynamic Web pages, which can be run on any type of browser.

What is ASP.NET?
ASP.NET is a specification developed by Microsoft to create dynamic Web applications, Web sites, and Web services. It is a part of .NET Framework. You can create ASP.NET applications in most of the .NET compatible languages, such as Visual Basic, C#, and J#.

Difference between ASP and ASP.NET?
The basic difference between ASP and ASP.NET is that ASP is interpreted; whereas, ASP.NET is compiled. This implies that since ASP uses VBScript; therefore, when an ASP page is executed, it is interpreted.ASP has Mixed HTML and coding logic.Limited OOPS support.On the other hand, ASP.NET uses .NET languages, such as C# and VB.NET, which are compiled to Microsoft Intermediate Language (MSIL).Variety of compilers and tools available including the Visual studio.Net.

What are the types of validation controls in ?
  • Required Field Validator 
  • Range Validator 
  • Compare Validator 
  • Regular Expression Validator 
  • Custom Validator 
  • Validation Summary
What is a namespace?
A namespace is a method of organizing a group of assemblies, classes, or types. A namespace acts as a container—like a disk folder—for classes organized into groups usually based on functionality. C# namespace syntax allows namespaces to be nested.

What are the namespaces In .NET ? 
  • System.Collections 
  • System.Data 
  • System.Diagnostics 
  • System.Drawing 
  • System.IO 
  • System.Net 
  • System.Reflection 
  • System.Runtime 
  • System.Security 
  • System.Threading 
  • System.Web 
  • System.Windows.Forms 
  • System.Xml
Define variable and constant.
A variable can be defined as a meaningful name that is given to a data storage location in the computer memory that contains a value. Every variable associated with a data type determines what type of value can be stored in the variable .
A constant is similar to a variable except that the value, which you assign to a constant, cannot be changed, as in case of a variable. Constants must be initialized at the same time they are declared.

What are the major built in objects in 
  • Application 
  • Request
  • Response 
  • Server 
  • Session 
  • Context 
  • Trace
what is Required Field Validator?
 It checks whether the control have any value. It is used when you want the control should not be empty.

What is Range Validator? 
It checks if the value in validated controls is in that specific range.

What is Compare Validator? 
It checks that the value in controls should match some specific value.

What is Regular Expression Validator?
When we want the control, value should match with a specific regular expression.

What is Custom Validator? 
It is used to define user defined validation.

Difference between ASP Session and ASP.NET Session? session supports cookie less session & it can span across multiple servers.

What is a PostBack? 
The process in which a Web page sends data back to the same page on the server.

What is AutoPostBack? 
If you want a control to postback automatically when an event is raised, you need to set the AutoPostBack property of the control to True.

What are the types of Cookies in 
There are two types of Cookies available in :
  • Session Cookie 
  • Persistent Cookie
What is the difference between Session cookie and Persistent cookie? 
Session cookie Resides on the client machine for a single session until the user does not log out. Persistent cookieResides on a user’s machine for a period specified for its expiry, such as 10 days, one month and never. The user can set this period manually.

What is ViewState?
ViewState is a .Net mechanism to store the posted data among post backs. ViewState 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.

What is the difference between Authentication and Authorization?
Authentication is the process of identifying users.Authentication is identifying/validating the user against the credentials (username and password) and Authorization performs after authentication.
Authorization is the process of granting access to those users based on identity. Authorization allowing access of specific resource to user.

what is the difference between Server-side and client-side code?
Server side code is executed at the server side on IIS in Asp.NET framework, while client side code is executed on the browser.

What is the default timeout for a cookie?
The default time duration for a cookie is 30 minutes.

What are the components of web form in ASP.NET? 
  • HTML controls 
  • Server controls 
  • System components. 
  • Data controls
How do you create a permanent cookie?
Setting the Expires property to MinValue means that the Cookie never expires.

What is the difference between a Web Service and a Web server? 
Web Service uses custom code to provide functions to client programs located somewhere on the Internet. A Web server listens for Internet requests, such as HTTP or SOAP requests, and responds with files. Most Web Services use a Web server to "feed" them with requests from clients and to "push" data back to client programs.

What is a Session and Application object?
Session object store information between HTTP requests for a particular user, while application object are global across users.

What method is used to bind data items to an ASP.NET Web control? 
The DataBinder.Eval method binds data items to ASP.NET Web controls

What are the types of ASP Objects? 
  • Session Object
  • Application Object 
  • Server Object 
  • Request Object 
  • Response Object 
  • Object Context 
  • Error Object
What is Marshaling?
Marshaling is used when an object is converted so that it can be sent across the networks or across applications domains.

What is datagrid?
The DataGrid Web server control is a powerful tool for displaying information from a data source. It is easy to use; you can display editable data in a professional-looking grid by setting only a few properties. At the same time, the grid has a sophisticated object model that provides you with great flexibility in how you display the data.

What are the different types of Caching? 
Output Caching : stores the responses from an page.
Fragment Caching : Only caches/stores the portion of page (User Control)
Data Caching : is Programmatic way to Cache objects for performance.

What is the difference between a Thread and a Process? 
A thread is a path of execution that run on CPU, a proccess is a collection of threads that share the same virtual memory.
A process have at least one thread of execution, and a thread always run in a process context.

What is the base class of 

 Define Client Activated Object(SAO)? 
The creation request is sent from the client side.Client holds a proxy to the server object created on serve 

What is Common Language Runtime? 
CLR also known as Common Language Run time provides a environment in which program are executed, it activate object, perform security check on them, lay them out in the memory, execute them and garbage collect them.

What is the difference between early binding and late binding? 
Calling a non-virtual method, decided at a compile time is known as early binding. Calling a virtual method (Pure Polymorphism), decided at a runtime is known as late binding

What are Cascading style sheets ?
Cascading style sheets (CSS) collect and organize all of the formatting information applied to HTML elements on a Web form. Because they keep this information in a single location, style sheets make it easy to adjust the appearance of Web applications.


Interview Questions 4898010157279453115

Post a Comment


Follow Us

Hot in week



Side Ads