EnsurepassQUESTION 101 You want to bind an input field on a Web form to a value in a database field named LastName. You want the user to be able to update the field in case his or her name is misspelled. Which syntax should you use?   <%= Bind("LastName") %> <%# Eval("LastName") %> <%# Bind("LastName") %> <%# Bind("LastName") %>   Correct Answer: C     QUESTION 102 Connections can only share a connection in the connection pool if:   they are Read more [...]
EnsurepassQUESTION 91 What does Windows Communication Foundation (WCF) use to describe the data that can be exchanged between a WCF client and a WCF service?   The Web.config file A DataSource Control A data contract The Publish Web Site tool   Correct Answer: C     QUESTION 92 Which object can be populated by calling the Fill method of a DataAdapter?   DataSet SqlDataSource DataReader LinqDataSource   Correct Answer: A     QUESTION 93 Which method Read more [...]
EnsurepassQUESTION 81 User input should always be validated by an ASP.NET validation control or server-side processing because:   JavaScript can be turned off by the client, rendering client-side validation ineffective. Server-side processing is the preferred method of validating user input. Client-side scripting languages are generally ineffective. Client-side validation requires more resources than server-side validation.   Correct Answer: A     QUESTION 82 You need to Read more [...]
EnsurepassQUESTION 71 You are creating a Web application. The application accesses files that are protected using NTFS permissions. Only users who are granted the necessary file permissions should be allowed to access them. You need to configure authentication for the Web application. Which markup should you use?   A. <system.web> <authentication mode="Windows"/> <identity impersonate="false"/> </system.web>     B. <system.web> <authentication mode="Forms"/> Read more [...]
EnsurepassQUESTION 61 You create a project that includes a file named promos.asmx. You write the class shown in the exhibit. You need to ensure that client applications can call the GetTodaysDeals function by passing a query string to promos.asmx. What should you do?     Modify the class to inherit WebService and change the method's return type to Xml. Decorate the method with the WebMethod attribute. Decorate the method with the WebService attribute. Change the method's return type Read more [...]
EnsurepassQUESTION 51 You use a DataReader to:   retrieve an updateable result set. cache data for use after the Connection object is closed. reduce the load on the database server. retrieve a read-only, forward-only result set.   Correct Answer: D     QUESTION 52 When using the Copy Web Site tool:   source code files are precompiled if they are in the App_Code directory, and then copied. all source code file are copied and then compiled. all source code files are Read more [...]
EnsurepassQUESTION 41 You want to add a special announcement to your Web site. You have added a page named announcement.aspx. The announcement should be displayed at the top of the home page. The rest of the home page should be displayed as usual. Which option should you use?   Server.Transfer Server.Execute Response.Redirect Meta Refresh   Correct Answer: B     QUESTION 42 You need to use source code written in more than one language in a Web application. What should you Read more [...]
EnsurepassQUESTION 31 A Web page includes the <asp:UpdatePanel> control. Which other control must you add to the form?   <asp:ScriptManagerProxy> <asp:Timer> <asp:ScriptManager> <asp:UpdateProgress>   Correct Answer: C     QUESTION 32 Which validation control should you use to verify a Personal Identification Number (PIN) against a column value stored in a record in a database?   RegularExpressionValidator CompareValidator CustomValidator Read more [...]
EnsurepassQUESTION 21 You have an external style sheet that includes the following style:   div { color: Gray; }   You create an .aspx page that includes the following element: <div style="color:Aqua; text-decoration:underline"> Hello World </div>   How will the text "Hello World" be displayed when the user browses the page?   Gray and underlined Aqua and underlined Aqua and not underlined Gray and not underlined   Correct Answer: B     QUESTION Read more [...]
EnsurepassQUESTION 11 In a Web application that has multiple Web.config files in separate directories, how are configuration settings applied?   The configuration settings in the Web.config file that is in the root directory take precedence over all other Web.config files. Each Web.config file applies configuration settings to its own directory and all child directories below it. Each Web.config file applies configuration settings to its own directory only. Each Web.config file applies Read more [...]
EnsurepassQUESTION 1 When configuring a Windows Communication Foundation (WCF) client, where do you define the URL for the WCF service?   In the registry on the client computer In the Global.asax file In the <endpoint> element in the configuration file In the <binding> element in the configuration file   Correct Answer: C     QUESTION 2 When a Web site is created, IIS:   will place the Web site in the first application pool listed alphabetically on the Read more [...]