.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

Differences between DLL and EXE?

Posted By :Ravi Ranjan Kumar     Posted Date :July 31, 2011    Points :40   Category :.NET Framework 
Both files are PE files.
Both contain the exact same layout.

DLL

a) A DLL is a library and therefore can not be executed. If you try to run it you'll get an error about a missing entry point.
b) DLLs have an export section where symbols are exported.
c) These are inbund file
d) Many .dll files may exists in one application

Exe

a) An EXE is a program that can be executed. It has an entry point. b) A flag inside the PE header indicates which file type it is (irrelevant of file extension).
c) EXEs should never have an export section since they aren't libraries but nothing prevents that from happening.
d) These are outbound file.
e) Only one .exe file exists per application.

You can also find related Interview Question to Differences between DLL and EXE?  below: 

What is the differences between delegates and interfaces?

  
Interfaces carry semantics, and when a programmer implements an interface, he is typically well aware of that semantics. When you try to invoke a particular method via an interface, you can be fairly certain that if you succeed, the semantics of that method is what you expect. For that reason, using interfaces is essentially doing a check for semantic correctness on some level.


Delegates, on the other hand, by only verifying the method signature, make the programmer responsible for ensuring that the semantics of the method is compatible. The semantics may cover not only the meaning of the arguments and return value (some times even the order of the arguments if they are of the same type), the ranges of the arguments, but also an invocation order when multiple methods are concerned. Hence, in a sufficiently large program there is plenty of margin to make an error when different programmers are not forced to comply with a uniform semantics (as they would be if interfaces were used). (More...)

Differences between application and session.

  
The session object maintains state on a per client basis whereas the application object is on a per application basis and is consistent across all client requests. (More...)

What are the differences among batches, stored procedures, and triggers?

  

Batch:
------
A batch is a group of one or more SQL statements. SQL Server compiles the statements of a batch into a single executable unit, called an execution plan. The statements in the execution plan are then executed one at a time.

stored procedure :
------------------
A stored procedure is a group of SQL statements that is compiled one time and can then be executed many times.

trigger:
--------
A trigger is a special type of stored procedure that is not called directly. Trigger is fired each time row is affected by Insert, Update or Delete command.


(More...)

What are the differences between web part page gallery, site gallery,Virtual server gallery and online gallery in SharePoint?

  
Web Part Page Gallery in SharePoint is the default gallery provided by Microsoft that comes installed with SharePoint. Site Gallery is specific to one sharepoint website site. Virtual Server gallery is specific to that virtual server and online gallery is available for download web parts from MSDN. (More...)

Explain differences between the page execution lifecycle of an ASP.NET page and an ASP.NET AJAX page?

  
In an asynchronous model, all the server side events occur, as they do in a synchronous model. The Microsoft AJAX Library also raises client side events. However when the page is rendered, asynchronous postback renders only the contents of the update panel, where as in a synchronous postback, the entire page is recreated and sent back to the browser. (More...)

What is differences between bool & boolean?

  
The bool keyword is an alias of System.Boolean. (More...)

what are the differences between Datalist DataGrid and datarepeater ?

  
DataList
*Has table appearence by default
*Has no autoformat option
*has no default paging & sorting options
*can define separators between elements using template
DataGrid
*Has a grid appearence by default
*has a autoformat option
*has default paging and sorting
*has no separator between elements
DataRepeater
simple,read-only output, has no built in support for selecting or editing items, has no DEFAULT APPEARENCE,
has no default paging. (More...)

What are the differences between ADO and ADO.NET?

  
ADO relied on a connection based model. In the connected approach, the client had to be connected with the server and remain connected till the whole procedure or transaction was completed. Time resources and bandwidth became major constraints on such architecture.

To solve this problem the latter version of ADO used RecordSet. All the contents from the data source were copied into RecordSet. This allows clients to get disconnected from the server, work on the RecordSet and copy the changes back to the data source again. This approach did not succeed much because it requires COM marshalling to transmit disconnected data, it support only those datatypes that were defined by the COM standards and hence required type conversion.

ADO.NET can be used to access data sources using new .NET data providers as well as existing OLEDB data providers using the OLEDB.NET data provider. (More...)

What is fixed-length & variable-length characters? Tell me their differences??

  
In Sql Server there are two types of character data types. They are

1.fixed-length (i.e char)
2.variable-length (i.e varchar)

The main differences are maximum length and in whether trailing spaces are retained (More...)

What are all the differences between http and https?

  
The "S" in HTTPS indicates a secure site. The server browser communication is unsecured in ordinary http where as in https, it needs to be secured in order to prevent unauthorized access.

HTTP is Hyper Text Transport Protocol and is transmitted over the wire via PORT 80(TCP) by default and it is not secured.

HTTPS (Hypertext Transfer Protocol over Secure Socket Layer, or HTTP over SSL) is a Web protocol developed by Netscape and built into its browser that encrypts and decrypts user page requests as well as the pages that are returned by the Web server. (More...)

differences between stored procedures and functions:

  
Functions
----------
1) can be used with Select statement
2) Not returning output parameter but returns Table variables
3) You can join UDF
4) Cannot be used to change server configuration
5) Cannot be used with XML FOR clause
6) Cannot have transaction within function

Stored Procedure
-----------------
1) have to use EXEC or EXECUTE
2) return output parameter
3) can create table but won't return Table Variables
4) you can not join SP
5) can be used to change server configuration
6) can be used with XML FOR Clause
7) can have transaction within SP (More...)

Differences between Windows And Console Application?

  
http://www.dotnetspark.com/Forum/42-diff-bw-console-application-and-windows.aspx (More...)

Differences between Truncate and Delete?

  
Delete Vs Truncate:
-------------------------------------------------------------------
Delete ===================================================================
1)Delete is a DML Command
2)Delete Command delete only
Rows from the table but the Schema(structure)remains itself
3)Where clause is used to delete Command

4)It is slow When compare to Truncate

Truncate
===============================================================
A) Truncate is a DDL Command
B)It deletes Both rows And Schema...
C)Truncate Will Execute Without using where clause
D)It executed faster than delete


(More...)

Differences between Array And array list?

  
Array:
--------------------------------------------------------------
1)It is used when same datatypes r having
2)I's mainly for static list
3)Array can accesses by using Indexes


Array List:
--------------------------------------------------------------
1)It is used when poly datatypes r having
2)I's mainly for dynamic list
3)Array can accesses by using keys
(More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend