Dot Net

  Home  Microsoft .Net Technologies  Dot Net


“Learn Dot Net with hundreds of Dot Net Interview Questions and Answers”



116 Dot Net Questions And Answers

1⟩ What does mean by .NET framework?

The .NET Framework is an environment for building, deploying, and running Web Services and other applications. It consists of three main parts: the Common Language Runtime, the Framework classes, and ASP.NET

 150 views

2⟩ Difference between Class And Interface in .NET?

Class is logical representation of object. It is collection of data and related sub procedures with definition.

Interface is also a class containing methods which is not having any definitions.

Class does not support multiple inheritance. But interface can support

 152 views

3⟩ What is assembly in .NET?

It is a single deploy able unit that contains all the information about the implementation of classes , structures and interfaces

 161 views

4⟩ How is meant by DLL in .NET?

A DLL (Dynamic Link Library) in .NET is a file that can be loaded and executed by programs dynamically. Basically it’s an external code repository for programs. Since usually several different programs reuse the same DLL instead of having that code in their own file, this dramatically reduces required storage space. A synonym for a DLL would be library in .NET

 158 views

6⟩ Observations between VB.NET and VC#.NET?

Choosing a programming language depends on your language experience and the scope of the application you are building. While small applications are often created using only one language, it is not uncommon to develop large applications using multiple languages.

For example, if you are extending an application with existing XML Web services, you might use a scripting language with little or no programming effort. For client-server applications, you would probably choose the single language you are most comfortable with for the entire application. For new enterprise applications, where large teams of developers create components and services for deployment across multiple remote sites, the best choice might be to use several languages depending on developer skills and long-term maintenance expectations.

The .NET Platform programming languages - including Visual Basic .NET, Visual C#, and Visual C++ with managed extensions, and many other programming languages from various vendors - use .NET Framework services and features through a common set of unified classes. The .NET unified classes provide a consistent method of accessing the platform's functionality. If you learn to use the class library, you will find that all tasks follow the same uniform architecture. You no longer need to learn and master different API architectures to write your applications.

 146 views

7⟩ Advantages of migrating to VB.NET?

Visual Basic .NET has many new and improved language features — such as inheritance, interfaces, and overloading that make it a powerful object-oriented programming language. As a Visual Basic developer, you can now create multithreaded, scalable applications using explicit multithreading. Other new language features in Visual Basic .NET include structured exception handling, custom attributes, and common language specification (CLS) compliance.

The CLS is a set of rules that standardizes such things as data types and how objects are exposed and interoperate. Visual Basic .NET adds several features that take advantage of the CLS. Any CLS-compliant language can use the classes, objects, and components you create in Visual Basic .NET. And you, as a Visual Basic user, can access classes, components, and objects from other CLS-compliant programming languages without worrying about language-specific differences such as data types.

CLS features used by Visual Basic .NET programs include assemblies, namespaces, and attributes.

 158 views

8⟩ What are the advantages and drawbacks of using ADO.NET?

Pros

====

ADO.NET is rich with plenty of features that are bound to impress even the most skeptical of programmers. If this weren’t the case, Microsoft wouldn’t even be able to get anyone to use the Beta. What we’ve done here is come up with a short list of some of the more outstanding benefits to using the ADO.NET architecture and the System.Data namespace.

* Performance – there is no doubt that ADO.NET is extremely fast. The actual figures vary depending on who performed the test and which benchmark was being used, but ADO.NET performs much, much faster at the same tasks than its predecessor, ADO. Some of the reasons why ADO.NET is faster than ADO are discussed in the ADO versus ADO.NET section later in this chapter.

* Optimized SQL Provider – in addition to performing well under general circumstances, ADO.NET includes a SQL Server Data Provider that is highly optimized for interaction with SQL Server. It uses SQL Server’s own TDS (Tabular Data Stream) format for exchanging information. Without question, your SQL Server 7 and above data access operations will run blazingly fast utilizing this optimized Data Provider.

 162 views

9⟩ Advantages of VB.NET?

1. First of all, VB.NET provides managed code execution that runs under the Common Language Runtime (CLR), resulting in robust, stable and secure applications. All features of the .NET framework are readily available in VB.NET.

2. VB.NET is totally object oriented. This is a major addition that VB6 and other earlier releases didn't have.

3. The .NET framework comes with ADO.NET, which follows the disconnected paradigm, i.e. once the required records are fetched the connection no longer exists. It also retrieves the records that are expected to be accessed in the immediate future. This enhances Scalability of the application to a great extent.

4. VB.NET uses XML to transfer data between the various layers in the DNA Architecture i.e. data are passed as simple text strings.

5. Error handling has changed in VB.NET. A new Try-Catch-Finally block has been introduced to handle errors and exceptions as a unit, allowing appropriate action to be taken at the place the error occurred thus discouraging the use of ON ERROR GOTO statement. This again credits to the maintainability of the code.

 158 views

10⟩ What do you know about ADO.NET’s objects and methods?

ADO.NET provides consistent access to data sources such as Microsoft SQL Server, as well as data sources exposed through OLE DB and XML.

Data-sharing consumer applications can use ADO.NET to connect to these different data sources and retrieve, manipulate, and update data.

ADO.NET provides first-class support for the disconnected, n-tier programming environment for which many new applications are written.

 160 views

11⟩ .NET framework overview?

1. Has own class libraries. System is the main namespace and all other namespaces are subsets of this.

2. It has CLR(Common language runtime, Common type system, common language specification)

3. All the types are part of CTS and Object is the base class for all the types.

4. If a language said to be .net complaint, it should be compatible with CTS and CLS.

5. All the code compiled into an intermediate language by the .Net language compiler, which is nothing but an assembly.

6. During runtime, JIT of CLR picks the IL code and converts into PE machine code and from there it processes the request.

7. CTS, CLS, CLR

8. Garbage Collection

9. Dispose, finalize, suppress finalize, Idispose interface

10. Assemblies, Namespace: Assembly is a collection of class/namespaces. An assembly contains Manifest, Metadata, Resource files, IL code

11. Com interoperability, adding references, web references

12. Database connectivity and providers

 156 views

13⟩ Main differences between ASP and ASP.NET?

1. ASP: Code is Interpreted

ASP.NET: Code is Compiled

2. ASP: Business Logic and Presentation Logic are in a single file

ASP.NET: Business Logic and Presentation Logic are in separate files (.cs or .vb) and (.aspx) respectively.

3. ASP: No Web Server Controls

ASP.NET: Web Server Controls supported by strong .NET Framework

4. ASP: No RAD in Classic ASP

ASP.NET: Supports RAD

 163 views

15⟩ What is the base class of Button control in .NET?

Listing from visual studio .net > Button Class System.Object

System.MarshalByRefObject

System.ComponentModel.Component

System.Windows.Forms.Control

System.Windows.Forms.ButtonBase

System.Windows.Forms.Button

 156 views

16⟩ ASP.NET interview questions list only?

1. Describe the difference between a Thread and a Process?

2. What is a Windows Service and how does its lifecycle differ from a .standard. EXE?

3. What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?

4. What is the difference between an EXE and a DLL?

5. What is strong-typing versus weak-typing? Which is preferred? Why?

6. What.s wrong with a line like this? DateTime.Parse(myString

7. What are PDBs? Where must they be located for debugging to work?

8. What is cyclomatic complexity and why is it important?

9. Write a standard lock() plus double check to create a critical section around a variable access.

10. What is FullTrust? Do GAC’ed assemblies have FullTrust?

11. What benefit does your code receive if you decorate it with attributes demanding specific Security permissions?

12. What does this do? gacutil /l | find /i about

13. What does this do? sn -t foo.dll

14. What ports must be open for DCOM over a firewall? What is the purpose of Port 135?

15. Contrast OOP and SOA. What are tenets of each

16. How does the XmlSerializer work? What ACL permissions does a process using it require?

17. Why is catch(Exception) almost always a bad idea?

18. What is the difference between Debug.Write and Trace.Write? When should each be used?

 147 views

17⟩ What is serialization, how it works in .NET?

Serialization is when you persist the state of an object to a storage medium so an exact copy can be re-created at a later stage.

Serialization is used to save session state in ASP.NET.

Serialization is to copy objects to the Clipboard in Windows Forms

Serialization is used by remoting to pass objects by value from one application domain to another

 182 views

19⟩ What is .NET?

.NET is essentially a framework for software development.It is similar in nature to any other software development framework (J2EE etc) in that it provides a set of runtime containers/capabilities, and a rich set of pre-built functionality in the form of class libraries and APIs

The .NET Framework is an environment for building, deploying, and running Web Services and other applications. It consists of three main parts: the Common Language Runtime, the Framework classes, and ASP.NET.

 153 views