Microsoft Visual Basic .NET Question 1: You are developing a Web Form that will be used as part of an online banking application. You have placed a set of RadioButton controls on the form to represent account types. Only one account type should be selected at a time. When you test the Web Form, you discover that you can select multiple account types at the same time, and you cannot deselect an account type after selecting it. How can you fix this problem? (Select two.) A) Replace the RadioButton controls with CheckBox controls. B) Assign an identical GroupName property value to each of the RadioButton controls. C) Place the RadioButton controls on a Panel control. D) Replace the RadioButton controls with a RadioButtonList control. Answer: B & D Explanation: Although by convention radio buttons are mutually exclusive, this is not enforced for radio buttons on a Web Form by default. You can force a group of radio buttons to act as mutually exclusive choices by making them all part of the same group with the GroupName property, or by using a RadioButtonList control to group them Question 2: Your ASP.NET application contains this setting in the web.config file: You are allowing only digest or Windows integrated authentication in IIS. ASP.NET is running under the machine account. What identity will ASP.NET use to authorize resources if a user with the Windows account Shirley in the CORP domain logs in via digest authentication? A) CORP\Shirley B) ASPNET C) IUSR_ComputerName D) CORP\Auditing Answer: D Explanation: When you enable impersonation, any authenticated user takes on the credentials of the specified account for purposes of authorizing resources. Question 3 :You are converting an existing HTML and Jscript-based application to use ASP.NET Web Forms instead. Which of these activities is not a good candidate for code in a code-behind file? A) Tracking mouse movement over an image and displaying updated text in the browser status bar depending on the mouse location. B) Retrieving a list of states or provinces when the user selects a country in a DropDownList control. C) Storing information entered by the user in a database on the Web server. D) Setting up the initial list of items in a data-drive ListBox control.
Answer: A Explanation: Executing server-side code in a code-behind file requires a round trip from the browser to the server. Tracking mouse movements is not a good candidate for this architecture because mouse events occur too frequently and performance will suffer. Question 4 : You are converting an existing ASP application to an ASP.NET application. The ASP application uses ADO extensively for data access. You do not yet want to convert the ADO code to ADO.NET code. What should you do to ensure that the ADO objects continue to function properly on the ASP.NET pages? A) Build a Runtime Callable Wrapper for each ADO object that you use. B) Use a Page directive to set the ASP.NET page language to VBScript. C) Use the Type Library Importer to create a Primary Interop Assembly for the ADO objects. D) Use a Page directive to set ASP compatibility mode on the ASP.NET pages. Answer: D Explanation:The ADO library uses STA as its threading model. The .NET Framework only allows STA components on a page that's set to ASP compatibility mode. Question 5: You have designed an ASP.NET Web form where you need to highlight important information within a table so that it stands out to the user. Which method of highlighting is most accessible? A) B)