1) What is the easiest way in Design view to create an event handler for the default event of a server control? a. Open the code-behind page and write the code. b. Right-click the control and select Create Handler. c. Drag an event handler from the Toolbox to the desired control. d. Double-click the control.
|
||||
2) What are the types of Web Server Button Controls that can be created? a. Only Submit buttons b. Only Command buttons c. Submit and command buttons d. None of the above.
|
||||
3) Clicking a CheckBox does not cause an automatic PostBack. How do you make the CheckBox cause an automatic PostBack? a. Set the AutoPostBack property to true. b. Add JavaScript code to call the ForcePostBack method. c. Set the PostBackAll property of the Web Page to true. d. None of the above
|
||||
4) What happen in the Web Page when Init event occur? a. ViewState is loaded on the page. b. Each child control of the page is initialized to its design time values. c. HTML is rendered. d. None of the above
|
||||
5) What are the Command Object Methods? a. ExecuteNonQuery b. ExecuteReader c. ExecuteScalar d. All of the above
|
||||
6) If you want that command object should returns XML data then which method of Command Object will be used? a. getXMLData b. getXML c. ExecuteXMLReader d. None of the above.
|
||||
7) Windows-Based Authentication is well suited for ___________ . a. Intranet environment b. Public web site c. Desktop application d. None of the above
|
||||
8) What datatype is returned when calling the ExecuteScalar method of a command object? a. System.Int32 b. Object c. No. of effected records d. None of the above
|
||||
9) You want to make a configuration setting change that will affect only the current Web application. Which file will you change? a. Global.asax b. Web.config in the root of the Web application c. Machine.config d. All of the above
|
||||
10) Which programming model should you implement if you want to separate your server-side code from your client-side layout code in a Web page? a. Single-file model b. Code-behind model c. Inline model d. Client-server model
|
||||
11) Which object in ASP.NET provides a global storage mechanism for state data that needs to be accessible to all pages in a given Web application? a. Session b. Application c. ViewState d. None of the above
|
||||
12) Which Session Mode Serialization is not required to store the data? a. Off b. InProc c. StateServer d. SQLServer
|
||||
13) Which of the following statements about referencing master page methods and properties is true? a. Content pages can reference controls in the master page. b. Content pages can reference public properties in the master page. c. Content pages can reference public methods in the master page. d. All of the above.
|
||||
14) Choose the correct option about Master Page and Theme. a. A Master Page enables you to share content across multiple pages in a website and A Theme enables you to control the appearance of the content. b. Theme enables you to share content across multiple pages in a website and A Master Page enables you to control the appearance of the content. c. App_Themes folder contains skin files. d. Option A and C are correct.
|
||||
15) When should you use HTML Server control rather than Web Server controls? a. You are migrating existing, classic ASP pages over to ASP.NET pages. b. The control needs to have custom client-side JavaScript attached to the control’s events. c. The Web page has lots of client-side JavaScript that is referencing the control. d. All of the above.
|
||||
16) Which property will you set for each RadioButton Control in the group? a. Specify the same GroupName for each RadioButton. b. Specify the different GroupName for each RadioButton. c. Specify the same GroupID for each RadioButton. d. Specify the same ID for each RadioButton.
|
||||
17) Which file contains settings for all .NET application types, such as Windows, Console, ClassLibrary, and Web applications? a. Web.config b. Machine.config c. Global.asax d. All of the above
|
||||
18) Which object data is included in bookmarks and e-mailed URLs? a. ViewState b. cookies c. Query strings d. All of the above
|
||||
19) If you want to validate the email addresses, Social Security numbers, phone numbers, and dates types of data, which validation control will be used? a. RegularExpressionValidator b. CompareValidator c. RequiredFieldValidator d. None of the above
|
||||
20) When should you use the OleDbConnection object? a. When connecting to an Oracle database. b. When connecting to an Office Access database c. When connecting to SQL Server 2000 d. None of the above
|