Anda di halaman 1dari 6

SELF ASSESSMENT QUESTIONS & ANSWERS

Unit 1 Introduction to Microsoft .Net Framework

1. The .NET Framework can be hosted by unmanaged components that load the common
language runtime into their processes and initiate the execution of managed code.
2. ASP.NET hosts the runtime to provide a scalable, server-side environment for managed code.
3. The NET Framework class library is a collection of reusable types that tightly integrate with the
common language runtime.
4. The Web Services Provide a mechanism for programs to communicate over the Internet using
SOAP.
5. The concept of Stack Walk is helpful to anyone interested in building a profiler to examine
managed applications.
6. The Static assemblies are stored on disk in portable executable (PE) files.
Unit 2 Introducing C# Programming
1. The C# language is an Object Oriented Programming Language developed by Microsoft to
become a key part of their .Net software development platform.
a) C++ b) Visual C++ c) C# d) Visual Basic.Net
2. The syntax for compiling the sample C# program is csc.exe <filename>.cs
3. To run a C# executable file, the command that should be typed at the command prompt is
<filename>.exe
4. The using directive references a namespace called System, provided by the Common
Language Infrastructure (CLI), a synonym for the .Net Framework.
5. Classes can also be defined as generic by using type parameters that enable client code to
customize the class in a type-safe and efficient manner.
6. A static modifier is used so that the method it is assigned to becomes a method of the class
rather than an instance of the class.
7. The using directive allows the use of types in a namespace so that you do not have to qualify
the use of a type in that namespace.
8. The Struct and Enumeration in C# are of value data types
a) int b) value c) char d) string
9. Using the new operator calls the default constructor of the specific type and assigns the default
value to the variable.

Unit 3 Building Windows and Web Forms


1. The tools for creating web applications are called Web Forms.
2. C# is the first development environment to marry the RAD tools of Visual Basic with the objectoriented and high performance characteristics of a C-family language.
3. The Form object represents any window displayed in your application.
4. The delegated method can have any name but must return void and take two parameters: an
object (sender) and a SystemEventArgs object.
5. The Ctrl-Alt-X keyboard shortcut is used to display the Toolbox.
6. The Solution Explorer is a window that displays all the files in your projects.
7. The Web Forms implement a programming model in which web pages are dynamically
generated on a web server for delivery to a browser over the Internet.
Unit 4 ASP.NET
1. The HTML server controls are HTML elements (or elements in other supported markup, such
as XHTML) containing attributes that make them programmable in server code.
2. The Web server controls do not necessarily map one-to-one to HTML server controls. Instead,
they are defined as abstract controls in which the actual markup rendered by the control can be
quite different from the model that you program against.
3. In order to programmatically add a control to a page, there must be a container for the new
control.
4. Because the Controls property is a collection, you can use the AddAt() method to place the
new control at a specific location.
5. All HTML server controls also support a Attributes collection, which gives you direct access to all
the control's attributes.
6. The <asp:TextBox ID="UserName" RunAt="server" /> statement creates a text input field in a
Web form and assigns it the programmatic ID UserName.
7. The Spans are benign HTML tags that are used to group other HTML elements.

Unit 5 ASP.NET Applications


1. ASP uses scripts between brackets and percentage signs - <% %> - to control server-side
behaviors.
2. The asp.dll file is an ISAPI application that provides a bridge between the scripting language
and the Web server.
3. ASP.NET 3.5 applications can include a \App_Code directory where you place your classs
source.
4. In ASP.NET Web pages, the user interface programming is divided into two pieces: the visual
component and the logic.
5. A Global.asax file contains global application elements in ASP.NET.
6. The Global.asax file contains an appSettings section that holds application-specific data items
such as database connection strings
Unit 6 State Management using ASP.Net
1. State management is the process by which you maintain state and page information over
multiple requests for the same or different pages.
2. Web Forms pages are Stateless, which means that they do not automatically indicate whether
the requests in a sequence are all from the same client or even whether a single browser instance
is still actively viewing a page or site.
3. The ViewState property provides a dictionary object for retaining values between multiple
requests for the same page. This is the default method that the page uses to preserve page and
control property values between round trips.
4. A Hidden field does not render visibly in the browser, but you can set its properties just as you
can with a standard control.
5. The Cookies contains site-specific information that the server sends to the client along with
page output which can be temporary (with specific expiration times and dates) or persistent.
6. The Query strings provide a simple but limited ways to maintain state information.
7. The name-value pairs in a Cookie are referred to as Subkeys.

Unit 7 ADO.NET
1. The ADO.NET was first introduced in version 1.0 of the .NET framework, that provided an
extensive array of features to handle live data in a connected mode or data that is disconnected
from its underlying data store.
2. ADO.NET is the database language spoken by managed applications.
3. In disconnected architecture, data is retrieved from a database and cached on your local
machine. You manipulate the data on your local computer and connect to the database only when
you wish to alter records or acquire new data.
4. The ADO.NET classes are found in System.Data.dll, and are integrated with the XML classes
found in System.Xml.dll.
5. The .NET Framework Data Provider for OLE DB uses the System.Data.OleDb namespace.
6. The CommandBuilder is a helper object that automatically generates command properties of a
DataAdapter or derives parameter information from a stored procedure and populates the
Parameters collection of a Command object.
7. The MSDAORA driver is the Microsoft OLE DB provider for Oracle.
8. The Using block in Visual Basic or C# automatically disposes of the connection when the code
exits the block, even in the case of an unhandled exception.
Unit 8 Web Services
1. The concept of Web Services is the key to Microsofts vision of a world in which computers talk
to each other over the Web using HTTP and other universally supported protocols.
2. Web services are an industry standard built on open protocols such as HTTP and Simple Object
Access Protocol (SOAP).
3. The Service Proxy and Service Listener components may either be standalone applications (a
TCP-server or HTTP-server daemon, for instance) or may run within the context of some other
type of application server.
4. Binding refers to a service consumer actually using the service offered by a service provider.
5. The SOAP is an XML-based vocabulary for performing remote procedure calls using HTTP and
other protocols.
6. The forms that ASP.NET generates on the fly from X files enable you to test the Web services
that you write without writing special clients to test them with. ASMX
7. We can use code-behind to move Web service classes out of ASMX files and into separately
compiled DLLs.

Unit 9 Website Deployment

1. The Internet Information Services technology (IIS) component is a macro component that
bundles

the

IIS

components

that

are

found

in

the

Software\System\Networking

&

communications\Infrastructure directory in the component browser.

2. The Web Distributed Authoring and Versioning (WebDAV) enables remote authors to create,
move, or delete files, file properties, directories, and directory properties on your server over an
HTTP connection.

3. You can use News Network Transport Protocol (NNTP) and Simple Mail Transfer Protocol
(SMTP) services to set up intranet news and mail services that work in conjunction with IIS.

4. The IP Address Restrictions feature in IIS does not support IPv6 addresses or IPv6 prefixes.

5. The Worker process isolation mode enables you to completely separate an application in its
own process, with no dependence on a central process such as Inetinfo.exe to load and execute
the application.

6. An application pool is a group of URLs that are routed to one or more worker processes that
share the same configuration.

7. With isolation mode, you can run applications that are incompatible with worker process
isolation mode because they were developed for earlier versions of IIS.

Unit 10 Security
1. IIS authenticates the caller by using Basic, Digest, Integrated (NTLM or Kerberos), or Certificate
authentication.

2. If ASP.NET is configured for Windows authentication, no additional authentication occurs at this


point.

3. The UrlAuthorizationModule, a system provided HTTP module, uses authorization rules


configured in Web.config (specifically, the <authorization> element) to ensure that the caller can
access the requested file or folder.

4. The FileAuthorizationModule class only performs access checks against the requested file, and
not for files accessed by the code in the requested page, although these are access checked by
IIS.

5. Principal permission checks (performed by the PrincipalPermission Attribute class) allows


you to control access to classes, methods, or individual code blocks based on the identity and
group membership of individual users, as defined by the IPrincipal object attached to the current
thread.

6. If you configure ASP.NET for Windows authentication, IIS performs user authentication by using
the configured IIS authentication mechanism.

7. Cryptography is used to achieve the goals of Confidentiality, Data Integrity, and Authentication.

8. The Public-key encryption type of encryption uses a public/private key pair to encrypt and
decrypt data.

9. The AesCryptoServiceProvider.Net cryptographic class performs asymmetric encryption and


decryption using the Cryptographic Application Programming Interfaces (CAPI) implementation of
the Advanced Encryption Standard (AES) algorithm.

Anda mungkin juga menyukai