Computer Certification

  1. Home
  2. Computing & Technology
  3. Computer Certification

Questions 7-10

MCAD, MCSD .NET Exam 70-305 Practice Test from UCertify

by Dori Reuscher
for About.com

Question 7

Patrick works as a Software Developer for BlueWell Inc. He develops an ASP.NET application, named App1, using Visual Studio .NET. App1 contains an ASP.NET page that is used to enroll new members to a health club. To become a member of the club, all applicants are required to be at least fifty years old.

Patrick wants to ensure that each prospective member enters his name and date of birth in two TextBox controls, named TextBox1 and TextBox2, respectively. He also wants to verify that prospective members meet the age requirement. Which of the following controls will Patrick use to accomplish this?

Each correct answer represents a part of the solution. Choose two.

A. RequiredFieldValidator

B. RegularExpressionValidator

C. CompareValidator

D. CustomValidator

Answer 7

Question 8

David works as a Software Developer for GenTech Inc. He develops an ASP.NET application using Visual Studio .NET. The application uses Microsoft Windows authentication. Users of the application are in the GenTech domain. David wants to configure the application to use the following authorization rules:
Anonymous users must not be allowed to access the application.
All users except User1 and User2 must be allowed to access the application.
Which of the following code will David use to configure the application?

A. <authorization>
<deny users=="GenTech\User1, GenTech\User2">
<allow users=="*">
</authorization>

B. <authorization>
<allow users=="*">
<deny users=="GenTech\User1, GenTech\User2">
</authorization>

C. <authorization>
<deny users=="GenTech\User1, GenTech\User2">
<allow users==''*''>
<deny users=="?">
</authorization>

D. <authorization>
<allow users=="*">
<deny users=="GenTech\User1, GenTech\User2">
<deny users=="?">
</authorization>

E. <authorization>
<deny users=="GenTech\User1, GenTech\User2">
<deny users=="?">
<allow users=="*">
</authorization>

Answer 8

Question 9

Martha works as a Software Developer for MaryLync Inc. She develops an ASP.NET application, for purchase order handling, using Visual Studio .NET. The application uses a Microsoft SQL Server database. Martha creates a SqlCommand object, named Command1. She writes a stored procedure, named Proc1. Proc1 accepts an input parameter that specifies a product identification number. Proc1 returns total sales for products. Martha declares a numeric variable, named Var1, in Proc1 and wants to assign the return value of Proc1 into Var1. She also wants to optimize the performance of the application. Which of the following methods will she use to accomplish this?

A. SqlCommand.ExecuteReader
B. SqlCommand.ExecuteScalar
C. SqlDataAdapter.Update
D. SqlDataAdapter.Fill

Answer 9

Question 10

James works as a Software Developer for McRobert Inc. He is debugging an ASP.NET application written by another developer of the company. The application contains a number of .aspx pages. One of the .aspx pages contains a TextBox control that identifies valid data values as being invalid. James wants to debug a client-side method, named Method1, which is written in Visual Basic Scripting Edition. He wants to verify that the method is receiving valid input parameters while the page is being executed. He wants to perform this by stepping through the client-side method as it executes. What will James do to accomplish this?

A. In Internet Explorer, uncheck the Disable script debugging check box.
B. In Internet Explorer, check the Enable script debugging check box.
C. In Solution Explorer, open the source for the .aspx file to be debugged and select the Debug > Start menu.
D. Set the following attribute in the application's Web.config file:
debug=="true"

Answer 10

Explore Computer Certification

About.com Special Features

Computer Certification

  1. Home
  2. Computing & Technology
  3. Computer Certification
  4. Practice Tests
  5. About.com Practice Tests
  6. MCAD, MCSD .NET Exam 70-305 Practice Test from uCertify.com

©2009 About.com, a part of The New York Times Company.

All rights reserved.