Question Bank
Question Bank
1. Define Namespace.
Namespaces are used to organize the classes. It helps to control the scope of methods and
classes in larger .Net programming projects. It is also referred as named group of classes having
common features. The members of a namespace can be namespaces, interfaces, structures, and
delegates.
1
10. What is ASP.Net?
ASP.Net is a web development platform provided by Microsoft. It is used for creating web-
based applications. ASP.NET is an open-source, server-side web-application framework de-
signed for web development to produce dynamic web pages. It was developed by Microsoft to
allow programmers to build dynamic web sites, applications and services.
2
22. What is module in VB.Net?
A module (sometimes called a standard module) is similar to a class but with some important
distinctions. Every module has exactly one instance and does not need to be created or assigned
to a variable. Modules do not support inheritance or implement interfaces. A module has the
same lifetime as your program.
29. Name the type of JIT compiler that is suitable for running scripts.
31. Name the system which defines type of usage in the .Net Framework Common language
runtime
The CTS(Common Type System) defines the rules governing type inheritance, virtual methods
and object lifetime.
32. Which ADO.Net object acts as a bridge between Dataset and Database?
A DataAdapter object is used as a bridge between a database and a DataSet.
3
33. Give one point of difference between authentication and authorization in ASP.Net
Authentication is the process of obtaining some sort of credentials from the users and using
those credentials to verify the user’s identity. Authorization is the process of allowing an au-
thenticated user access to resources.
34. What is Web Server?
A web server is a computer that stores web server software and a website’s component files.
35. What is .Net Code Access Security?
Code Access Security enables users to restrict, on a very granular level, what managed code
can do according to a level of trust. If the CLR trusts the code enough to allow it to run then it
will begin executing the code depending on the permissions given to the assembly. If the code
is not trusted and attempts to perform some action it does not have relevant rights for then a
security exception is thrown.
36. What is ProcessRequest()?
The ProcessRequest() is a method that ASP.NET will use to allow the handler to handle a
request. Essentially all handler work begins with this method.
37. What are the two main parts of .Net? The Common Language Runtime and the . NET
Framework Class Library.
38. What is CLS?
CLS stands for Common Language Specification. It defines a set of rules and restrictions that
every language must follow which runs under the . NET framework.
39. What is Globalization?
Globalization is the process of designing the application in such a way that it can be used by
users from across the globe (multiple cultures).
40. What is Localization?
Localization is a the process of customization to make our application behave as per the current
culture and locale.
41. What is code review?
Code Review is a verifying and finding defects on source code in development phase. It is an
improvement of source code quality to provide quality software for the developer’s in develop-
ment phase.
42. What is INTERNAL keyword in .Net framework?
The internal keyword is an access modifier for types and type members. Internal types or
members are accessible only within files in the same assembly
43. What is Connection Pool?
Connection pooling reuses existing active connections with the same connection string instead
of creating new connections when a request is made to the database which minimizes the cost
of repeatedly opening and closing connections.
44. What is Message passing in OOP?
Message passing is a type of communication between processes or objects in computer science.
In this model, processes or objects can send and receive messages to other processes or objects.
45. What is ASP.Net Configuration?
ASP.NET Configuration system is used to describe the properties and behaviors of various
aspects of ASP.NET applications.
4
46. What is an IL and metadata?
Metadata is information about the assemblies, modules, and types that constitute .NET pro-
grams. In .NET, metadata is a common mechanism that the .NET runtime, compilers, and tools
all can use. Microsoft .NET uses metadata to describe all types that are used and exposed by
the particular .NET assembly.
Intermediate language (IL) is an object-oriented programming language designed to be used
by compilers for the .NET Framework before static or dynamic compilation to machine code.
The IL is used by the .NET Framework to generate machine-independent code as the output of
compilation of the source code written in any .
(a) .Net assembly manifest:The assembly manifest contains this assembly metadata. An
assembly manifest contains all the metadata needed to specify the assembly’s version
requirements and security identity, and all metadata needed to define the scope of the
assembly and resolve references to resources and classes.
5
(b) MSIL:The assembly manifest contains this assembly metadata. An assembly manifest
contains all the metadata needed to specify the assembly’s version requirements and se-
curity identity, and all metadata needed to define the scope of the assembly and resolve
references to resources and classes.
(c) Application Pool: An application pool defines a group of one or more worker processes,
configured with common settings that serve requests to one or more applications that are
assigned to that application pool. Application pools can contain one or more worker pro-
cesses. Each worker process represents work being done for a Web site, Web application,
or Web service. The ¡applicationPools¿ element contains configuration settings for all
application pools running on your Internet Information Services (IIS) 7 or later server.
(d) HTTP Module:Http modules are filters that can pre and post-process requests as they
pass through the HTTP pipeline. As a matter of fact, many of the services provided by
ASP.NET are implemented as HTTP Modules. Examples are modules which are used to
implement ASP.NET security as well as ASP.NET session state.
(e) IIS:The term ”IIS” stands for Internet Information Services, which is a general-purpose
webserver that runs on the Windows operating system. The IIS accepts and responds to
the client’s computer requests and enables them to share and deliver information across
the LAN (or Local Area Network) such as a corporate intranet and the WAN (or Wide
Area Network) the internet. It hosts the application, websites, and other standard ser-
vices needed by users and allows developers to make websites, applications and virtual
directories to share with their users.
(f) SOAP:SOAP is an acronym for Simple Object Access Protocol. It is an XML-based mes-
saging protocol for exchanging information among computers. SOAP is an application of
the XML specification.
(g) WSDL:WSDL stands for Web Services Description Language. It is the standard format
for describing a web service. WSDL is written in XML.
(h) Satellite Assembly:A satellite assembly is a .NET Framework assembly containing re-
sources specific to a given language. Using satellite assemblies, we can place resources
for different languages in different assemblies, and the correct assembly is loaded into
memory only if the user selects to view the application in that language
6
• A registry of all web service’s metadata, including a pointer to the WSDL description of
a service.
• A set of WSDL port type definitions for manipulating and searching that registry.
55. Give three point of difference between Private assembly and Public Assembly.
An assembly in .NET can be classified into two different types’ namely public assembly and
private assembly. Difference between these two types of assembly is tabulated below:
ASP ASP.Net
ASP is the interpreted languages. ASP.NET is the compiled language.
ASP uses ADO (ActiveX Data Objects)
ASP.NET uses ADO.NET to connect and
technology to connect and work with
work with database.
databases.
ASP is partially object oriented. ASP.NET is fully object oriented.
ASP.NET Pages have the file extension
ASP Pages have the file extension .asp.
.aspx.
ASP doesn’t have the concept of inheri- ASP.NET inherit the class written in code
tance. behind.
ASP.NET use full fledged programming
ASP pages use scripting language.
language.
Error handling is very poor in ASP. Error handling is very good in ASP.NET.
ASP has maximum four in-built classes i.e.
ASP.NET has more than 2000 in-built
Request, Response, Session and Applica-
classes.
tion.
7
58. What are the different common validation controls available in ASP.Net? Explain them
in brief.
ASP.NET provides a set of web controls called validation controls that are used to validate
HTML forms. Most of the times while using HTML forms we need to validate the user input
for certain criteria. In ASP there was no other way but to write our own server or client side
validation routines. There are 6 types of validation controls available :
• RequiredFieldValidator : This control is used to validate fields that requires user input i.e.
the fields which are mandatory.
• CompareValidator: This control is used to compare value of a control with :
(a) value from another control or
(b) a specific value
• RangeValidator: Rangevalidator is used to ensure that the value of a control lies between
the given range.
• RegularExpressionValidator
• CustomValidator: Even though in-built controls provide great deal of functionality, we
may need some customized validation not covered by in-built controls. Customvalidator
control allows such facility.
• ValidationSummary: Validation summary control provides a nice way to display a list of
all the validation errors occurred in the form.