Exam 70-646, Windows Server 2008 Administrator. The newest iteration of the Microsoft Official Academic Course (MOAC) program for network administration courses using Windows Server 2008 and mapping to the Microsoft Certified Information Technology Professional (MCITP) 70-646 certification exam. The MOAC IT Professional series is the Official from Microsoft, turn-key Workforce training program that leads to professional certification and was authored for college instructors and college students. MOAC gets instructors ready to teach and students ready for work by delivering essential resources in 5 key areas: Instructor readiness, student software, student assessment, instruction resources, and learning validation. With the Microsoft Official Academic course program, you are getting instructional support from Microsoft; materials that are accurate and make course delivery easy. Request your sample materials today.
QUESTION 1:
You are creating an ASP.NET page for Certkiller ’s Web site. Customers will use the ASP.NET page to
enter payment information.
You add a DropDownList control named cardTypeList that enables customers to select a type of credit
Actualtests.org – The Power of Knowing
card. You need to ensure that customers select a credit card type. You want a default value of Select to be
displayed in the cardTypeList control.
You want the page validation to fail if a customer does not select a credit card type from the list.
What should you do?
A. Add a RequiredFieldValidator control and set its ControlToValidate property to cardTypeList.
Set the InitialValue property of the RequiredFieldValidator control to Select.
B. Add a RequiredFieldValidator control and set its ControlToValidate property to cardTypeList.
Set the DataTextField property of the cardTypeList control to Select.
C. Add a CustomValidator control and set its ControlToValidate property to cardTypeList.
Set the DataTextField property of the cardTypeList control to Select.
D. Add a RegularExpressionValidator control and set its ControlToValidate property to cardTypeList.
Set the ValidateExpression property of the RegularExpressionValidator control to !Select.
Answer: A
Explanation: We use a RequiredFieldValidator control to ensure that users enter a cardTypeList. We use the
InitialValue property of the RequiredFieldValidator control to specify the default or initial value of the
cardTypeList control.
Note: The RequiredFieldValidator Control evaluates the value of an input control to ensure that the user enters
a value.
RequiredFieldValidator.InitialValue property gets or sets the initial value of the associated input control.
QUESTION 2:
You create an ASP.NET application for Certkiller Motors. The application allows users to purchase
automobile insurance policies online. A page named InsuredAuto.aspx is used to gather information
about the vehicle being insured.
InsuredAuto.aspx contains a TextBox control named vehicleIDNumber. The user enters the vehicle
identification number (VIN) of the vehicle into vehicleIDNumber and then clicks a button to submit the
page. The Button control is named submitButton. Upon submission of the page, additional vehicle
information is obtained for the VIN, and the page is redisplayed for showing the vehicle information.
You define vehicleIDNumber by using the following HTML tag:
EnableViewState="True"/>
Valid VINs are composed of numbers and uppercase letters. You need to include code that converts any
lowercase letters to uppercase letters so that the properly formatted VIN is displayed after the page is
submitted and redisplayed.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution.
Choose two)
A. Add the following code to the vehicleIDNumber.TextChanged event handler for InsuredAuto.aspx:
vehicleIDNumber.Text = vehicleIDNumber.Text.ToUpper();
B. Add the following code to the submitButton.Click event handler for InsuredAuto.aspx:
vehcicleIDNumber.Text = vehicleIDNumber.Text.ToUpper();
C. Add the following code to the Page.Init event handler for InsuredAuto.aspx:
Actualtests.org – The Power of Knowing
vehicleIDNumber.Text = vehicleIDNumber.Text.ToUpper();
D. Add the following code to the Page.Render event handler for InsuredAuto.aspx:
vehicleIDNumber.Text = vehicleIDNumber.Text.ToUpper();
Answer: A, B
Explanation:
A: The TextBox.TextChanged event occurs when the content of the text box is changed upon server
postback.
B: When the user hits the submit button additional information is obtained for the VIN. We must therefore
convert the text to upper case.
Reference: .NET Framework Class Library, Page Members
Incorrect Answers
C: The Page.Init event only occurs when the server control is initialized, which is the first step in its
lifecycle. This occurs only when the page is loaded.
D: The Page class does have a rerender event, but it does not have a render event.
QUESTION 3:
You create an ASP.NET application for Certkiller ’s purchasing department. A page in the application
displays a list of products based on the supplier, the product category, or the price. The URL of the page
includes this information as parameters.
You want to store multiple versions of your ASP.NET page in the cache based in the parameter values.
You want each version of the page to be cached for 300 seconds.
You need to add code to the page to accomplish this goal.
Which code segment should you use?
A. Response.Cache.SetExpires(DateTime.Now.AddSeconds(300));
Response.Cache.VaryByParams["?"] = true;
B. Response.Cache.SetExpires(DateTime.Now.AddSeconds(300));
Response.Cache.VaryByParams["All"] = true;
C. Response.Cache.SetCacheability(HttpCacheability.Public);
Response.Cache.
SetLastModified(DateTime.Parse(”00:05:00″));
Response.Cache.VaryByParams["All"] = true;
D. Response.Cache.SetCacheability(HttpCacheability.Public);
Response.Cache.SetExpires(DateTime.Now.AddSeconds(300));
Response.Cache.VaryByParams["*"] = true;
Answer: D
Explanation: Cachability corresponds to the Location attribute. The Public value corresponds to any location.
We use the SetExpires to set the cache duration. Finally we use the “*” string to specify that all parameter
values are cached.
Reference:
.NET Framework Developer’s Guide, Caching Versions of a Page, Based on Parameters [C#]
Actualtests.org – The Power of Knowing
.NET Framework Developer’s Guide, Setting Expirations for Page Caching [C#]
Incorrect Answers
A, B: Cachability has to be set.
C: We should use “*”, not “all” when specify VaryByParams.
Link: http://rapidshare.com/files/123109929/MCITP_Exam_70-646_Windows_Server_2008_Administration_eBook.pdf
0 comments:
Post a Comment