MCPD self-paced training kit PDFs, 70-526/ 70-528/ 70-529/ 70-536/ 70-547/ 70-548/

MCPD Enterprise Applications Developer on Visual Studio 2005
MCPD Web Developer, Visual Studio 2005
MCPD Windows Developer on Visual Studio 2005

Includes Exams:

70-526 Microsoft .NET Framework 2.0 Windows-Based Client Development
70-528 Microsoft .NET Framework 2.0 Web-Based Client Development
70-529 Microsoft .NET Framework 2.0 Distributed Application Development
70-536 Microsoft .NET Framework 2.0 Application Development Foundation
70-547 Designing and Developing Web-Based Applications Using the Microsoft.NET Framework
70-548 Designing and Developing Windows-Based Applications Using theMicrosoft .NET Framework
70-549 Designing and Developing Enterprise Applications Using the Microsoft.NET Framework
QUESTION 1
You are creating an e-commerce site for Certkiller . Your site is distributed across multiple servers in a
Web farm.
Users will be able to navigate through the pages of the site and select products for purchase. You want
to use a DataSet object to save their selections. Users will be able to view their selections at any time
by clicking a Shopping Cart link.
You want to ensure that each user’s shopping cart DataSet object is saved between requests when the
user is making purchases on the site.
What should you do?
A. Create a StateBag object.
Use the StateBag object to store the DataSet object in the page’s ViewState property.
B. Use the HttpSessionState object returned by the Session property of the page to store the DataSet
object.
Use the Web.config file to configure an out-of-process session route.
C. Use the Cache object returned by the page’s Cache property to store a DataSet object for each user.
Use an HttpCachePolicy object to set a timeout period for the cached data.
D. Use the Session_Start event to create an Application variable of type DataSet for each session.
Store the DataSet object in the Application variable.
Answer: B
Explanation: An HttpSessionState object provides access to session-state values as well as session-level
settings and lifetime management methods. We should use an out-of-process session to ensure that each
user’s shopping cart DataSet object is saved between requests
Note: ASP.NET provides three distinct ways to store session data for your application: in-process session
state, out-of-process session state as a Windows service, and out-of-process session state in a SQL Server

Actualtests.org – The Power of Knowing
database. The out-of-process solutions are primarily useful if you scale your application across multiple
processors or multiple computers, or where data cannot be lost if a server or process is restarted.
Reference:
.NET Framework Class Library, HttpSessionState Class [Visual Basic]
.NET Framework Developer’s Guide, Developing High-Performance ASP.NET Applications [Visual Basic]
Incorrect Answers
A: A StateBag object manages the view state of ASP.NET server controls, including pages. This object
implements a dictionary. It would not be useful in this scenario however.
C: A cache is not a secure storage location.
D: As multiple servers are going to be used an Application variable is not the best solution.
QUESTION 2
You work as the Web developer at Certkiller .com. You configure a new ASP.NET page to save
insurance information on new employees. To be included in Certkiller .com’s insurance plan,
employees must be minimally 65 years old.
You have received instruction from the CIO to have each new member provide the following
information:
• A name in the TextBox control named nameTextBox.
• Date of birth information in a TextBox control named birthTextBox.
• You must also ensure that all new members meet the minimum age requirement.
What should you do to achieve your goal in these circumstances?
A. Add a CustomValidator to your page and in the Properties window; specify the ControlToValidate
property to birthTextBox. Configure the code segment to validate date of birth information.
Add a RegularExpressionValidator control to your page and in the Properties window; specify the
ControlToValidate property to nameTextBox. Configure a regular expression to validate name
information.
B. Add a CompareValidator control to your page and in the Properties window; specify the
ControlToValidate property to birthTextBox. Configure the code segment to specify the Operator
and ValueToCompare properties to validate date of birth information.
Add a RequiredFieldValidator control to your page and in the Properties window; specify the
ControlToValidate property to nameTextBox.
C. Add a RangeValidator control to your page and in the Properties window; specify the
ControlToValidate property to birthTextBox. Configure the code segment to set the
MinimumValue and MaximumValue properties to validate date of birth information.
Add a CompareValidator control to your page and in the Properties window; specify the
ControlToValidate property to nameTextBox.
Add another CompareValidator control to your page and in the Properties window, specify the
ControlToValidate property to birthTextBox.
Configure the code segment that sets the Operator and ValueToCompare properties of each
CompareValidator control to validate name and date of birth information.
D. Add a CustomValidator control to your page and in the Properties window, specify the
ControlToValidate property to birthTextBox. Configure a code to validate date of birth
information.
Add a RequiredFieldValidator control to your page and in the Properties window, specify the
ControlToValidate property to nameTextBox.

Donwload Free PassGuide Braindumps-The Most Realistic Practice Questions and Answers,Help You Pass any Exams

Actualtests.org – The Power of Knowing
Add another RequiredFieldValidator control to the page and in the properties window, specify the
ControlToValidate property to birthTextBox.
Answer: D
Explanation: To check the data of the birthTextBox we can use a CustomValidator control page and add
appropriate program code to validate that the birth date is in the correct range.
We use two RequiredFieldValidators to ensure that both textboxes are non-empty.
Note: The CustomValidator Control evaluates the value of an input control to determine whether it passes
customized validation logic.
The RequiredFieldValidator Control evaluates the value of an input control to ensure that the user enters a
value.
Reference: .NET Framework General Reference, RequiredFieldValidator Control
Incorrect Answers
A: The RegularExpressionValidator control evaluates the value of an input control to determine whether
it matches a pattern defined by a regular expression. It is not useful in this scenario.
B: We should use two RequiredFieldValidtor, one for each textbox.
C: It would be hard to use a RangeValidator for the birthday Textbox. It is better to use a
CustomerValidator control.
QUESTION 3
You work as the Web developer at Certkiller .com. You configure a new ASP.NET page to save contact
details. Your ASP.NET page consists of the following controls:
• A TextBox control named emailTextBox.
• A TextBox control named phoneTextBox.
• A RequiredFieldValidator control named emailRequired.
• A RequiredFieldValidator control named phoneRequired.
Information must be provided in emailTextBox and in phoneTextBox. The ControlToValidate
property of emailRequired is set to emailTextBox, and the ControlToValidate property of
phoneRequired is set to phoneTextBox. You also include a ValidationSummary control close to the
end the page.
You want to perform the following configurations:
• When a user attempts to submit your page, and emailTextBox is left blank, you want the word
‘Required” to pop-up next to the associated text box.
• When a user attempts to submit the page, and phoneTextBox is left blank, you want the word
‘Required” to pop-up next to the associated text box.
• When a user attempts to submit the page, and emailTextBox and phoneTextBox are left
blank, you want word ‘Required” to pop-up at the end of the page.
• You want a user to be presented with a bulleted list that indicates which information is
required, and is missing:
When emailTextBox is left blank, the bulleted list must display this: “E-mail is
required”
When phoneTextBox is left blank, the bulleted list must display this: “Phone number
is required”
What should you do to achieve your goal in these circumstances?

Actualtests.org – The Power of Knowing
A. Configure the InitialValue property of each RequiredFieldValidator control as “Required”.
Configure the ErrorMessage property of emailRequired as “E-mail is required.”
Configure the ErrorMessage property of phoneRequired as “Phone number is required.”
B. Configure the Display property of each RequiredFieldValidator control to Dynamic.
Configure the ErrorMessage property of emailRequired and phoneRequired to Dynamic.
Configure the Text property of emailRequired to “E-mail is required.”
Configure the Text property of phoneRequired to “Phone number is required.”
C. Configure the InitialValue property of each RequiredFieldValidator control to “Required”.
Configure the Text property of emailRequired to “E-mail is required.”
Configure the Text property of phoneRequired to “Phone number is required.”
D. Configure the Text property of each RequiredFieldValidator control to “Required”.
Configure the ErrorMessage property of emailRequired to “E-mail is required.”
Configure the ErrorMessage property of phoneRequired to “Phone number is required.”
Answer: D
Explanation: The Text property of the RequiredFieldValidator is used to specify the text to display in the
validation control. We want to display “Required”.
The ErrorMessage property is used to specify the text to display in the validation control when validation
fails.
Reference:
Visual Basic and Visual C# Concepts, Validating Required Entries for ASP.NET Server Controls
.NET Framework Class Library, RequiredFieldValidator Members
Incorrect Answers
A: We should use the Text property, not the InitialValue property, to specify the text to display in the
validation control.
B: The ErrorMessage property should be set to the text to display in the validation control, not to
dynamic.
C: We must use the ErrorMessage property.

All PDF

Download Here
hxxp://rapidshare.com/files/147451573/Microsoft_Certified_Professional_Developer__MCPD_.rar
Size: 42743 KB

High quality IT Certification Training Exam Questions, Study Guides and Practice Tests are in Downloadable PassGuide Testing Engine,Successful for IT Certification or Full Refund for you.Contact Us:Sales@PassGuide.com

Type

Exam Bible New Questions & Answers

Latest Updated

Download link
PDF All Certbible 's Exam Dumps

597

1 days ago Available
Free PassGuide

PassGuide Training Materials & Practice Tests

free certification guide
Tags:

About the Author

Free Certification Exam Download has written 10018 stories on this site.

If you have any doubts about legality of content or you have another suspicions, feel free to contact us:CertGuard@Gmail.com

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!

Copyright © 2010 CertBible – IT certifications Exams,Study Guide,Practice Test,Training Materials.. PassGuide,Pass4sure,Testking,Testinside,Pass4side,Certifyme,Transcender,Examworx,Topcerts,Actualtests. Cisco microsoft Comptia CCNA CCIE MCSE Oracle ccnp hp ibm citrix Sitemap