MVC Chinmaya1 2
MVC Chinmaya1 2
NET is an integral part of many applications running on Windows and provides common
functionality for those applications to run. This download is for people who need .NET to run an
application on their computer. For developers, the .NET Framework provides a comprehensive and
consistent programming model for building applications that have visually stunning user
experiences and seamless and secure communication.
3. What is an IL?
Intermediate Language is also known as MSIL (Microsoft Intermediate Language) or CIL (Common
Intermediate Language). All .NET source code is compiled to IL. IL is then converted to machine
code at the point where the software is installed, or at run-time by a Just-In-Time (JIT) compiler.
Code access security (CAS) is part of the .NET security model that prevents unauthorized access of
resources and operations, and restricts the code to perform particular tasks.
The .NET Framework is shipped with compilers of all .NET programming languages to develop
programs. There are separate compilers for the Visual Basic, C#, and Visual C++ programming
languages in .NET Framework. Each .NET compiler produces an intermediate code after compiling
the source code. The intermediate code is common for all languages and is understandable only to
.NET environment. This intermediate code is known as MSIL.
Managed extensibility framework (MEF) is a new library that is introduced as a part of .NET 4.0
and Silverlight 4. It helps in extending your application by providing greater reuse of applications
and components. MEF provides a way for host application to consume external extensions without
any configuration requirement.
There is no difference between int and int32. System.Int32 is a .NET Class and int is an alias name
for System.Int32.
Tuple is a fixed-size collection that can have elements of either same or different data types.
Similar to arrays, a user must have to specify the size of a tuple at the time of declaration. Tuples
are allowed to hold up from 1 to 8 elements and if there are more than 8 elements, then the 8th
element can be defined as another tuple. Tuples can be specified as parameter or return type of a
method.
Object pooling is a concept of storing a pool (group) of objects in memory that can be reused later
as needed. Whenever, a new object is required to create, an object from the pool can be allocated
for this request; thereby, minimizing the object creation. A pool can also refer to a group of
connections and threads. Pooling, therefore, helps in minimizing the use of system resources,
improves system scalability, and performance.
15. Mention the namespace that is used to include .NET Data Provider for SQL server in
.NET code.
The System.Data.SqlClient namespace.
One of the major component of ADO.NET is the DataSet object, which always remains
disconnected from the database and reduces the load on the database.
The IsClosed property is used to check whether a DataReader is closed or opened. This property
returns a true value if a Data Reader is closed, otherwise a false value is returned.
19. Name the method that needs to be invoked on the DataAdapter control to fill the
generated DataSet with data?
There must be multiple processes to share the same connection describing the same parameters
and security settings. The connection string must be identical.
21. Which adapter should you use, if you want to get the data from an Access database?
22. What are different types of authentication techniques that are used in connection
strings to connect .NET applications with Microsoft SQL Server?
23. What are the parameters that control most of connection pooling behaviors?
Connect Timeout
Max Pool Size
Min Pool Size
Pooling
24. What is AutoPostBack?
If you want a control to postback automatically when an event is raised, you need to set the
AutoPostBack property of the control to True.
The ASP.NET 4.0 introduced a new property called ViewStateMode for the Control class. Now you
can enable the view state to an individual control even if the view state for an ASP.NET page is
disabled.
The DataSource property and the DataMember property are used to bind a DataGridView control.
The basic difference between ASP and ASP.NET is that ASP is interpreted; whereas, ASP.NET is
compiled. This implies that since ASP uses VBScript; therefore, when an ASP page is executed, it is
interpreted. On the other hand, ASP.NET uses .NET languages, such as C# and VB.NET, which are
compiled to Microsoft Intermediate Language (MSIL).
Page load event guarantees that all controls are fully loaded. Controls are also accessed in
Page_Init events but you will see that view state is not fully loaded during this event
Page object has an "IsPostBack" property, which can be checked to know that is the page posted
back.
The System.Web.Ul.Control class is the parent class for all Web server controls.
i)Makes code easy to understand and debug by separating application logic from HTML tags
ii)Provides the isolation of effort between graphic designers and software engineers
iii)Removes the problems of browser incompatibility by providing code files to exist on the Web
server and supporting Web pages to be compiled on demand.
34. How can you register a custom server control to a Web page?
You can register a custom server control to a Web page using the @Register directive.
35. Which ASP.NET objects encapsulate the state of the client and the browser?
The Session object encapsulates the state of the client and browser.
The globalization is a technique to identify the specific part of a Web application that is different
for different languages and make separate that portion from the core of the Web application. The
localization is a procedure of configuring a Web application to be supported for a specific language
or locale.
The ViewState is a feature used by ASP.NET Web page to store the value of a page and its controls
just before posting the page. Once the page is posted, the first task by the page processing is to
restore the ViewState to get the values of the controls.
38. Which method is used to force all the validation controls to run?
The Page.Validate() method is used to force all the validation controls to run and to perform
validation.
Orientation property of the Menu control sets the horizontal or vertical display of a menu on a Web
page. By default, the orientation is vertical.
Authentication is the process of validating a user on the credentials(username and password) and
authorization performs after authentication. After Authentication a user will be verified for
performing the various tasks, It access is limited it is known as authorization.
The file format used for executable programs and for files to be linked together to form executable
programs
.exe
.dll
1.These are inbound file .
2.Many .dll files may exists in one application.
3. .dll can be shared with other applications.
Shadowing is either through scope or through inheritance. Shadowing through inheritance is hiding
a method of a base class and providing a new implementation for the same. This is the default
when a derived class writes an implementation of a method of base class which is not declared as
overridden in the base class. This also serves the purpose of protecting an implementation of a
new method against subsequent addition of a method with the same name in the base
class.’shadows’ keyword is recommended although not necessary since it is the default.
An override method provides a new implementation of a member inherited from a base class. The
method overridden by an override declaration is known as the overridden base method. The
overridden base method must have the same signature as the override method.
Use the override modifier to modify a method, a property, an indexer, or an event. You cannot
override a non-virtual or static method. The overridden base method must be virtual, abstract, or
override.
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.
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 cross-
language integration, cross-language exception handling, enhanced security, versioning and
deployment support, a simplified model for component interaction, and debugging and profiling
services.
Assemblies are the building blocks of .NET Framework applications; they form the fundamental
unit of deployment, version control, reuse, activation scoping, and security permissions. An
assembly is a collection of types and resources that are built to work together and form a logical
unit of functionality. An assembly provides the common language runtime with the information it
needs to be aware of type implementations. To the runtime, a type does not exist outside the
context of an assembly.
Setting the Expires property to MinValue means that the Cookie never expires.
Windows process is an application that’s running and had been allocated memory in .NET
54. What is Delegation in .NET?
A delegate acts like a strongly type function pointer. Delegates can invoke the methods that they
reference without making explicit calls to those methods.
Delegate is an entity that is entrusted with the task of representation, assign or passing on
information. In code sense, it means a Delegate is entrusted with a Method to report information
back to it when a certain task (which the Method expects) is accomplished outside the Method's
class.
The serialization is the process of converting the objects into stream of bytes.
they or used for transport the objects(via remoting) and persist objects(via files and databases)
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
An object that either is serializable or has a TypeConverter defined for it can be persisted in
ViewState.
The ErrorProvider control is used to indicate invalid data on a data entry form. Using this control,
you can attach error messages that display next to the control when the data is invalid, as seen in
the following image. A red circle with an exclamation point blinks, and when the user mouses over
the icon, the error message is displayed as a tooltip.
Using special validation controls that are meant for validation of any controle.
We have Range Validator, Email Validator in .NET to validate any control.
Using pagination option in DataGrid control is available in .NET. We have to set the number of
records for a page, then it takes care of pagination by itself automatically.