You are on page 1of 7

c 


    

1. Can you declare the override method static while the original method is
non-static?

No

You can¶t, the signature of the virtual method must remain the same, only
the keyword virtual is changed to keyword override.

2. What statement is true about an abstract class

A class that cannot be instantiated

Is a class for which entities (instances) may be created

A class that cannot be instantiated. A concept in C++ known as pure virtual


method. A class that must be inherited and have the methods over-ridden.
Essentially, it¶s a blueprint for a class without any implementation.

3. A project on which you are working calls for you to store small amount of
frequently changing information about a page on the client.
For this project, security is not a worry. Which is the best method to use

A hidden form field

A cookie

Works even if cookies are disabled

4. What is the last stage of the Web forms lifecycle?


Page_Unload

Event Handling

PreInit
Init
InitComplete
LoadComplete
PreRender
Unload

5. How does ASP.NET store SessionIDs by default?

In cookies

Session Identifiers
Sessions are identified by a unique session identifier that can be read
using the SessionID property. When session state is enabled for an
ASP.NET application, each request for a page in the application is
examined for a SessionID value sent from the browser. If no SessionID
value is supplied, ASP.NET starts a new session and the SessionID for that
session is sent to the browser with the response.

SessionID values are stored in a cookie, by default, but you can also
configure your application to store SessionID values in the URL for a
"cookieless" session

6. What is the name given to the type of assembly that contains localized
resources?

Satellite
Hub

You can deploy your application's resources in satellite assemblies. By


definition, satellite assemblies only contain resource files. They do not
contain any application code.
In the satellite assembly deployment model, you create an application with
one default assembly (which is the main assembly) and several satellite
assemblies.
You should create one satellite assembly for each culture that the
application supports. Because the satellite assemblies are not part of the
main assembly, you can easily replace or update resources corresponding
to a specific culture without replacing the application's main assembly
?

a. You have been asked to debug a Web-based ASP.NET application.


For some reason, the debugging information is not presented. What could
be missing?

<%@ Page Debug="true" %>

<%@ Application Trace="true" %>

Indicates whether the page should be compiled with debug symbols. true if
the page should be compiled with debug symbols; otherwise, false.
Because this setting affects performance, you should only set the attribute
to true during development

8. Security is very important on any web site. By default, a .Net web site is
configured with which of the following authentication types?

Answer 1 & 4
Integrated Windows authentication

Anonymous authentication gives users access to the public areas of your


Web site without prompting them for a user name or password. Although
listed as an authentication scheme, it is not technically performing any
client authentication because the client is not required to supply any
credentials

9. You need to obtain performance information about your Web Application.


You should use which of the following?

Performance Counters

Data Readers

The .NET Framework SDK provides a set of performance counters that you
can use to track the performance of an application
**10.Do I need IIS to develop a Web application in ASP.NET 2.0?

No

If you are using Visual Studio, you can use the ASP.NET Development
Server built into Visual Studio to test your pages. The server functions as a
local Web server, running ASP.NET Web pages in a manner virtually
identical to how they run in IIS. To deploy
**11.______ is the Microsoft IIS server running, handling ASP.NET
requests among other things
inetinfo.exe

aspnet_isapi.dll

inetinfo.exe is the Microsoft IIS server running, handling ASP.NET requests


among other things.When an ASP.NET request is received (usually a file
with .aspx extension), the ISAPI filter aspnet_isapi.dll takes care of it by
passing the request tothe actua

12. What the 1st method that is fired during the page load?

Init()

Load()

Occurs when the server control is initialized, which is the first step in the its
lifecycle

13. What namespace does the Web page belong in the .NET Framework
class hierarchy?

System.Web.UI.Page

System.Web.Control

14. When you have a complex control, like DataGrid, writing an event
processing routine for each object (cell, button, row, etc.) is quite tedious.
The controls can ____ __ their eventhandlers, allowing the main DataGrid
event handler to take care of its constituents.
bubble event

The ASP.NET page framework provides a technique called event bubbling


that allows a child control to propagate events up its containment hierarchy.
Event bubbling enables events to be raised from a more convenient
location in the controls hierarchy and allows event handlers to be attached
to the original control as well as to the control that exposes the bubbled
event.

15. What data types do the RangeValidator control support?

Integer, String, and Date

decimal, String, and Date

The BaseCompareValidator.Type property is used to specify the data type


of the values to compare. The values to compare are converted to this data
type before the validation operation is performed. The following table lists
the different data types that c

16. What base class do all Web Forms inherit from?

Page class

Web class

If you create a new ASP.NET Web page named SamplePage1 in your


application''s root directory then a new class named
ASP.SamplePage1_aspx is derived from the Page class

1a. Name a property common in every validation control?

ControlToValidate

Use the ControlToValidate property to specify the input control to validate.


This property must be set to the ID of an input control for all validation
controls except the CustomValidator control, which can be left blank

18. What DataType is return in IsPostback property?

boolean

string

private void Page_Load()


{
if (!IsPostBack)
{
// Validate initially to force asterisks
// to appear before the first roundtrip.
Validate();
}
}

You might also like