Anda di halaman 1dari 6

www.fresherschoice.

com

DOT NET INTERVIEW QUESTIONS AND ANSWERS


What is the purpose of DOTNET? Dot Net Is a collection of products like C#, ASp.Net, Vb.Net, XML. The purpose of .Net is that we can easily upgrade and degrade our programs which is written in Microsoft visual studio program. It provides user friendly environment. What is the difference between the C#.NET and VB.NET? VB.NET - It didn't have the XML Documentation. - It didn't have the Operator Overloading. - It didn't have the Pointer Type variables. C#.NET - It has XML Documentation, Operator Overloading and supports Pointer Variables using unsafe Keyword How does VB.NET/C# achieve polymorphism? VB.Net / C# provide polymorphism through the following mechanisms: 1. Inheritance - base class provides overridable methods which are re-implemented in derived classes. 2. Interface - different class can implement same interface, resulting in different implementations of interface methods. 3. Virtual methods - achieve runtime polymorphism. What is .NET / .NET Framework? It is a Framework in which Windows applications may be developed and run. The Microsoft .NET Framework is a platform for building, deploying, and running Web Services and applications. It provides a highly productive, standards-based, multi-language environment for integrating existing investments with next-generation applications and services as well as the agility to solve the challenges of deployment and operation of Internet-scale applications. The .NET Framework consists of three main parts: the common language runtime, a hierarchical set of unified class libraries, and a componentized version of Active Server Pages called ASP.NET. The .NET Framework provides a new programming model and rich set of classes designed to simplify application development for Windows, the Web, and mobile devices. It provides full support for XML Web services, contains robust security features, and delivers new levels of programming power. The .NET Framework is used by all Microsoft languages including Visual C#, Visual J#, and Visual C++.
www.fresherschoice.com

www.fresherschoice.com

How do you turn off cookies for one page in your site? Use the Cookie. Discard Property which Gets or sets the discard flag set by the server. When true, this property instructs the client application not to save the Cookie on the users hard disk when a session ends. Or it can be turned off by mentioning cookie state= false in web.config file What is difference between dataset and data reader? Following are some major differences between dataset and data reader:Data Reader provides forward-only and read-only access to data, while the Dataset object can hold more than one table (in other words more than one row set) from the same data source as well as the relationships between them. Dataset is a disconnected architecture while data reader is connected architecture. Dataset can persist contents while data reader cannot persist contents, they are forward only. With respect to security, which one is the better choice?.Net or J2EE? Explain? As per majority programmers .NET is the best one which have single vendor compare to, the ease of use, more use friendly, you can send any problem ,it'll be solved. Differences between dataset.clone and dataset.copy? Clone - Copies the structure of the DataSet, including all DataTable schemas, relations, and constraints. Does not copy any data. Copy - Copies both the structure and data for this DataSet. What is strong name? A name that consists of an assembly's identityits simple text name, version number, and culture information (if provided)strengthened by a public key and a digital signature generated over the assembly. What is the managed and unmanaged code in .net? The .NET Framework provides a run-time environment called the Common Language Runtime, which manages the execution of code and provides services that make the development process easier. Compilers and tools expose the runtime's functionality and enable you to write code that benefits from this managed execution environment. Code that you develop with a language compiler that targets the runtime is called managed code; it benefits from features such as crosslanguage integration, cross-language exception handling, enhanced security, versioning and deployment support, a simplified model for component interaction, and debugging and profiling services.
www.fresherschoice.com

www.fresherschoice.com

What is the namespace threading in .net? System.Threading.Thread How to encode string string ss="pervej"; string encode=Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(ss)); Response.Write(encode); Can you use multiple inheritance in .NET? .NET supports only single inheritance. However the purpose is accomplished using multiple interfaces. Why dont we have multiple inheritance in .NET? There are several reasons for this. In simple words, the efforts are more, benefits are less. Different languages have different implementation requirements of multiple inheritance. So in order to implement multiple inheritance, we need to study the implementation aspects of all the languages that are CLR compliant and then implement a common methodology of implementing it. This is too much of efforts. Moreover multiple interface inheritance very much covers the benefits that multiple inheritance has.

What is the Microsoft.NET? .NET is a set of technologies designed to transform the internet into a full scale distributed platform. It provides new ways of connecting systems, information and devices through a collection of web services. It also provides a language independent, consistent programming model across all tiers of an application. The goal of the .NET platform is to simplify web development by providing all of the tools and technologies that one needs to build distributed web applications.

What is the .NET Framework? The .NET Framework is set of technologies that form an integral part of the .NET Platform. It is Microsoft's managed code programming model for building applications that have visually stunning user experiences, seamless and secure communication, and the ability to model a range of business processes. The .NET Framework has two main components: the common language runtime (CLR) and .NET Framework class library. The CLR is the foundation of the .NET framework and provides a common set of services for projects that act as building blocks to build up applications across all tiers. It simplifies development and provides a robust and simplified environment which provides common services to build application.
www.fresherschoice.com

www.fresherschoice.com

What is CLR? The .NET Framework provides a runtime environment called the Common Language Runtime or CLR. The CLR can be compared to the Java Virtual Machine or JVM in Java. CLR handles the execution of code and provides useful services for the implementation of the program. In addition to executing code, CLR provides services such as memory management, thread management, security management, code verification, compilation, and other system services. It enforces rules that in turn provide a robust and secure execution environment for .NET applications. What is CLS? Common Language Specification (CLS) defines the rules and standards to which languages must adhere to in order to be compatible with other .NET languages. This enables C# developers to inherit from classes defined in VB.NET or other .NET compatible languages.

What is managed code? The .NET Framework provides a run-time environment called the Common Language Runtime, which manages the execution of code and provides services that make the development process easier. Compilers and tools expose the runtime's functionality and enable you to write code that benefits from this managed execution environment. The code that runs within the common language runtime is called managed code.

What Is The Difference Between ViewState and SessionState? View State persist the values of controls of particular page in the client (browser) when post back operation done. When user requests another page previous page data no longer available. SessionState persist the data of particular user in the server. This data available till user close the browser or session time completes. Can a .NET web application consume Java web service? Yes Offcourse.Actually Webservices are independent to language. it depends on WSDL and SOAP. so any one can develope the Webservices anddisclose the wsdl and users can consume the webservices.wsdl and soap both are xml based.. and all languages having xml parsing capability and access to http protocol will be able to work with Webservices.

www.fresherschoice.com

www.fresherschoice.com

What is Windows Workflow Foundation (WF)? Windows Workflow Foundation (WF) is a technology that was first introduced in .NET Framework 3.0. WF consists of a programming model, a workflow runtime engine, workflow designer, a rules engine, and tools to quickly build workflow-based applications on Windows. WF facilitates the separation between the business process code and the actual implementation code. What is a workflow? A workflow is a collection of actions (called activities) that presents the model of a process. A workflow provides a way to describe the order of the execution of a long running process and relationships between different activities. Multiple instances of a workflow may be active at any given moment in an application.

What are the different types of workflow in WF? In WF 4.0, the following two types of workflows are used: Flowchart workflows - Helps you to create workflows using the common flowchart elements. In WF, the Flowchart activity is generally used to implement a nonsequential workflow, and occasionally it implements sequential workflows in case the Flow Decision nodes are not used. The Flowchart activity contains a collection of flow nodes, which inherit from the Flow Node class. The following types of nodes or elements can be a part of a flowchart: FlowStep - Executes activities of a flowchart in a sequence. FlowDecision - Shows the execution on the basis of a Boolean condition. It is similar to the If construct. FlowSwitch - Shows the execution on the basis of an exclusive switch. It is similar to the Switch construct. Procedural workflows - Helps you to create workflows using basic and sequential execution standards. In WF, procedural workflows use flow control constructs, such as While, Switch, ForEach, and If, to execute activities. These flow control constructs are similar to those found in procedural languages. Procedural workflows can also contain other flow control activities, such as Flowchart and Sequence.
www.fresherschoice.com

www.fresherschoice.com

What are the four workflow principles? According to Microsoft, there are four major principles that explain the behavior and working of workflows. Developers can use these principles while developing workflowbased applications. The four principles are as follows: Workflows help in coordinating the work performed by people and software. Workflows are long-running and stateful. Workflows are based on extensible models. Workflows remain transparent and dynamic throughout their lifecycle. What is a host process? A host process is an executable program that hosts a workflow. It may be a Windows Forms application, a Web application, or a Web service application. You can use Web services in the host process or remoting to enable other applications to communicate with the workflow.

www.fresherschoice.com

Anda mungkin juga menyukai