Dot NET Interview Questions
Dot NET Interview Questions
cc 1
What is .net
.Net is the Development Platform which provides advanced feature facilities for the web and
window application along with the window services . The .Net is the Middle layer between the
operating System and the .Net application .The feature of .Net that the .Net Component can talk
with each other without worrying about the language in which they are originally.. Two main
components are CLR stands for the common Language Runtime and the .Net FrameWork Base
classes. The CLR performs the task of converting the IL to native code Which gives the .Net
applications to be language Independent . The Other component Like .Net FramwWork Base
Classes act as services to be provided to the .Net applications.
Where as C# is a console
eg:
the code to invoke the default font dialog box by using the FontDialog control is given below:
fontdialog.showDialog()
textbox1.font=fontdialog1.font
end sub
the code to invoke the default font dialog box by instantiating the fontdialog class is:
www.ursarjun.co.cc 2
fdialog.showDialog()
textbox1.font=fontdialog1.font
end sub
Unlike VB6; .net does not require to generate GUID for the dll’s. The dll’s are hosted thru
applications ,IIS or windows services. These things internally refer to the physical locations of the
file thus even if the dll is updated with certain functionalities the older application can still refer to
the previous version of the Dll.
the settings made in the web.config file are applied to that particular web application only whereas
the settings of machine.config file are applied to the whole asp.net application.
Whats the difference bt. .dll extension and .exe extension files?
.dll is the In process component where it take up the client’s memory space to run. So the
communication between the application and component(dll) is very fast.
.EXE is the Out of process component. It uses its own memory(not application memory) to run the
component. The communication between the application and component is slow when compared to
.dll
It Supports all classes in the .NET Framework class hierarchy and provides low-level services to
derived classes. This is the ultimate superclass of all classes in the .NET Framework; it is the root
of the type hierarchy.
How to store and retrieve images in sql server database through VB.NET
SQL Server supports the ability for clients to store objects within tables
A jagged array is really an array of arrays. To create a jagged array, you declare the array of
arrays with multiple sets of parentheses or brackets and indicate the size of the jagged array in
the first set of brackets (parentheses).
Option Strict
Visual Basic language in general does not require explicit syntax to be used when performing
operations that might not be optimally efficient (e.g. late binding) or that might fail at run time
(e.g. narrowing conversions). This permissive semantics often prevents detection of coding errors
and also affects the performance of the application.
VB.NET enables a programmer to enforce strict semantics by setting this option to “On”. When
used, this option should appear before any other code. This option can be set to “On” or “Off”. If
this statement is not specified, by default, it is set to “Off”.
www.ursarjun.co.cc 4
Visual Basic .NET allows implicit conversions of any data type to any other data type. However,
data loss can occur if the value of one data type is converted to a data type with less precision or a
smaller capacity. Setting this option to “On” ensures compile-time notification of these types of
conversions so they may be avoided.