.Net Interview Questions
What is Common Language Runtime (CLR)? The CLR is a major component of the .NET framework. The Common Language Runtime is the engine that compiles the source code in to an intermediate language. It managed the execution of .net program code and provides services as memory and exception management,debugging and profiling, and security. What is the difference between ASP.NET and VB.NET? asp.net is simple a library that makes it easy for you to create web applications that run against the .NET runtime (similar to the java runtime). vb.net is a language that compiles against the common language runtime, like C#. Any .NET compliant language can use the asp.net libraries to create web applications. What is .net framework? A programming structure provide by microsoft for building , deploying and running applications . The .NET Framework contains three major parts:
Explain the differences between Server-side and Client-side code? Server side code get executed on the web server in the response of request for any aspx page where as client-side code get executed on the client browser . Difference between inline and code behind? Inline code is written with HTML code but code behind is written in seprate file. What is the difference between ASP and ASP.net
What is the sequence of event firing during page load of asp.net page life cycle?
What namespace does the Web page belong in the .NET Framework class hierarchy? System.Web.UI.Page What is the Global.asax used for? It is used to implement application and session level events. Whats an assembly? Assemblies are the building blocks of the .NET framework. Whats MSIL?
Which method do you invoke on the DataAdapter control to load your generated dataset with data? The Fill() method. Name two properties common in every validation control? ControlToValidate property and Text property. How many classes can a single .NET DLL contain? Many classes Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box? DataTextField property. Can you edit data in the Repeater control? No, it reads the info. from its data source. What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other? Server.Transfer transfers page processing from one page directly to the next page without making a round-trip back to the client's browser. This provides a faster response with a little less overhead on the server. Server.Transfer does not update the clients url history list or current url. Response.Redirect is used to redirect the user's browser to another page or site. This performas a trip back to the client where the client's browser is redirected to the new page. The user's browser history list is updated to reflect the new address. What data types do the RangeValidator control support?Integer, String, and Date What is bubbled event? When you have a complex control, like DataGrid, writing an event processing routine for each object is quite difficult. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents. What do you mean by Share Point Portal ? Here I have taken information regarding Share Point Portal Server 2003 provides mainly access to the crucial business information and applications.With the help of Share Point Server we can server information between Public Folders, Data Bases, File Servers and the websites that are based on Windows server 2003. This Share Point Portal is integrated with MSAccess and Windows servers,So we can get a Wide range of document management functionality. We can also create a full featured portal with readymade navigation and structure. How many types of cookies are there in .NET ? Two type of cookeies. a) single valued eg request.cookies(”UserName”).value=”dotnetquestion” b)Multivalued cookies. These are used in the way collections are used examplerequest.cookies(”CookiName”)(”UserName”)=”dotnetquestionMahesh”request.cookies(”CookiName”)(”UserID”)=”interview" What is different between WebUserControl and in WebCustomControl ? Web user controls :- Web User Control is Easier to create and another thing is that its support is limited for users who use a visual design tool one gud thing is that its contains static layout one more thing a seprate copy is required for each application. Web custom controls:-Web Custom Control is typical to create and gud for dynamic layout and another thing is it have full tool support for user and a single copy of control is required because it is placed in Global Assembly cache. What do you mean by three-tier architecture? The three-tier architecture was comes into existence to improve management of code and contents and to improve the performance of the web based applications. There are mainly three layers in three-tier architecture.the are define as follows (1)Presentation (2)Business Logic (3)Database (1)First layer Presentation contains mainly the interface code, and this is shown to user. This code could contain any technology that can be used on the client side like HTML, JavaScript or VBScript etc. (2)Second layer is Business Logic which contains all the code of the server-side .This layer have code to interact with database database and to query, manipulate, pass data to user interface and handle any input from the UI as well. (3)Third layer Data represents the data store like MS Access, SQL Server, an XML file, an Excel file or even a text file containing data also some addtional database are also added to that layers. What is Satellite Assemblies ? Satellite assemblies are often used to deploy language-specific resources for an application. These language-specific assemblies work in side-by-side execution because the application has a separate product ID for each language and installs satellite assemblies in a language-specific subdirectory for each language. When uninstalling, the application removes only the satellite assemblies associated with a given language and .NET Framework version. No core .NET Framework files are removed unless the last language for that .NET Framework version is being removed. For example, English and Japanese editions of the .NET Framework version 1.1 share the same core files. The Japanese .NET Framework version 1.1 adds satellite assemblies with localized resources in a \ja subdirectory. An application that supports the .NET Framework version 1.1, regardless of its language, always uses the same core runtime files. What is CAS ? CAS is the part of the .NET security model that determines whether or not a piece of code is allowed to run, and what resources it can use when it is running. For example, it is CAS that will prevent a .NET web applet from formatting your hard disk. How does CAS work? The CAS security policy revolves around two key concepts - code groups and permissions. Each .NET assembly is a member of a particular code group, and each code group is granted the permissions specified in a named permission set. For example, using the default security policy, a control downloaded from a web site belongs to the 'Zone - Internet' code group, which adheres to the permissions defined by the 'Internet' named permission set. (Naturally the 'Internet' named permission set represents a very restrictive range of permissions.) What’s a Windows process? It’s an application that’s running and had been allocated memory. Explain what relationship is between a Process, Application Domain, and Application? A process is an instance of a running application. An application is an executable on the hard drive or network. There can be numerous processes launched of the same application (5 copies of Word running), but 1 process can run just 1 application. What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services? Remoting is a more efficient communication exchange when you can control both ends of the application involved in the communication process. Web Services provide an open-protocol-based exchange of informaion. Web Services are best when you need to communicate with an external organization or another (non-.NET) technology. What are channels in .NET Remoting? Channels represent the objects that transfer the other serialized objects from one application domain to another and from one computer to another, as well as one process to another on the same box. A channel must exist before an object can be transferred. What is a formatter? A formatter is an object that is responsible for encoding and serializing data into messages on one end, and deserializing and decoding messages into data on the other end. How do you define the lease of the object? By implementing ILease interface when writing the class code. How can you automatically generate interface for the remotable object in .NET with Microsoft tools? Use the Soapsuds tool. Can you explain the difference between an ADO.NET Dataset and an ADO Recordset? A DataSet can represent an entire relational database in memory, complete with tables, relations, and views. · A DataSet is designed to work without any continuing connection to the original data source. · Data in a DataSet is bulk-loaded, rather than being loaded on demand. · There's no concept of cursor types in a DataSet. · DataSets have no current record pointer You can use For Each loops to move through the data. · You can store many edits in a DataSet, and write them to the original data source in a single operation. · Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources. Whats MSIL, and why should my developers need an appreciation of it if at all? MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL. |
0 comments:
Post a Comment