1 .I can run asp.net on

a )IIS b)apache **c) both d)none.

2. A new series of APIs, controls, and providers in ASP.NET 2.0 enable you to control an application’s user membership and role management using ------method.

A) Membership.UserValidate ()

B) Membership.Validate ()

**c)Membership.User ()

D) Membership.ValidateUser ()

3. Where do you enable tracing for an individual Web Form?

In the @ Tracing directive in the HTML code

In the web.config file trace element

**In the @ Page directive in the HTML code

In VB.NET code by setting Trace. On = True

4. Which of the following is not a template for the Repeater control?

Top of Form

A) FooterTemplate

B) SeparatorTemplate

c) EditItemTemplate **

D) HeaderTemplate

5. I can prevent a button from validating the form it’s in by ______property to false

a) Enabled

B) Validation Group

c) Visible

d) Causes Validation**

6. What attribute do you set in custom Errors tag of web.config file for default error page?

Top of Form

default Redirect**

Default Message

DefaultExceptionPage

Default Error

6. A HTML control can be converted to server control

Top of Form

False.

True**

7. To insert a break point in the code ______key is used

A) F11 **b)F9 c)F10 d)F12

9. You have added a list-bound control to your form and have properly filled its Dataset and set the Data Source property. The control is not displaying on your Web form. What is the most likely cause?

a) There is no data in the Dataset.

b) The SQL Server database is not available.

**c) You have not issued the Bind Data method.

d) The control’s Enabled property is set to False.

10. Where do you specify the template information for list controls?

**Top of Form

In the HTML code for the aspx file**

In the machine.config file

In the code-behind page for the Web form

In the web.config file

11. Which of the following Web application files should not be included on a production server?

\ Top of Form

a)aspx files b)None c)web.config **d)vb files

12.The ------directive associates a class name to an ASP.NET page in order to get at strongly typed references or members contained within the specified master page

Top of Form

a)@MasterPage b) none **c)@MasterType d)@Master

13. The DropDownList, ListBox, CheckBoxList, and RadioButtonList server controls give you the capability to visually add items to the collection displayed in the control. Using ______method

Top of Form

a)(ControlName).Items.Add.Value() b)None

** C) (ControlName).Items.Add () d) (ControlName).Add.Items ()

14.If you want to use cache output for part of page, what must you do?

If you want to use cache output for part of page, what must you do? If you want to use cache output for part of page, what must you do? Top of Form

a)You cannot cache a part of a page.

b) Enclose the HTML code for the part of the page that you want to cache in cache tags.

**c) Create a user control that contains the part of the page you want to cache.

d)Isolate the code into a subroutine.

15.You have made some changes in web.config file at production server. If you want your application to use the new settings of web.config then you need to perform the following task......

a) Run in debug mode b) Rebuild c) Compile d) None

Top of Form

16.What are the two required attributes of the OutputCache directive? A. Timeout B. Duration C. Location D. VaryByParam.

**a) B, D b) A,C c) D,A d) A,B

aTop of Form

17.Can session variables be accessed in .aspx source as we access it in .aspx codebehind?

**A) Yes

b) No

c)None

d)Not possible in .net2.0

18.What are the units for the Duration attribute for the @OutputCache directive?

a)Millisecond

b)Hours

c)Minutes

**d) Seconds

19.State which of the following is/are true a) I need to install IIS on the system to run .net Application b) I need to install IIS on the system to deploy my Application

**A)b b) None c)both d)a

20.State which of the following is/are true. a)DataGrid is new control in .Net .b)GridView is new control in .Net 2.0

**A) B b) none c) both d) a

21.Which of the following is not a list-bound control?

A) DropDownList **b) RadioButton c) DataGrid d) CheckBoxList

22.I can use web.config file to configure

a) Individual file b) Subdirectories**c) Both d) None

Top of Form

23.Can I dynamically set the Image URL for Image Control?

**a) Yes b) No

24.------enables you to submit a form (say, Page1.aspx) and have this form and all the control values post themselves to another page (Page2.aspx).

a)PostBack **b) Cross-Page C)Posting Call Back d)sNone

25. using------class, you can get server-side access to the meta, p, span ,.. Tags

a) HtmlContainerControlrol **b) HtmlGenericControl c) both d) None

26. If you set a breakpoint in your Web application and run the Web application,but execution does not stop at the breakpoint even though you are sure that the line was executed, what is the most likely problem?

**Bottom of Form

Top of Form

a) You have the compile option set to compile a release version of the application.You are running the beta version of VS.NET.

b)You have programmatically turned debugging off in the VB.NET code.

c)The line could not have executed,otherwise the execution would have stopped

27.The ------directive declares that another ASP.NET page or user control should be compiled along with the active page or control.

a) @Reference b) @OutputCache c) @Page d) None

28. The______server control is new to ASP.NET 2.0. It enables you to turn an image into a navigation menu

a)Hyperlink b)Image Map c)Map d)Image

29. How do you display trace information that has not been displayed on the Web page?

a)Top of Form

You display it using Internet Explorer and the //localhost/WebAppName/trace.axd URL.

b) You run the viewtrace.exe program.

c)You view the trace.log file using notepad.exe.

d)You run the trace.exe program.

30------Control section includes all the controls that deal with the retrieval and display of data that comes from a data store of some kind.

A) Data b)Webparts c)Login d)Validation

2.

1. Top of Form

The ------directive declares that another ASP.NET page or user control should be compiled along with the active page or control.

1.The ------directive declares that another ASP.NET page or user control should be complied along with the active page control..

@Reference None @Page @OutputCache

.

2.______Allows for comparisons between the user’s input and another item using a comparison operator (equals, greater than, less than, and so on)

RangeValidator None RegularExpressionValidatorRequiredFieldValidator

3.Which of the following Web application files should not be included on a production server?

.aspx files None web.config .vb files

4.______Ensures that the user does not skip a form entry field.

______Ensures that the user does not skip a form entry field. ______Ensures that the user does not skip a form entry field. ______Ensures that the user does not skip a form entry field. ______Ensures that the user does not skip a form entry field. ______Ensures that the user does not skip a form entry field. ______Ensures that the user does not skip a form entry field. ______Ensures that the user does not skip a form entry field. Top of Form

RangeValidator None

RegularExpressionValidator RequiredFieldValidator

5.using------class, you can get server-side access to the meta, p, span ,.. Tags

HtmlContainerControlrol None both HtmlGenericControl

6. I can prevent a button from validating the form it’s in by ______property to false

Top of Form

Enabled ValidationGroup Visible CausesValidation

7.To insert a break point in the code ______key is used.

Top of Form

F11 F9 F10 F12

8.Instead of message I can use image as error notification for validation controls.

Top of Form

False. True

9.______Checks the user’s input based upon a lower-and upperlevel range of numbers or characters

Top of Form

RangeValidator None RegularExpressionValidatorRequiredFieldValidator

10.______Validator has predefined validation for date.

Top of Form

RangeValidator None RegularExpressionValidatorRequiredFieldValidator

11.______Displaysall the error messages from the validators in one specific spot on the page.

RangeValidator None RegularExpressionValidatorRequiredFieldValidator

.

12.------enables you to submit a form (say, Page1.aspx) and have this form and all the control values post themselves to another page (Page2.aspx)

Bottom of Form

Top of Form

Post Back None . Cross-page posting Call Back

13.If you want to use cache output for part of page, what must you do?

Top of Form

You cannot cache a part of a page.Enclose the HTML

code for the part of the page that you want to cache in cache tags.

Create a user control that contains the part of the page that you want to cache.

Isolate the code into a subroutine.

14.______Provides specialized access to site map data for a Website that is stored by the site map provider

XmlDataSource Control None

ObjectDataSource Control SqlDataSource Control

.

15.Can I write server side code for master pages

Top of Form

No .Yes

16.______Provides specialized data access to XML documents, either physically or in-memory

Bottom of Form

Top of Form

XmlDataSource Control None ObjectDataSource Control SqlDataSource Control

17.You have developed a timesheet entry application that will be used by all employees in your company. You have used ASP.NET to develop this application and have deployed it on the company’s Web server. What should all the employees of the company install on their computers before accessing the timesheet entry application?

Top of Form

.NET Framework SDK Web Browser Visual Studio .NET .NET Framework Redistributable

18.When you create applications that use a common header, footer, or navigation section on pretty much every page of the application, ______are a great solution.

Top of Form

master Pages none Genric Classes Thems

19.I can set the titles of a page dynamically

Top of Form

false ..True

20.The Page directive includes an ______attribute that can be used to remove theming from your ASP.NET pages

Top of Form

ThemingNoneEnableThemingmaster

Top of Form

21.State which of the following is/are truea)DataGrid is new control in .Net 2.0b)GridView is new control in .Net 2.0.

bnonebotha

22.What attribute do you set in customErrors tag of web.config file for default error page?

Top of Form

defaultRedirectdefaultMessagedefaultExceptionPage defaultError

23.______is the new feature of c#.net 2.0

Top of Form

System.Collection.Genric Name spaceNone Both Partial classes

24.------Control section includes all the controls that deal with the retrieval and display of data that comes from a data store of some kind

.Top of Form

Data Webparts Login Validation

25.Your web application requires users to be authenticated before they can view information. Each user has an account on your Windows servers. Which form of authentication should you use for best performance?

Bottom of Form

Top of Form

Windows authentication Passport authentication Forms-based authentication Default authentication

26.SqlConnection class is present under the ______NameSpace

Top of Form

System.Data.SqlClient System.Data.Xml System.Xml System.Data

.

27. What are the two required attributes of the OutputCache directive? A. Timeout B. Duration C. Location D. VaryByParam

Bottom of Form

Top of Form

B,D A,C D,A A,B

28. To programmatically assign the theme to the page, you must set the Theme of the Page property in or before the ______event for any static controls that are on the page

Top of Form

Page_Render Page_PreInit Page_Load Page_PreRender

29.A HTML control can be converted to server control.

False..True

30.What are the units for the Duration attribute for the @OutputCache directive?

Top of Form

Millisecond Hours Minutes Seconds

.

31.I can run asp.net on

Bottom of Form

Top of Form

Apache None Both IIS

32.In your ASP.NET application, you are opening a file. You want to close the file regardless of an exception in the program. Which of the following code blocks can help you achieve this?

Top of Form

catch foreach finally try

33.Insertion of a new row in a data base table facility is available in …………. Data control.

Insertion of a new row in a data base table facility is available in …………. Data control Insertion of a new row in a data base table facility is available in …………. Data control Insertion of a new row in a data base table facility is available in …………. Data control.Insertion of a new row in a data base table facility is available in …………. Data control.Insertion of a new row in a data base table facility is available in …………. Data control.Insertion of a new row in a data base table facility is available in …………. Data control.Insertion of a new row in a data base table facility is available in …………. Data control.Insertion of a new row in a data base table facility is available in …………. Data control.Insertion of a new row in a data base table facility is available in …………. Data control.Insertion of a new row in a data base table facility is available in …………. Data control. Top of Form

Formview None. Both a & b Grid view

34.Which of the following is not a template for the Repeater control?

FooterTemplate SeparatorTemplate EditItemTemplate HeaderTemplate

35.With the release of ASP.NET 2.0, master pages are possible because the .NET Framework 2.0 now supports _____ Classes

Top of Form

Virtual Generic Partial Abstract

36.Which of the following is not a list-bound control?

Top of Form

Dropdown List Radio Button Data Grid Checkbox List

37.Can session variables be accessed in .aspx source as we access it in .aspx codebehind?

Top of Form

No None Not possible in .net2.0 Yes

.

39.The ------directive associates a class name to an ASP.NET page in order to get at strongly typed references or members contained within the specified master page

Top of Form

@MasterPage None @MasterType @Master

Top of Form

40.You have made some changes in web.config file at production server. If you want your application to use the new settings of web.config then you need to perform the following task......

Rebuild none Run in debug mode Compile

41.If you set a breakpoint in your Web application and run the Web application,but execution does not stop at the breakpoint even though you are sure that the line was executed, what is the most likely problem?

Bottom of Form

Top of Form

You have the compile option set to compile a release version of the application.

You are running the beta version of VS.NET.

You have programmatically turned debugging off in the VB.NET code.

The line could not have executed,otherwise the execution would have stopped

42.The______server control is new to ASP.NET 2.0. It enables you to turn an image into a navigation menu.

Top of Form

HyperLink ImageMap Map Image

43.With the addition of ______in ASP.NET 2.0, it has become quite easy to apply a consistent look and feel across your entire application

StyleSheets None MasterPages themes and skins

44.Where do you enable tracing for an individual Web Form?

In the @ Tracing directive in the HTML codeIn the web.config file trace elementIn the @ Page directive in the HTML codeIn VB.NET code by setting Trace.On = True

Top of Form

45.State which of the following is/are true a) I need to install IIS on the system to run .net Application b) I need to install IIS on the system to deploy my Application

b none both a

46.Can I dynamically set the Image URL for Image Control?

Top of Form

No. Yes

47.You have added a list-bound control to your form and have properly filled its DataSet and set the DataSource property. The control is not displaying on your Web form. What is the most likely cause?

Top of Form

There is no data in the DataSet.

The SQL Server database is not available.

You have not issued the BindData method.

The control’s Enabled property is set to False.

.

48.How do you display trace information that has not been displayed on the Web page?

You display it using Internet Explorer and//localhost/WebAppName/trace.axd URL.

You run the viewtrace.exe program

You view the trace.log file using notepad.exe.

You run the trace.exe program.

49.To access the index of data in a grid view we need ……………. Property

PageIndex GridIndex RowIndex SelectedIndex

50.We can force the end user to select one of the provided values in the drop-down list before he/she is able to post the form by setting ______property/ies of RequiredFieldValidator control.

Top of Form

InitialValue None Both ControlToValidate

Top of Form

51.We cannot implement nested master pages

false True

Top of Form

52.State which of the following is/are true a)DataGrid control is present in .Net 2.0 b)GridView control is present in .Net 2.0

b none both a

53.If you have multiple buttons on an ASP.NET page, and you don’t want each and every button to initiate the form validation, you can set the ______property to False for all the buttons you want to ignore the validation process.

Validation None ControlToValidate CauseValidation

54.______Provides specialized data access to other classes that return data

XmlDataSource Control None ObjectDataSource Control SqlDataSource Control

55.Each theme folder can include the following:

Top of Form

CSS files All of the above ImagesA single skin file

56.Where do you specify the template information for list controls?

In the HTML code for the aspx file In the machine.config file

In the code-behind page for the Web form In the web.config file

57.The DropDownList, ListBox, CheckBoxList, and RadioButtonList server controls give you the capability to visually Add items to the collection displayed in the control. Using ______method

(ControlName).Items.Add.Value()

None

(ControlName).Items.Add()

(ControlName).Add.Items()

58. You are designing a Web site that allows users to file their taxes online. Users log on to the Web site using their tax identification number and a personal identification number. You want to ensure that users do not include spaces with the tax identification number. You want to achieve this by writing the minimum amount of code. Which of the following validation controls would you choose?

RangeValidator CustomValidator

RegularExpressionValidator RequiredFieldValidator