Professional Documents
Culture Documents
(CLR): The execution process that includes the creation of the MSIL and the conversion of the
MSIL into machine code by the JIT compiler.
The Framework Class Library or FCL provides the system functionality in the .NET Framework as
it has various classes, data types, interfaces, etc. to perform multiple functions and build
different types of applications such as desktop applications, web applications, mobile
applications, etc.
a) The Common Language Runtime (CLR) is programming that manages the execution of programs
written in any of several supported languages, allowing them to share common object-oriented
classes written in any of the languages. It is a part of Microsoft's .NET Framework. The CLR is
somewhat comparable to the Java virtual machine that Sun Microsystems provides for running
programs compiled from the Java language. Microsoft refers to its CLR as a "managed execution
environment." A program compiled for the CLR does not need a language-specific execution
environment and can easily be moved to and run on any system with Windows 2000 or
Windows XP.
b) The Framework class library (FCL) is a comprehensive collection of reusable types including
classes, interfaces and data types included in the .NET Framework to provide access to system
functionality.
The .NET FCL forms the base on which applications, controls and components are built in .NET. It
can be used for developing applications such as console applications, Windows GUI applications,
ASP.NET applications, Windows and Web services, workflow-enabled applications, service
oriented applications using Windows Communication, XML Web services, etc.
8.Explain JIT Compiler
Just-In-Time compiler(JIT) is a part of Common Language Runtime (CLR) in .NET which is responsible for
managing the execution of .NET programs regardless of any .NET programming language. A language-
specific compiler converts the source code to the intermediate language. This intermediate language is
then converted into the machine code by the Just-In-Time (JIT) compiler. This machine code is specific to
the computer environment that the JIT compiler runs on.
Data
Type Size Range
Name The Name property is used to set the name of the control.
Enabled The Enables property is used to enable or disable the timer control. By default, it is True.
Interval An Interval property is used to set or obtain the iteration interval in milliseconds to raise the
timer control's elapsed event. According to the interval, a timer repeats the task.
Events Events properties are used to get the list of event handler that is associated with Event
Component.
CanRaiseEven It is used to get a value that represents whether the component can raise an event.
ts
1 CancelButton The button that's automatically activated when you hit the Esc key.
Usually, the Cancel button on a form is set as CancelButton for a form.
3 AutoScrollMinSize This property lets you specify the minimum size of the form, before the scroll
bars are attached.
4 AutoScrollPosition The AutoScrollPosition is the number of pixels by which the two scroll bars were
displaced from their initial locations.
1 Activate
Activates the form and gives it focus.
2 ActivateMdiChild
Activates the MDI child of a form.
3 AddOwnedForm
Adds an owned form to this form.
18.Exception Handling
A C++ exception is a response to an exceptional circumstance that arises while a program is running,
such as an attempt to divide by zero.
Exceptions provide a way to transfer control from one part of a program to another. C++ exception
handling is built upon three keywords: try, catch, and throw.
•throw − A program throws an exception when a problem shows up. This is done using a throw
keyword.
•catch − A program catches an exception with an exception handler at the place in a program where you
want to handle the problem. The catch keyword indicates the catching of an exception.
•try − A try block identifies a block of code for which particular exceptions will be activated. It's followed
by one or more catch blocks.
Assuming a block will raise an exception, a method catches an exception using a combination of the try
and catch keywords. A try/catch block is placed around the code that might generate an exception.
22.Validation Controls
An important aspect of creating ASP.NET Web pages for user input is to be able to check that the
information users enter is valid. ASP.NET provides a set of validation controls that provide an easy-
to-use but powerful way to check for errors and, if necessary, display messages to the user.
There are six types of validation controls in ASP.NET
1. RequiredFieldValidation Control
2. CompareValidator Control
3. RangeValidator Control
4. RegularExpressionValidator Control
5. CustomValidator Control
6. ValidationSummary
7. The below table describes the controls and their work.
29.Define Generic
A generic type is a single programming element that adapts to perform the same functionality for a variety of
data types. When you define a generic class or procedure, you do not have to define a separate version for
each data type for which you might want to perform that functionality.
32.Define ASP.NET
ASP.NET is a web development platform, which provides a programming model, a comprehensive software
infrastructure and various services required to build up robust web applications for PC, as well as mobile
devices.
33.Define SQL
Basically, SQL stands for Structured Query Language which is basically a language used by databases. This
language allows to handle the information using tables and shows a language to query these tables and other
objects related (views, functions, procedures, etc.). Most of the databases like SQL Server, Oracle, PostgreSQL,
MySQL, MariaDB handle this language (with some extensions and variations) to handle the data.
34.Define XML
XML stands for extensible markup language. A markup language is a set of codes, or tags, that describes the
text in a digital document. The most famous markup language is hypertext markup language (HTML), which is
used to format Web pages.
Control Description
Statement
Continue Causes the loop to skip the remainder of its body and immediately retest its
statement condition prior to reiterating.
GoTo statement Transfers control to the labeled statement. Though it is not advised to use
GoTo statement in your program.
36.Explain Navigation Controls
Basically ASP.NET 2.0 has three navigation controls:
(1) Dynamic menus: It was the very difficult task to maintain the menu of a large website and time
consuming. It is used to display the Menus. You can use it as easy as other Navigation controls.
(2) Tree Views: A Tree View control displays a hierarchical list of items using lines to connect related items in
a hierarchy. Each item consists of a label and an optional bitmap.
(3) Site Map Path: Use of this control is very simple. You can add this control to your page then view your
page in browser. The Sitemap Path control displays the navigation path of the current page
37.Explain LINQ
LINQ is a data querying API that provides querying capabilities to . NET languages with a syntax similar to a SQL.
LINQ queries use C# collections to return data. LINQ in C# is used to work with data access from sources such as
objects, data sets, SQL Server, and XML.