2013年10月31日星期四

Latest Microsoft 070-576-Csharp of exam practice questions and answers

ITCertKing can provide you a pertinence training and high quality exercises, which is your best preparation for your first time to attend Microsoft certification 070-576-Csharp exam. ITCertKing's exercises are very similar with the real exam, which can ensure you a successful passing the Microsoft certification 070-576-Csharp exam. If you fail the exam, we will give you a full refund.

Many people think that passing some difficult IT certification exams needs to be proficient in much of IT expertise and only these IT personnels who grasp the comprehensive IT knowledge would be able to enroll in the exam. In fact, there are many ways to help you make up for your lack of knowledge, and pass the IT certification exams in the same. Perhaps you would spend less time and effort than the people who grasp fairly comprehensive expertise. The saying goes, all roads lead to Rome.

Exam Code: 070-576-Csharp
Exam Name: Microsoft (PRO: Designing and Developing Microsoft SharePoint 2010 Applications)
One year free update, No help, Full refund!
Total Q&A: 150 Questions and Answers
Last Update: 2013-10-31

Your dream is very high, so you have to find a lot of material to help you prepare for the exam. ITCertKing Microsoft 070-576-Csharp exam materials can help you to achieve your ideal. ITCertKing Microsoft 070-576-Csharp exam materials is a collection of experience and innovation from highly certified IT professionals in the field. Our products will let you try all the problems that may arise in a really examinations. We can give you a guarantee, to ensure that candidates get a 100% correct answer.

There is no site can compare with ITCertKing site's training materials. This is unprecedented true and accurate test materials. To help each candidate to pass the exam, our IT elite team explore the real exam constantly. I can say without hesitation that this is definitely a targeted training material. The ITCertKing's website is not only true, but the price of materials are very reasonable. When you choose our products, we also provide one year of free updates. This allow you to have more ample time to prepare for the exam. So that you can eliminate your psychological tension of exam, and reach a satisfactory way.

Life is full of choices. Selection does not necessarily bring you happiness, but to give you absolute opportunity. Once missed selection can only regret. ITCertKing's Microsoft 070-576-Csharp exam training materials are necessary to every IT person. With this materials, all of the problems about the Microsoft 070-576-Csharp will be solved. ITCertKing's Microsoft 070-576-Csharp exam training materials have wide coverage, and update speed. This is the most comprehensive training materials. With it, all the IT certifications need not fear, because you will pass the exam.

About 070-576-Csharp exam, ITCertKing has a great sound quality, will be the most trusted sources. Feedback from the thousands of registration department, a large number of in-depth analysis, we are in a position to determine which supplier will provide you with the latest and the best 070-576-Csharp practice questions. The ITCertKing Microsoft 070-576-Csharp training materials are constantly being updated and modified, has the highest Microsoft 070-576-Csharp training experience. If you want to pass the exam,please using our ITCertKing Microsoft 070-576-Csharp exam training materials. ITCertKing Microsoft 070-576-Csharp Add to your shopping cart, it will let you see unexpected results.

070-576-Csharp Free Demo Download: http://www.itcertking.com/070-576-Csharp_exam.html

NO.1 You are designing an external binary large object (BLOB) store provider by implementing the
ISPExternalBinaryProvider interface. The farm has existing sites that contain content. Your
implementation has been verified to be working correctly.
You need to ensure that content within existing sites is moved using the external BLOB store provider.
You also must ensure that the solution does not require further custom coding.
Which approach should you recommend?
A. Perform a backup and restore on each site.
B. Perform a backup and restore of each content database.
C. Perform a backup and restore on each site collection.
D. Perform a backup and restore of the configuration database.
Answer: C

Microsoft certification training   070-576-Csharp   070-576-Csharp   070-576-Csharp   070-576-Csharp braindump

NO.2 You are designing a custom SharePoint 2010 solution package. It will include a feature that contains a
Web Part, which requires a custom assembly for its functionality.
You need to design the feature based on the following requirements:
.The Web Part must be a partial trust application and support a custom Code Access Security (CAS)
policy.
.The solution package must be deployed without the need of farm-level administrator permissions.
Which approach should you recommend?
A. Create the Web Part feature and deploy the required assembly to the bin directory of only the Web
applications that require it. Then delegate administration to the site administrator. Lastly, create a custom
CAS policy file and point to it the web.config file of the application.
B. Create the Web Part feature assembly with a strong name and deploy it using a .wsp file to the
_app_bin directory of all Web applications where it is needed. Then activate it using delegated
administration.
C. Create an assembly with a strong name and deploy it to the global assembly cache at the farm level.
Activate the feature at the site collection level with delegated administration.
D. Create the Web Part feature as a sandboxed solution.
Answer: D

Microsoft   070-576-Csharp   070-576-Csharp study guide   070-576-Csharp original questions   070-576-Csharp questions   070-576-Csharp test

NO.3 You are designing a SharePoint 2010 solution to manage statements of work.
You need to design the solution according to the following requirements:
.Store the customer ID, purchase order number, estimated completion date, and other fields associated
with specific documents as they are uploaded.
.The information must be created so that it can be set within the Microsoft Word document information
panel.
.Programmatically execute a series of tasks, including assigning tasks to validate the information and
creating team sites, based on information related to each document.
.These tasks must run to completion, even if the server is rebooted.
Which approach should you recommend?
A. Create a document library for a custom content type that contains site columns for the document
information. Develop a SharePoint workflow for the document library to execute the document tasks.
B. Create a document library for a custom content type that contains site columns for the document
information. Develop an event receiver for the document library to execute the document tasks.
C. Create a custom list with fields to store the additional items and an attached document. Develop a
SharePoint workflow for the custom list to execute the additional tasks.
D. Create a custom list with fields to store the additional items and an attached document. Develop an
event receiver for the custom list to execute the additional tasks.
Answer: A

Microsoft exam   070-576-Csharp answers real questions   070-576-Csharp certification

NO.4 You are designing a SharePoint 2010 information architecture plan for a client that specifies the
mechanics of implementing content type change control.
The requirements for the change control plan specify that:
.Site managers can create site-specific content types based on the content types in the parent site.
.Content types must not be overwritten when changes are made to parent site content types.
.Site managers can change child site content types.
You need to specify a content type change control plan that meets all these requirements.
Which approach should you recommend?
A. Direct the site manager to explicitly set the read-only property of the content type to true. Direct the site
collection manager to make the specified change required in the child site to the content type at the site
collection level.
B. Direct the site manager to explicitly set the read-only property of the content type to true. Perform a
push-down operation from the parent site to overwrite the required changes to the read-only content types
in all the child sites.
C. Define the content type as read-only at the child site level. Direct the site manager to explicitly set the
read-only property of the content type to false to make changes to the content type. Then change the
read-only property to true.
D. Define the content type as sealed. Direct the site manager to explicitly set the sealed property of the
content type to false to make changes to the content type. Then change the sealed property of the
content type to true.
Answer: C

Microsoft   070-576-Csharp practice test   070-576-Csharp braindump   070-576-Csharp

NO.5 You are helping an organization s executive team to design an automated approval process to
standardize certain documents.
You have the following requirements:
.The documents must be reviewed and approved by multiple teams in the approval chain.
.Each reviewer must provide feedback as part of completing a review.
.Each reviewer must either approve or reject the documents.
.After review, the document status must be changed; an e-mail must be generated to the document author
and the next reviewer in the approval chain; and a task should be created for the next reviewer in the
approval chain.
You must design a custom workflow solution for the document approval process on a SharePoint 2010
site.
What should the solution include?
A. an initiation form to collect the reviewer s feedback and a Simple activity to approve and reject the
document
B. an association form to collect the reviewer s feedback and a Composite activity to support conditional
activities such as approval and rejection
C. a task form to collect the reviewer s feedback and a Composite activity to support conditional activities
such as approval and rejection
D. a task form to collect the reviewer s feedback and a Simple activity to approve and reject the document
Answer: C

Microsoft   070-576-Csharp   070-576-Csharp

NO.6 You need to specify the correct artifacts to use in a SharePoint 2010 application for a school district.
The school district s administrator needs to be able to search for student information on an intranet
SharePoint 2010 portal. Student information is currently available in another database, which supports an
Open Database Connectivity (ODBC) driver.
You need to design the solution to meet the following requirements:
.Provide a user interface to search for a student based on name.
.Enable the administrator to select the correct student name from the search results.
.Provide a student header section that displays the primary student identity information, which will enable
the administrator to correlate any new information with the correct student.
.Provide additional data entry pages to add or update additional student information.
Which approach should you recommend?
A. Design HTML Web pages to render the student details. Install these pages under the
/templates/_layouts/1033 folder and load these pages in Web Parts.
B. Design connected Web Parts to share information among search data entry, student header
information, and new data entry information Web Parts.
C. Design a user control and load this control in a Web Part to search for a student. Then render the
student details in a SharePoint page.
D. Design a Web Part to search for a student. Then render the student record details in a SharePoint
page.
Answer: B

Microsoft braindump   070-576-Csharp test answers   070-576-Csharp   070-576-Csharp pdf   070-576-Csharp answers real questions

NO.7 You are designing a SharePoint 2010 solution for a large sales force.
You have the following requirements:
.Each sales region must have its own site within the solution with lists to track the current sales data of the
sales executives.
.These lists must contain information about the status of sales opportunities, the estimated price, the
expected close date, and contact information for the potential sale.
.The welcome page for the root site must display a current summary for all regions, including the
percentage of sales expected to close within the next month and total expected revenue over time.
You need to design the solution to meet all these requirements.
What approach should you recommend?
A. Create site columns from the Managed Metadata Services feature within Central Administration to
specify and display the sales information on the root site.
B. Create an event receiver for each list to copy the list data when an item is inserted into a list on the root
site. Create a List View Web Part to display the sales information on the root site.
C. Create a content type for the metadata to be tracked. Use a Content Query Web Part to display the
sales information on the root site.
D. Create a custom workflow to manage the list item data and update properties on the Web Part to
display the sales information on the root site.
Answer: C

Microsoft exam simulations   070-576-Csharp   070-576-Csharp   070-576-Csharp   070-576-Csharp test answers

NO.8 You are designing a SharePoint 2010 site.
You need to design the site to meet all the following requirements:
.Your business requires a consistent structure to manage sales proposal documents across all account
teams.
.The sales director must ensure that all sales documents conform to the same template.
.All sales proposals must be reviewed and approved by the sales manager.
.Every site must be created with a document library, a list of the account team members, and the account
status.
Which approach should you recommend?
A. Design a site template with a standard list of account team members and a shared document library to
hold the proposal documents.
B. Design a proposal content type to store proposal document metadata and a shared document library to
hold the proposal documents.
C. Design a proposal content type to include required metadata information about the proposal
documents. Also design a site template with a standard document library and account team members list
for consistency across all account teams.
D. Design a content type that uses a Microsoft Word template for proposal documents. The content type
includes required metadata. Also design a site template with a customized document library and list for
consistency across all account teams.
Answer: D

Microsoft demo   070-576-Csharp   070-576-Csharp exam dumps   070-576-Csharp

NO.9 You are designing a SharePoint 2010 application.
You need to ensure that a custom list named Phone Numbers is automatically created and added to the
site whenever a new Team Site is created.
Which approach should you recommend?
A. Create a feature that defines a Phone Numbers list template. Then activate the feature on the team
site.
B. Create a feature that defines a Phone Numbers list template. Then use feature stapling to associate
the feature with the site definition of the team site.
C. Create the custom Phone Numbers ListTemplate element and add the ListTemplate element to the
onet.xml file of the team site.
D. Create the custom fields, views, and other specifications for the Phone Numbers list definition and add
them to the schema.xml file.
Answer: B

Microsoft   070-576-Csharp   070-576-Csharp questions   070-576-Csharp

NO.10 You are using Business Connectivity Services to design a SharePoint 2010 application that connects to
an external database. The database users have accounts for authentication that are different from their
Active Directory accounts.
You have a requirement to allow users to connect to the external database without prompting the user for
credentials.
You need to store user credentials and use these credentials when connecting to the external database.
Which approach should you recommend?
A. Create a target application that uses the Microsoft Single Sign-On Service. Select the Connect with
Impersonated Custom Identity option when creating the connection to the database.
B. Create a target application that uses the Secure Store Service. Select the Connect with Impersonated
Custom Identity option when creating the connection to the database.
C. Create a target application that uses the Single Sign-On Service. Select the Connect with User s
Identity option when creating the connection to the database.
D. Create a target application that uses the Secure Store Service. Select the Connect with User s Identity
option when creating the connection to the database.
Answer: B

Microsoft practice test   070-576-Csharp dumps   070-576-Csharp questions   070-576-Csharp

NO.11 A SharePoint 2010 server farm has a custom feature installed that provides specialized business logic
for a SharePoint solution package. The solution package is being updated to include additional
functionality.
Your job is to specify a deployment method for the updates that will:
.Add the additional application business logic to the solution package.
.Provide the least downtime for the application.
.Automate the application upgrade a much as possible.
You need to update the solution package with additional business logic and meet all these requirements.
Which approach should you recommend?
A. Create a new feature containing the new business logic. Use the feature upgrade process to deploy the
solution package by incrementing the version number of the feature in the Feature.xml file.
B. Add the new business logic to the existing feature. Use the feature upgrade process to deploy the
solution package by incrementing the version number of the feature in the Feature.xml file.
C. Use Visual Studio 2010 to add the new business logic to the existing code in the .wsp package for the
feature. Create two timer jobs - one to retract the current solution package and one to deploy the solution
package with the updated feature.
D. Use the object model to create a custom feature receiver to increment the version property of the
SPFeatureDefinition class. Increment the version number of the current solution in the Feature.xml file.
Answer: B

Microsoft test questions   070-576-Csharp pdf   070-576-Csharp   070-576-Csharp   070-576-Csharp

NO.12 You are designing a SharePoint 2010 application that stores information about each machine in a
factory. This information includes an inventory of parts, the machine s maintenance history, and a
document library of repair manuals for each machine in Microsoft Word format.
The application must:
.Establish links between the factory machine data, the machine part inventory, the maintenance history,
and the repair manuals to allow the display of additional fields from the other lists.
.Enforce relational integrity between the data to create custom views for various business users.
.Allow nontechnical users to update the individual list data and views, as well as to update the manuals.
.Enforce relationships that allow cascade deletes of items from the machine parts list when items are
deleted from the machine list, but prevent data in the machine parts list from being orphaned.
You need to design a data access plan that meets all these requirements and allows all data to be
managed within the SharePoint 2010 system.
Which plan should you recommend?
A. Create tables in Microsoft SQL Server for each set of inventories. Create relationships with primary and
foreign keys linking the tables. Use Business Connectivity Services (BCS) to connect SharePoint 2010
lists to these tables to manage the data.
B. Create tables in Microsoft SQL Server for each set of inventories. Create relationships with primary and
foreign keys linking the tables. Store machine part manuals in a SharePoint document library and use
event receivers to synchronize data in the lists and libraries.
C. Use SharePoint 2010 lists and document libraries to store data. Create relationships using lookup
fields and relationship joins between the lists and document libraries.
D. Use SharePoint 2010 lists and document libraries to store data. Create a custom workflow to update
information in the lists and document libraries.
Answer: C

Microsoft test answers   070-576-Csharp   070-576-Csharp original questions   070-576-Csharp

NO.13 You are designing a SharePoint 2010 application that includes a Task list.
You have the following requirements:
.For each task, allow users to specify one of three values for an item named Phase using a drop-down
menu.
.Allow contributors to add new values for the Phase item.
You need to design this application without using custom code.
Which approach should you recommend?
A. Create a Multiple lines of text field type on the Task list.
B. Create a Single line of text field type on the Task list.
C. Create a Choice field type on the Task list that gets values from a custom list.
D. Create a Lookup field type on the Task list that gets values from a custom list.
Answer: D

Microsoft pdf   070-576-Csharp questions   070-576-Csharp   070-576-Csharp

NO.14 You are designing a SharePoint 2010 solution that allows users to enter address information for
contacts into a list named Address.
You have the following requirements:
.Ensure that users enter full nine-digit zip codes for the address information.
.Display a custom message indicating that a zip code is invalid if the entered zip code does not match the
full nine-digit requirements.
You need to ensure that the application is designed to meet these requirements.
Which approach should you recommend?
A. Create a custom command.
B. Create a Datasheet view on the Address list.
C. Use the Form Options of the Address list.
D. Create a formula on the column.
Answer: D

Microsoft   070-576-Csharp   070-576-Csharp   070-576-Csharp

NO.15 You are designing an asset management solution using SharePoint 2010.
You need to design a solution that meets the following requirements:
.Binary large objects (BLOBs) cannot be stored in Microsoft SQL Server.
.There can be no custom development or third-party products.
Which approach should you recommend?
A. Install and configure Remote BLOB Storage and enable the content databases to use Remote BLOB
Storage.
B. Install and configure Remote BLOB Storage and enable the configuration databases to use Remote
BLOB Storage.
C. Install and configure an external BLOB store provider and enable the content databases to use the
external BLOB store provider.
D. Install and configure an external BLOB store provider and enable the configuration databases to use
the external BLOB store provider.
Answer: A

Microsoft study guide   070-576-Csharp   070-576-Csharp

NO.16 You are designing a SharePoint 2010 feature. The feature includes a feature receiver that executes
code on activation and deactivation.
The feature receiver code interacts with a Web service, which could cause errors beyond your control.
You need to ensure that the feature does not activate or deactivate if the Web service causes an error.
Which approach should you recommend?
A. Wrap your code in a try-catch block. Log the error and issue another request to the Web service in the
catch block.
B. Wrap your code in a try-catch block. Log the error and throw an exception in the catch block.
C. Wrap your code in a try-catch block. Only catch exceptions of type SPException.
D. Wrap your code in a try-finally block. Log any issues your code encounters in the finally block.
Answer: B

Microsoft questions   070-576-Csharp test questions   070-576-Csharp practice test   070-576-Csharp questions   070-576-Csharp certification training   070-576-Csharp exam dumps

NO.17 You are designing a SharePoint 2010 application to store 50 GB of digital assets, including audio and
video files that are up to 20 MB in size.
You have the following requirements:
.The disk storage system must use standard hard drives and must be configured to optimize read
performance.
.The SharePoint 2010 database uses Microsoft SQL Server Express 2008.
.The application must leverage standard SharePoint 2010 components to limit the requirement for custom
development.
You need to design a storage solution that meets all of these requirements.
Which approach should you recommend?
A. Enable FILESTREAM storage for a Microsoft SQL Server Express 2008 database on a RAID 0 disk
system. Then install and configure remote Binary Large Object (BLOB) storage in SharePoint 2010.
B. Store the assets directly in Microsoft SQL Server Express 2008 and create multiple content databases
on a RAID 0 disk system.
C. Install and configure support for external BLOB storage for SharePoint 2010 and use the
ISPExternalBinaryProvider interface to manage files on a RAID 0 disk system.
D. Install and configure support for external BLOB storage for SharePoint 2010 and configure a Microsoft
SQL Server Express 2008 database to store BLOBs on a RAID 5 disk system.
Answer: A

Microsoft   070-576-Csharp   070-576-Csharp

NO.18 You are designing a SharePoint 2010 solution that stores employee information in a list named
Employees and company information in a list named Company.
Each company has one or more employees.
You need to recommend that a developer add a new column so that a one-to-many relationship is created
between the Company list and Employees list.
Which approach should you recommend?
A. Add an External Data column on the Employees list.
B. Add a Lookup column on the Employees list.
C. Add a Managed Metadata column on the Company list.
D. Add a Lookup column on the Company list.
Answer: B

Microsoft certification training   070-576-Csharp   070-576-Csharp exam simulations

NO.19 You are designing a SharePoint 2010 solution.
You need to design the solution to meet the following requirements:
.All sites must have a consistent structure when initially created.
.All sites must include a document library that contains Word documents with searchable properties.
.Site users must be able to generate a spreadsheet detailing the properties of the document library
contents.
Which approach should you recommend?
A. Create a feature to create the required site structure programmatically. Create a content type for the
document library. Create a custom workflow for the document library to allow users to generate the
spreadsheet.
B. Create a feature to create the required site structure programmatically. Use feature stapling to
associate the feature with all site definitions. Create a custom action for the standard document library to
allow users to generate the spreadsheet.
C. Create a custom site definition for the sites and allow only that site definition to be used. Create a
content type for the document library. Create a custom action for the document library to allow users to
generate the spreadsheet.
D. Create a custom site definition for the sites and allow only that site definition to be used. Create a
content type for the document library. Create a custom event receiver to allow users to generate the
spreadsheet.
Answer: C

Microsoft pdf   070-576-Csharp demo   070-576-Csharp exam dumps   070-576-Csharp

NO.20 You are designing a solution that includes a custom list on a SharePoint 2010 site.
You need to design the solution to meet the following requirements:
.The solution needs to add customized files to the site as part of the list provisioning.
.The list should only be provisioned in the sites of the site collection where it is specifically needed.
.The files must no longer remain provisioned in the site if the custom list is removed.
Which approach should you take?
A. Design a custom list. Implement list event receivers to add the custom files to the bin directory of the
Web application.
B. Design a custom feature solution. Implement feature event receivers on the Activate action to add files
to the site.
C. Design a custom feature solution. Implement feature event receivers on these two actions:
.Install action to add files
.Uninstall action to delete the files that were added during installation of the feature
D. Design a custom feature solution. Implement feature event receivers on these two actions:
.Activate action to add the files
.Deactivate action to delete the files that were added during activation of the feature
Answer: D

Microsoft   070-576-Csharp certification   070-576-Csharp test answers   070-576-Csharp

ITCertKing offer the latest 000-540 exam material and high-quality VCPC510 pdf questions & answers. Our 00M-670 VCE testing engine and C-TSCM62-64 study guide can help you pass the real exam. High-quality MB6-871 dumps training materials can 100% guarantee you pass the exam faster and easier. Pass the exam to obtain certification is so simple.

Article Link: http://www.itcertking.com/070-576-Csharp_exam.html

Microsoft certification 70-513-Csharp best exam questions and answers

About the 70-513-Csharp exam certification, reliability can not be ignored. 70-513-Csharp exam training materials of ITCertKing are specially designed. It can maximize the efficiency of your work. We are the best worldwide materials provider about this exam.

If you think you can face unique challenges in your career, you should pass the Microsoft 70-513-Csharp exam. ITCertKing is a site that comprehensively understand the Microsoft 70-513-Csharp exam. Using our exclusive online Microsoft 70-513-Csharp exam questions and answers, will become very easy to pass the exam. ITCertKing guarantee 100% success. ITCertKing is recognized as the leader of a professional certification exam, it provides the most comprehensive certification standard industry training methods. You will find that ITCertKing Microsoft 70-513-Csharp exam questions and answers are most thorough and the most accurate questions on the market and up-to-date practice test. When you have ITCertKing Microsoft 70-513-Csharp questions and answers, it will allow you to have confidence in passing the exam the first time.

Having a Microsoft 70-513-Csharp certification can enhance your employment prospects,and then you can have a lot of good jobs. ITCertKing is a website very suitable to candidates who participate in the Microsoft certification 70-513-Csharp exam. ITCertKing can not only provide all the information related to the Microsoft certification 70-513-Csharp exam for the candidates, but also provide a good learning opportunity for them. ITCertKing be able to help you pass Microsoft certification 70-513-Csharp exam successfully.

Exam Code: 70-513-Csharp
Exam Name: Microsoft (Windows Communication Foundation Development with Microsoft C#.NET Framework 4)
One year free update, No help, Full refund!
Total Q&A: 136 Questions and Answers
Last Update: 2013-10-31

Please select our ITCertKing to achieve good results in order to pass Microsoft certification 70-513-Csharp exam, and you will not regret doing so. It is worth spending a little money to get so much results. Our ITCertKing can not only give you a good exam preparation, allowing you to pass Microsoft certification 70-513-Csharp exam, but also provide you with one-year free update service.

70-513-Csharp Free Demo Download: http://www.itcertking.com/70-513-Csharp_exam.html

NO.1 A Windows Communication Foundation (WCF) solution exposes the following service
over a TCP binding. (Line numbers are included for reference only.)
01 [ServiceContract]
02 [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]
03 public class DataAccessService
04 {
05 [OperationContract]
06 public void PutMessage(string message)
07 {
08 MessageDatabase.PutMessage(message);
09 }
10 [OperationContract]
11 public string[] SearchMessages(string search)
12 {
13 return MessageDatabase.SearchMessages(search);
14 }
15 }
MessageDatabase supports a limited number of concurrent executions of its methods.
You need to change the service to allow up to the maximum number of executions of the
methods of MessageDatabase. This should be implemented without preventing customers
from connecting to the service. What should you do?
A. Change the service behavior as follows.
[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple,
InstanceContextMode = InstanceContextMode.Single)]
B. Change the service behavior as follows.
[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Single, InstanceContextMode
= InstanceContextMode.PerSession)]
C. Add a throttling behavior to the service, and configure the maxConcurrentCalls.
D. Add a throttling behavior to the service, and configure the maxConcurrentSessions.
Answer: C

Microsoft   70-513-Csharp   70-513-Csharp   70-513-Csharp original questions

NO.2 You are creating a Window s Communication Foundation (WCF) service application.
The application needs to service many clients and requests simultaneously. The
application also needs to ensure subsequent individual client requests provide a stateful
conversation. You need to configure the service to support these requirements. Which
attribute should you add to the class that is implementing the service?
A. [ ServiceBehavior ( InstanceContextMode = InstanceContextMode.PerSession ,
ConcurrencyMode = ConcurrencyMode.Single )]
B. [ ServiceBehavior ( InstanceContextMode = InstanceContextMode.PerCall ,
ConcurrencyMode = ConcurrencyMode.Reentrant )]
C. [ ServiceBehavior ( InstanceContextMode = InstanceContextMode.PerSession ,
ConcurrencyMode = ConcurrencyMode.Multiple )]
D. [ ServiceBehavior ( InstanceContextMode = InstanceContextMode.PerCall ,
ConcurrencyMode = ConcurrencyMode.Multiple )]
Answer: C

Microsoft pdf   70-513-Csharp   70-513-Csharp   70-513-Csharp   70-513-Csharp

NO.3 A service implements the following contract. (Line numbers are included for reference
only.)
01 [ServiceContract(SessionMode = SessionMode.Required)]
02 public interface IContosoService
03 {
04 [OperationContract(IsOneWay = true, IsInitiating = true)]
05 void OperationOne(string value);
06
07 [OperationContract(IsOneWay = true, IsInitiating = false)]
08 void OperationTwo(string value);
09 }
The service is implemented as follows.
20 class ContosoService : IContosoService
21 { 22 public void OperationOne(string value) { }
23
24 public void OperationTwo(string value) { }
25 }
ContosoService uses NetMsmqBinding to listen for messages. The queue was set up to
use transactions for adding and removing messages. You need to ensure that
OperationOne and OperationTwo execute under the same transaction context when they
are invoked in the same session. What should you do?
A. Insert the following attribute to OperationOne on IContosoService.
[TransactionFlow(TransactionFlowOption.Mandatory)]
Insert the following attribute to OperationTwo on IContosoService.
[TransactionFlow(TransactionFlowOption.Mandatory)]
Insert the following attribute to OperationOne on ContosoService.
[OperationBehavior(TransactionScopeRequired = true, TransactionAutoComplete =
false)]
B. Insert the following attribute to OperationTwo on ContosoService.
[OperationBehavior(TransactionScopeRequired = true, TransactionAutoComplete =
true)]
C. Add the following XML segment to the application config file in the
system.serviceModel/bindings configuration section.
<netMsmqBinding>
<binding name="contosoTx" durable="true" receiveContextEnabled="true" />
</netMsmqBinding>
Then use the NetMsmqBinding named contosoTx to listen for messages from the clients.
D. Add the following XML segment to the application config file in the
system.serviceModel/bindings configuration section.
<customBinding>
<binding name="contosoTx">
<transactionFlow />
<binaryMessageEncoding />
<msmqTransport durable="true" />
</binding>
</customBinding>
Then use the CustomBinding named contosoTx to listen for messages from the clients.
Answer: B

Microsoft answers real questions   70-513-Csharp study guide   70-513-Csharp

ITCertKing offer the latest LOT-405 exam material and high-quality MB5-858 pdf questions & answers. Our 000-652 VCE testing engine and 70-321 study guide can help you pass the real exam. High-quality 74-344 dumps training materials can 100% guarantee you pass the exam faster and easier. Pass the exam to obtain certification is so simple.

Article Link: http://www.itcertking.com/70-513-Csharp_exam.html

Microsoft certification 70-562-Csharp exam best training materials

ITCertKing is a website to achieve dreams of many IT people. ITCertKing provide candidates participating in the IT certification exams the information they want to help them pass the exam. Do you still worry about passing Microsoft certification 70-562-Csharp exam? Have you thought about purchasing an Microsoft certification 70-562-Csharp exam counseling sessions to assist you? ITCertKing can provide you with this convenience. ITCertKing's training materials can help you pass the certification exam. ITCertKing's exercises are almost similar to real exams. With ITCertKing's accurate Microsoft certification 70-562-Csharp exam practice questions and answers, you can pass Microsoft certification 70-562-Csharp exam with a high score.

ITCertKing is an excellent IT certification examination information website. In ITCertKing you can find exam tips and materials about Microsoft certification 70-562-Csharp exam. You can also free download part of examination questions and answers about Microsoft 70-562-Csharp in ITCertKing. ITCertKing will timely provide you free updates about Microsoft 70-562-Csharp exam materials. Besides, the exam materials we sold are to provide the answers. Our IT experts team will continue to take advantage of professional experience to come up with accurate and detailed exam practice questions to help you pass the exam. In short, we will provide you with everything you need about Microsoft certification 70-562-Csharp exam.

Exam Code: 70-562-Csharp
Exam Name: Microsoft (TS:MS.NET Framework 3.5, ASP.NET Application Development)
One year free update, No help, Full refund!
Total Q&A: 98 Questions and Answers
Last Update: 2013-10-31

ITCertKing Microsoft 70-562-Csharp exam training materials are provided in PDF format and software format. It contains Microsoft 70-562-Csharp exam questions and answers. These issues are perfect, Which can help you to be successful in the Microsoft 70-562-Csharp exam. ITCertKing Microsoft 70-562-Csharp exam comprehensively covers all syllabus and complex issues. The ITCertKing Microsoft 70-562-Csharp exam questions and answers is the real exam challenges, and help you change your mindset.

Microsoft certification 70-562-Csharp exam can give you a lot of change. Such as work, life would have greatly improve. Because, after all, 70-562-Csharp is a very important certified exam of Microsoft. But 70-562-Csharp exam is not so simple.

If you want to through the Microsoft 70-562-Csharp certification exam to make a stronger position in today's competitive IT industry, then you need the strong expertise knowledge and the accumulated efforts. And pass the Microsoft 70-562-Csharp exam is not easy. Perhaps through Microsoft 70-562-Csharp exam you can promote yourself to the IT industry. But it is not necessary to spend a lot of time and effort to learn the expertise. You can choose ITCertKing's Microsoft 70-562-Csharp exam training materials. This is training product that specifically made for IT exam. With it you can pass the difficult Microsoft 70-562-Csharp exam effortlessly.

Microsoft 70-562-Csharp is one of the important certification exams. ITCertKing's experienced IT experts through their extensive experience and professional IT expertise have come up with IT certification exam study materials to help people pass Microsoft Certification 70-562-Csharp exam successfully. ITCertKing's providing learning materials can not only help you 100% pass the exam, but also provide you a free one-year update service.

70-562-Csharp Free Demo Download: http://www.itcertking.com/70-562-Csharp_exam.html

NO.1 SortExpression="Theater" />

NO.2 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application has a Web form file named MovieReviews.aspx.
The MovieReviews.aspx file connects to a LinqDataSource DataSource named LinqDataSource1 that
has a primary key named MovieID.
The application has a DetailsView control named DetailsView1.
The MovieReviews.aspx file contains the following code fragment. (Line numbers are included for
reference only.)
01 <asp:DetailsView ID="DetailsView1" runat="server"
02 DataSourceID="LinqDataSource1"
03
04 />
05 <Fields>
06 <asp:BoundField DataField="MovieID" HeaderText="MovieID"
07 InsertVisible="False"
08 ReadOnly="True" SortExpression="MovieID" />
09 <asp:BoundField DataField="Title" HeaderText="Title"

NO.3 You have a Microsoft ASP.NET Framework version 1.0 application. The application does not use any
features that are deprecated in the Microsoft .NET Framework version 3.5. The application runs on
Microsoft IIS 6.0.
You need to configure the application to use the ASP.NET Framework version 3.5 without recompiling the
application.
What should you do?
A. Edit the ASP.NET runtime version in IIS 6.0.
B. Edit the System.Web section handler version number in the machine.config file.
C. Add the requiredRuntime configuration element to the Web.config file and set the version attribute to
v3.5.
D. Add the supportedRuntime configuration element in the Web.config file and set the version attribute to
v3.5.
Answer: A

Microsoft test   70-562-Csharp dumps   70-562-Csharp exam prep   70-562-Csharp   70-562-Csharp

NO.4 You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.
You use Windows Authentication for the application. You set up NTFS file system permissions for the
Sales group to access a particular file. You discover that all the users are able to access the file.
You need to ensure that only the Sales group users can access the file.
What additional step should you perform?
A. Remove the rights from the ASP.NET user to the file.
B. Remove the rights from the application pool identity to the file.
C. Add the <identity impersonate="true"/> section to the Web.config file.
D. Add the <authentication mode="[None]"> section to the Web.config file.
Answer: C

Microsoft   70-562-Csharp certification training   70-562-Csharp   70-562-Csharp

NO.5 SortExpression="Title" />

NO.6 ShowEditButton="True" ShowInsertButton="True" />

NO.7 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a Web page that contains the following two XML fragments. (Line numbers are included for
reference only.)
01 <script runat="server">
02
03 </script>
04 <asp:ListView ID="ListView1" runat="server"
05 DataSourceID="SqlDataSource1"
06
07 >
08 <ItemTemplate>
09 <td>
10 <asp:Label ID="LineTotalLabel" runat="server"
11 Text='<%# Eval("LineTotal") %>' />
12 </td>
13 </ItemTemplate>
The SqlDataSource1 object retrieves the data from a Microsoft SQL Server 2005 database table. The
database table has a column named LineTotal.
You need to ensure that when the size of the LineTotal column value is greater than seven characters, the
column is displayed in red color.
What should you do?
A. Insert the following code segment at line 06.
OnItemDataBound="FmtClr"
Insert the following code segment at line 02.
protected void FmtClr
(object sender, ListViewItemEventArgs e)
{
Label LineTotal = (Label)
e.Item.FindControl("LineTotalLabel");
if ( LineTotal.Text.Length > 7)
{ LineTotal.ForeColor = Color.Red; }
else
{LineTotal.ForeColor = Color.Black; }
}
B. Insert the following code segment at line 06.
OnItemDataBound="FmtClr"
Insert the following code segment at line 02.
protected void FmtClr
(object sender, ListViewItemEventArgs e)
{
Label LineTotal = (Label)
e.Item.FindControl("LineTotal");
if ( LineTotal.Text.Length > 7)
{LineTotal.ForeColor = Color.Red; }
else
{LineTotal.ForeColor = Color.Black; }
}
C. Insert the following code segment at line 06.
OnDataBinding="FmtClr"
Insert the following code segment at line 02.
protected void FmtClr(object sender, EventArgs e)
{
Label LineTotal = new Label();
LineTotal.ID = "LineTotal";
if ( LineTotal.Text.Length > 7)
{LineTotal.ForeColor = Color.Red; }
else
{ LineTotal.ForeColor = Color.Black; }
}
D. Insert the following code segment at line 06.
OnDataBound="FmtClr"
Insert the following code segment at line 02.
protected void FmtClr(object sender, EventArgs e)
{
Label LineTotal = new Label();
LineTotal.ID = "LineTotalLabel";
if ( LineTotal.Text.Length > 7)
{LineTotal.ForeColor = Color.Red; }
else
{LineTotal.ForeColor = Color.Black; }
}
Answer: A

Microsoft original questions   70-562-Csharp test questions   70-562-Csharp   70-562-Csharp

NO.8 <asp:BoundField DataField="Theater" HeaderText="Theater"

NO.9 You are maintaining a Microsoft ASP.NET Web Application that was created by using the Microsoft .NET
Framework version 3.5.
You obtain the latest version of the project from the source control repository. You discover that an
assembly reference is missing when you attempt to compile the project on your computer.
You need to compile the project on your computer.
What should you do?
A. Add a reference path in the property pages of the project to the location of the missing assembly.
B. Add a working directory in the property pages of the project to the location of the missing assembly.
C. Change the output path in the property pages of the project to the location of the missing assembly.
D. Delete the assembly reference. Add a reference to the missing assembly by browsing for it on your
computer.
Answer: A

Microsoft   70-562-Csharp   70-562-Csharp   70-562-Csharp dumps   70-562-Csharp test questions

NO.10 You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.
The computer that hosts the ASP.NET Web application contains a local instance of Microsoft SQL Server
2005. The instance uses Windows Authentication. You plan to configure the membership providers and
the role management providers.
You need to install the database elements for both the providers on the local computer.
What should you do?
A. Run the sqlcmd.exe -S localhost E command from the command line.
B. Run the aspnet_regiis.exe -s localhost command from the command line.
C. Run the sqlmetal.exe /server:localhost command from the command line.
D. Run the aspnet_regsql.exe -E -S localhost -A mr command from the command line.
Answer: D

Microsoft   70-562-Csharp test   70-562-Csharp original questions

NO.11 You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.
You deploy the application on a Microsoft IIS 6.0 Web server. The server runs on a worker process
isolation mode, and it hosts the .NET Framework version 1.1 Web applications.
When you attempt to browse the application, the following error message is received:
"It is not possible to run different versions of ASP.NET in the same IIS process. Please use the IIS
Administration Tool to reconfigure your server to run the application in a separate process."
You need to ensure that the following requirements are met:
All the applications run on the server.
All the applications remain in process isolation mode.
All the applications do not change their configurations.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Create a new application pool and add the new application to the pool.
B. Configure the IIS 6.0 to run the WWW service in the IIS 5.0 isolation mode.
C. Configure the new application to use the .NET Framework version 2.0 in the IIS 6.0 Manager.
D. Set autoConfig="false" on the <processModel> property in the machine.config file.
E. Disable the Recycle worker processes option in the Application Pool Properties dialog box.
Answer: A AND C

Microsoft   70-562-Csharp   70-562-Csharp

NO.12 </Fields>

NO.13 </asp:DetailsView>
You need to ensure that the users can insert and update content in the DetailsView1 control. You also
need to prevent duplication of the link button controls for the Edit and New operations.
Which code segment should you insert at line 03?
A. AllowPaging="false"
AutoGenerateRows="false"
B. AllowPaging="true"
AutoGenerateRows="false"
DataKeyNames="MovieID"
C. AllowPaging="true"
AutoGenerateDeleteButton="false"
AutoGenerateEditButton="true"
AutoGenerateInsertButton="true"
AutoGenerateRows="false"
D. AllowPaging="false"
AutoGenerateDeleteButton="false"
AutoGenerateEditButton="true"
AutoGenerateInsertButton="true"
AutoGenerateRows="false"
DataKeyNames="MovieID"
Answer: B

Microsoft   70-562-Csharp   70-562-Csharp   70-562-Csharp   70-562-Csharp demo   70-562-Csharp pdf
10. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a Web form and add the following code fragment.
<asp:Repeater ID="rptData" runat="server"
DataSourceID="SqlDataSource1"
ItemDataBound="rptData_ItemDataBound">
<ItemTemplate>
<asp:Label ID="lblQuantity" runat="server"
Text='<%# Eval("QuantityOnHand") %>' />
</ItemTemplate>
</asp:Repeater>
The SqlDataSource1 DataSource control retrieves the Quantity column values from a table named
Products.
You write the following code segment to create the rptData_ItemDataBound event handler. (Line numbers
are included for reference only.)
01 protected void rptData_ItemDataBound(object sender,
02 ?RepeaterItemEventArgs e)
03 {
04
05 if(lbl != null)
06 if(int.Parse(lbl.Text) < 10)
07 lbl.ForeColor = Color.Red;
08 }
You need to retrieve a reference to the lblQuantity Label control into a variable named lbl.
Which code segment should you insert at line 04?
A. Label lbl = Page.FindControl("lblQuantity") as Label;
B. Label lbl = e.Item.FindControl("lblQuantity") as
Label;
C. Label lbl = rptData.FindControl("lblQuantity") as
Label;
D. Label lbl = e.Item.Parent.FindControl("lblQuantity") as
Label;
Answer: B

Microsoft exam   70-562-Csharp   70-562-Csharp   70-562-Csharp answers real questions

NO.14 <asp:CommandField ShowDeleteButton="false"

NO.15 You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.
The application uses ASP.NET AJAX, and you plan to deploy it in a Web farm environment.
You need to configure SessionState for the application.
Which code fragment should you use?
A. <sessionState mode="InProc"
cookieless="UseCookies"
/>
B. <sessionState mode="InProc"
cookieless="UseDeviceProfile"
/>
C. <sessionState mode="SQLServer"
cookieless="false"
sqlConnectionString="Integrated Security=SSPI;data
source=MySqlServer;"
/>
D. <sessionState mode="SQLServer"
cookieless="UseUri"
sqlConnectionString="Integrated Security=SSPI;data
source=MySqlServer;"
/>
Answer: C

Microsoft   70-562-Csharp   70-562-Csharp   70-562-Csharp certification training   70-562-Csharp answers real questions

NO.16 You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.
You plan to set up authentication for the Web application. The application must support users from
untrusted domains.
You need to ensure that anonymous users cannot access the application.
Which code fragment should you add to the Web.config file?
A. <system.web>
<authentication mode="Forms">
<forms loginUrl="login.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
B. <system.web>
<authentication mode="Forms">
<forms loginUrl="login.aspx" />
</authentication>
<authorization>
<deny users="*" />
</authorization>
</system.web>
C. <system.web>
<authentication mode="Windows">
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
D. <system.web>
<authentication mode="Windows">
</authentication>
<authorization>
<deny users="*" />
</authorization>
</system.web>
Answer: A

Microsoft study guide   70-562-Csharp practice test   70-562-Csharp braindump

ITCertKing offer the latest CAT-500 exam material and high-quality MB6-886 pdf questions & answers. Our JN0-730 VCE testing engine and 700-101 study guide can help you pass the real exam. High-quality 70-463 dumps training materials can 100% guarantee you pass the exam faster and easier. Pass the exam to obtain certification is so simple.

Article Link: http://www.itcertking.com/70-562-Csharp_exam.html

The Best Microsoft 070-502-VB Exam Training materials

After the advent of the ITCertKing's latest Microsoft certification 070-502-VB exam practice questions and answers, passing Microsoft certification 070-502-VB exam is no longer a dream of the IT staff. All of ITCertKing's practice questions and answers about Microsoft certification 070-502-VB exam have high quality and 95% similarity with the real exam questions. ITCertKing is worthful to choose. If you choose ITCertKing's products, you will be well prepared for Microsoft certification 070-502-VB exam and then successfully pass the exam.

If you want to buy Microsoft 070-502-VB exam information, ITCertKing will provide the best service and the best quality products. Our exam questions have been authorized by the manufacturers and third-party. And has a large number of IT industry professionals and technology experts, based on customer demand, according to the the outline developed a range of products to meet customer needs. Microsoft 070-502-VB exam certification with the highest standards of professional and technical information, as the knowledge of experts and scholars to study and research purposes. All of the products we provide have a part of the free trial before you buy to ensure that you fit with this set of data.

Are you one of them? Are you still worried and confused because of the the various exam materials and fancy training courses exam? ITCertKing is the right choice for you. Because we can provide you with a comprehensive exam, including questions and answers. All of these will help you to acquire a better knowledge, we are confident that you will through ITCertKing the Microsoft 070-502-VB certification exam. This is our guarantee to all customers.

When you're in pain, it is best to learn things. Learning will make you invincible. ITCertKing Microsoft 070-502-VB exam training materials can also help you to be invincible. With this training materials, you will receive the Microsoft 070-502-VB certification which recognized and accepted internationally. Then all of your life, including money and position, will improve a lot. Until then, will you still feel painful? No, you will be very happy. You should thanks ITCertKing which provide you with a good training materials. It can help you when you lost, and let you not only improve your own quality, but also demonstratethe value of your perfect life.

Exam Code: 070-502-VB
Exam Name: Microsoft (TS: MS.NET Frmewrk3.5, Wndws Presentation Fndation App Dev)
One year free update, No help, Full refund!
Total Q&A: 102 Questions and Answers
Last Update: 2013-10-31

If you are still hesitate to choose our ITCertKing, you can try to free download part of Microsoft 070-502-VB exam certification exam questions and answers provided in our ITCertKing. So that you can know the high reliability of our ITCertKing. Our ITCertKing will be your best selection and guarantee to pass Microsoft 070-502-VB exam certification. Your choose of our ITCertKing is equal to choose success.

070-502-VB Free Demo Download: http://www.itcertking.com/070-502-VB_exam.html

NO.1 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application contains a data source and a TextBox control named txtUnitPrice. The Text property of
the txtUnitPrice control is bound to the data source by using two-way binding.
You write the following code segment.
01 Private Sub OverridePrice(ByVal newPrice As Decimal)
02
03 txtUnitPrice.Text = newPrice
04 End Sub
You need to ensure that after the OverridePrice method is called, changes to the data source do not
propagate to txtUnitPrice.
Which code segment should you insert at line 02?
A. txtUnitPrice.Clear()
B. txtUnitPrice.DataContext = Nothing
C. BindingOperations.ClearBinding(txtUnitPrice, TextBox.TextProperty)
D. Dim binding As Binding = BindingOperations.GetBinding(txtUnitPrice, _
TextBox.TextProperty)
binding.NotifyOnSourceUpdated = False
Answer: C

Microsoft   070-502-VB   070-502-VB exam prep   070-502-VB   070-502-VB

NO.2 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The XAML page for the application will display employee information from an XML file. The following code
fragment is an excerpt from the XML file.
<Employee>
<Manager FirstName="Adam" LastName="Barr" Photo="E1.jpg"/>
<Engineer FirstName="Mu" LastName="Han" Photo="E2.jpg"/>
...
</Employee>
The file is exposed as a resource named employees.
You add the following templates under the Window.Resources element.
<DataTemplate x:Key="Manager">
<Image Source="{Binding XPath=@Photo}" Height="50"/>
</DataTemplate>
<DataTemplate x:Key="Engineer">
<Image Source="{Binding XPath=@Photo}" Height="40"/>
</DataTemplate>
You need to ensure that the selection of templates is dependent on the XML element being rendered.
Which two tasks should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Add the following ListBox control to the XAML code fragment for the window.
<ListBox ItemsSource="{Binding
Source={StaticResource employees}, XPath=/Employee/*}"/>
B. Add the following template to the Windows.Resources element.
<HierarchicalDataTemplate x:Key="Employee" ItemsSource=
"{Binding XPath=/Employee/*}">
<TextBlock Text="Employees" FontSize="20" />
</HierarchicalDataTemplate>
C. Add the following template to the Windows.Resources element.
<HierarchicalDataTemplate x:Key="Employee" ItemsSource=
"{Binding XPath=*}">
<TextBlock Text="Employees" FontSize="20" />
</HierarchicalDataTemplate>
D. Add the following ListBox control to the XAML code fragment for the page.
<ListBox ItemsSource="{Binding Source=
{StaticResource employees}, XPath=/Employee/*}">
<ListBox.ItemTemplateSelector>
<local:EmployeeTemplateSelector
xmlns:local="clr-namespace:AppNamespace"/>
</ListBox.ItemTemplateSelector>
</ListBox>
E. Add the following class to the code-behind file.
Public Class EmployeeTemplateSelector
Inherits DataTemplateSelector
Public Overloads Overrides Function _
SelectTemplate(ByVal item As Object, _
ByVal container As DependencyObject) As DataTemplate
Dim data As XmlElement = TryCast(item, XmlElement)
Return TryCast(DirectCast(container, _
FrameworkElement).FindResource(data.LocalName), DataTemplate)
End Function
End Class
Answer: D AND E

Microsoft   070-502-VB demo   070-502-VB exam prep   070-502-VB   070-502-VB exam

NO.3 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You create a window for the application.
You need to ensure that the following requirements are met:
An array of strings is displayed by using a ListBox control in a two-column format.
The data in the ListBox control flows from left to right and from top to bottom.
What should you do?
A. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="2"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following VB.net code to associate the array of strings to the ListBox control.
myList.ItemsSource = arrayOfString
B. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following vb.net code to associate the array of strings to the ListBox control.
myList.ItemsSource = arrayOfString
C. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following vb.net code to associate the array of strings to the ListBox control.
myListView.ItemsSource = arrayOfString
D. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
</Grid>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following vb.net code to associate the array of strings to the ListBox control.
myList.ItemsSource = arrayOfString
Answer: A

Microsoft exam dumps   070-502-VB   070-502-VB   070-502-VB certification

NO.4 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You plan to use the application to preview video files.
You write the following XAML code fragment.
<Window
x:Class="myClass" xmlns=
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="myWindow" Height="300" Width="300">
<StackPanel Background="Black">
<StackPanel HorizontalAlignment="Center"
Orientation="Horizontal">
<Button Name="btnPlay" Margin="10" Content="Play" />
</StackPanel>
</StackPanel>
</Window>
You need to ensure that the application plays only the first 10 seconds of a video that you want to preview.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Insert the following XAML fragment at line 03.
<MediaElement Name="myMediaElement" Stretch="Fill" />
B. Insert the following XAML fragment at line 03.
<MediaElement Name="myMediaElement"
Source="MediaFileSelected.wmv" Stretch="Fill" />
C. Create the following method in the code-behind file.
Public Sub PlayMedia(ByVal sender As Object, _
ByVal args As RoutedEventArgs)
myMediaElement.Play()
End Sub
D. Insert the following XAML fragment at line 07.
<StackPanel.Triggers>
<EventTrigger RoutedEvent="Button.Click" SourceName="btnPlay">
<EventTrigger.Actions>
<BeginStoryboard Name= "myBegin">
<Storyboard SlipBehavior="Slip">
<MediaTimeline Source="MediaFileSelected.wmv"
Storyboard.TargetName="myMediaElement"
BeginTime="0:0:0" Duration="0:0:10" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</StackPanel.Triggers>
E. Insert the following XAML fragment at line 07.
<StackPanel.Triggers>
<EventTrigger RoutedEvent="Button.Click" SourceName="btnPlay">
<EventTrigger.Actions>
<BeginStoryboard Name= "myBegin">
<Storyboard SlipBehavior="Slip">
<MediaTimeline
Storyboard.TargetName="myMediaElement"
BeginTime="0:0:0" Duration="0:0:10" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</StackPanel.Triggers>
Answer: A AND D

Microsoft   070-502-VB certification   070-502-VB demo   070-502-VB

NO.5 You are creating a Windows Presentation Foundation application for a car dealer. You use
Microsoft .NET Framework 3.5 to create the application.
You are creating a window that will display a list of available cars. The list will be sorted on the basis of the
Make property.
You try to run the XAML code fragment for the window. The following section of the code fragment does
not compile. (Line numbers are included for reference only.)
01 <Window.Resources>
02 ...
03 <CollectionViewSource x:Key="vw"
04 Source="{StaticResource cars}">
05 <CollectionViewSource.SortDescriptions>
06 <SortDescription PropertyName="Make" />
07 </CollectionViewSource.SortDescriptions>
08 </Window.Resources>
You receive the following error message: "Type 'SortDescriptions' was not found."
You need to ensure that the XAML code fragment sorts the list of available cars correctly.
What should you do?
A. Replace line of the XAML code fragment with the following code fragment.
<componentModel:SortDescription PropertyName="Make" xmlns:componentModel=
"clr-namespace:System.ComponentModel;assembly=System"/>
B. Replace line of the XAML code fragment with the following code fragment.
<componentModel:SortDescription PropertyName="Make" xmlns:componentModel=
"clr-namespace:System.ComponentModel;assembly=WindowsBase"/>
C. Add the following code segment immediately after the IntializeComponent method call in the
constructor.
Dim view As BindingListCollectionView = _
TryCast(CollectionViewSource.GetDefaultView(lst.ItemsSource), _
BindingListCollectionView)
If view IsNot Nothing Then
view.SortDescriptions.Add(New SortDescription("Make", _
ListSortDirection.Ascending))
End If
D. Remove lines through from the XAML code fragment. Add the following code segment
immediately after the InitializeComponent method call in the constructor.
Dim view As BindingListCollectionView = _
TryCast(CollectionViewSource.GetDefaultView(lst.ItemsSource), _
BindingListCollectionView)
If view IsNot Nothing Then
view.SortDescriptions.Add(New SortDescription("Make", _
ListSortDirection.Ascending))
End If
Answer: B

Microsoft exam prep   070-502-VB   070-502-VB   070-502-VB study guide

NO.6 5. The application, named EnterpriseApplication.exe, runs over the network.
You add the WindowSize parameter and the WindowPosition parameter to the Settings.settings file by
using the designer at the User Scope Level. The dimensions and position of the window are read from the
user configuration file.
The application must retain the original window size and position for users executing the application.
You need to ensure that the following requirements are met:
The window dimensions for each user are saved in the user configuration file.
User settings persist when a user exits the application.
Which configuration setting should you use?
A. Private Sub OnClosing(ByVal sender As Object, ByVal e _
As System.ComponentModel.CancelEventArgs)
My.Settings.Default.WindowPosition = New Point(Me.Left, Me.Top)
My.Settings.Default.WindowSize = New Size(Me.Width, Me.Height)
My.Settings.Default.Save()
End Sub
B. Private Sub OnClosing(ByVal sender As Object, ByVal e As _
System.ComponentModel.CancelEventArgs)
Dim appKey As RegistryKey = _
Registry.CurrentUser.CreateSubKey("Software\EnterpriseApplication")
Dim settingsKey As RegistryKey = _
appKey.CreateSubKey("WindowSettings")
Dim windowPositionKey As RegistryKey = _
settingsKey.CreateSubKey("WindowPosition")
Dim windowSizeKey As RegistryKey = _
settingsKey.CreateSubKey("WindowSize")
windowPositionKey.SetValue("X", Me.Left)
windowPositionKey.SetValue("Y", Me.Top)
windowSizeKey.SetValue("Width", Me.Width)
windowSizeKey.SetValue("Height", Me.Height)
End Sub
C. Private Sub OnClosing(ByVal sender As Object, ByVal e As _
System.ComponentModel.CancelEventArgs)
Dim doc As New System.Xml.XmlDocument()
doc.Load("EnterpriseApplication.exe.config")
Dim nodePosition As System.Xml.XmlNode = _
doc.SelectSingleNode("//setting[@name='WindowPosition']")
nodePosition.ChildNodes(0).InnerText = String.Format("{0},{1}", _
Me.Left, Me.Top)
Dim nodeSize As System.Xml.XmlNode = _
doc.SelectSingleNode("//setting[@name='WindowSize']")
nodeSize.ChildNodes(0).InnerText = String.Format("{0},{1}", _
Me.Width, Me.Height)
doc.Save("UserConfigDistractor2.exe.config")
End Sub
D. Private Sub Window_Closing(ByVal sender As Object, ByVal e As _
System.ComponentModel.CancelEventArgs)
Dim sw As New StreamWriter("EnterpriseApplication.exe.config", True)
sw.WriteLine("<EnterpriseApplication.Properties.Settings>")
sw.WriteLine("<setting name=""WindowSize"" serializeAs=""String"">")
sw.WriteLine(String.Format("<value>{0},{1}</value>", Me.Width, _
Me.Height))
sw.WriteLine("</setting>")
sw.WriteLine("<setting name=""WindowPosition"" _
serializeAs=""String"">")
sw.WriteLine(String.Format("<value>{0},{1}</value>", Me.Left, _
Me.Top))
sw.WriteLine("</setting>")
sw.WriteLine("</UserConfigProblem.Properties.Settings>")
sw.Close()
End Sub
Answer: A

Microsoft braindump   070-502-VB   070-502-VB test answers   070-502-VB
3. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application defines a BrowserWindow class. Each instance of the BrowserWindow class allows the
user to browse a Web site in a separate window. When a new browser window is opened, the user is
redirected to a predefined URL.
You write the following code segment.
01 Private Sub OpenNewWindow(ByVal sender As Object, _
02 ByVal e As RoutedEventArgs)
03 Dim newWindowThread As New Thread(New _
04 ThreadStart(AddressOf NewThreadProc))
05
06 newWindowThread.Start()
07 End Sub
08 Private Sub NewThreadProc()
09 10 End Sub
You need to ensure that the following requirements are met:
The main window of the application is not blocked when an additional browser window is created.
The application completes execution when the main window of the application is closed.
What should you do?
A. Insert the following code segment at line 05.
newWindowThread.SetApartmentState(ApartmentState.STA)
newWindowThread.IsBackground = True
Insert the following code segment at line 09.
Dim newWindow As New BrowserWindow()
newWindow.Show()
Dim app As New Application()
app.Run(newWindow)
B. Insert the following code segment at line 05.
newWindowThread.IsBackground = True
Insert the following code segment at line 09.
newWindowThread.SetApartmentState(ApartmentState.STA)
Dim newWindow As New BrowserWindow()
newWindow.Show()
Dim app As New Application()
app.Run(newWindow)
C. Insert the following code segment at line 05.
newWindowThread.SetApartmentState(ApartmentState.STA)
newWindowThread.IsBackground = False
Insert the following code segment at line 09.
Dim newWindow As New BrowserWindow()
System.Windows.Threading.Dispatcher.Run()
newWindow.Show()
D. Insert the following code segment at line 05.
newWindowThread.SetApartmentState(ApartmentState.STA)
newWindowThread.IsBackground = True
Insert the following code segment at line 09.
Dim newWindow As New BrowserWindow()
newWindow.Show()
System.Windows.Threading.Dispatcher.Run()
Answer: D

Microsoft answers real questions   070-502-VB dumps   070-502-VB certification training   070-502-VB

NO.7 You are converting a Windows Forms application to a Windows Presentation Foundation (WPF)
application. You use Microsoft .NET Framework 3.5 to create the WPF application.
The WPF application will reuse 30 forms of the Windows Forms application.
The WPF application contains the following class definition.
Public Class OwnerWindow
Implements System.Windows.Forms.IWin32Window
Private handle_Renamed As IntPtr
Public Property Handle() As IntPtr _
Implements System.Windows.Forms.IWin32Window.Handle
Get
Return handle_Renamed
End Get
Set(ByVal value As IntPtr)
handle_Renamed = value
End Set
End Property
End Class
You write the following code segment in the WPF application. (Line numbers are included for reference
only.)
01 Public Function LaunchWindowsFormsDialog(ByVal dialog As _
02 System.Windows.Forms.Form, ByVal wpfParent As Window) As _
03 System.Windows.Forms.DialogResult
04 Dim helper As New
05 System.Windows.Interop.WindowInteropHelper(wpfParent)
07 Dim owner As New OwnerWindow()
08
09 End Function
You need to ensure that the application can launch the reusable forms as modal dialogs.
Which code segment should you insert at line 08?
A. owner.Handle = helper.Owner
Dim db As New System.Windows.Forms.DialogResult()
Return db
B. owner.Handle = helper.Owner
Return dialog.ShowDialog(owner)
C. owner.Handle = helper.Owner
Dim result As Nullable(Of Boolean) = wpfParent.ShowDialog()
If result.HasValue Then
Return If(result.Value, System.Windows.Forms.DialogResult.OK, _
System.Windows.Forms.DialogResult.Cancel)
Else
Return System.Windows.Forms.DialogResult.Cancel
End If
D. owner.Handle = helper.Handle
Dim result As Nullable(Of Boolean) = wpfParent.ShowDialog()
If result.HasValue Then
Return If(result.Value, System.Windows.Forms.DialogResult.OK, _
System.Windows.Forms.DialogResult.Cancel)
Else
Return System.Windows.Forms.DialogResult.Cancel
End If
Answer: B

Microsoft test   070-502-VB   070-502-VB

NO.8 You are creating Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application has a TreeView class that builds the directory tree for a given directory.
You write the following class that represents a directory.
Class Folder
Public ReadOnly Property Name() As String
Get
...
End Get
End Property
Public ReadOnly Property Subfolders() As List(Of Folder)
Get
...
End Get
End Property
End Class
You write the following code segment. (Line numbers are included for reference only.)
01 Dim tree As New TreeView()
02 Dim folder As New Folder("C:\")
03
04 Dim labelFactory As New
05 FrameworkElementFactory(GetType(TextBlock))
06
07 template.VisualTree = labelFactory
08 tree.ItemTemplate = template
09 tree.ItemsSource = folder.Subfolders
You need to ensure that the TreeView class displays nodes that correspond to the child folders of the C:\
drive.
Which code segments should you insert at lines and 06?
A. 1. Insert the following code segment at line 03.
Dim template As New HierarchicalDataTemplate(folder)
template.ItemsSource = New Binding("Subfolders")
2. Insert the following code segment at line 06.
labelFactory.SetBinding(TextBlock.TextProperty, New Binding("Name"))
B. 1. Insert the following code segment at line 03.
Dim template As New HierarchicalDataTemplate(GetType(Folder))
template.ItemsSource = New Binding("Subfolders")
2. Insert the following code segment at line 06.
labelFactory.SetBinding(TextBlock.TextProperty, New Binding("Name"))
C. 1. Insert the following code segment at line 03.
Dim template As New HierarchicalDataTemplate("Folder")
template.ItemsSource = New Binding("Name")
2. Insert the following code segment at line 06.
labelFactory.SetBinding(TextBlock.TextProperty, _
New Binding("Subfolders"))
D. 1. Insert the following code segment at line 03.
Dim template As New HierarchicalDataTemplate("Folder")
template.ItemsSource = New Binding("Folder.Subfolders")
2. Insert the following code segment at line 06.
labelFactory.SetBinding(TextBlock.TextProperty, _
New Binding("Folder.Name"))
Answer: B

Microsoft   070-502-VB   070-502-VB   070-502-VB   070-502-VB   070-502-VB questions

NO.9 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application has a window that programatically displays an image. The window contains a grid named
theGrid.
The window displays images in their actual size. You want the images to be 200 pixels wide. You write the
following code segment.
01 Dim theImage As New Image()
02 theImage.Width = 200
03 Dim theBitmapImage As New BitmapImage()
04
05 theImage.Source = theBitmapImage
06 theGrid.Children.Add(theImage)
You need to ensure that the application meets the following requirements:
The window uses the least amount of memory to display the image.
The image is not skewed.
Which code segment should you insert at line 04?
A. theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage.DecodePixelWidth = 200
B. theBitmapImage.BeginInit()
theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage. End Init()
C. theBitmapImage.BeginInit()
theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage.DecodePixelWidth = 200
theBitmapImage. End Init()
D. theBitmapImage.BeginInit()
theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage. End Init()
theBitmapImage.DecodePixelWidth = 200
theBitmapImage.DecodePixelHeight = 200
Answer: C

Microsoft   070-502-VB   070-502-VB   070-502-VB test

NO.10 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You add a CommandBinding element to the Window element. The command has a keyboard gesture
CTRL+H. The Window contains the following MenuItem control.
<MenuItem Header="Highlight Content"
Command="local:CustomCommands.Highlight" />
You need to ensure that the MenuItem control is disabled and the command is not executable when the
focus shifts to a TextBox control that does not contain any text.
What should you do?
A. Set the IsEnabled property for the MenuItem control in the GotFocus event handler for the TextBox
controls.
B. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code-behind file for the window.
Private Sub Highlight_CanExecute(ByVal sender As Object, _
ByVal e As CanExecuteRoutedEventArgs)
Dim txtBox As TextBox = CType(sender, TextBox)
e.CanExecute = (txtBox.Text.Length > 0)
End Sub
C. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code-behind file for the window.
Private Sub Highlight_CanExecute(ByVal sender As Object, _
ByVal e As CanExecuteRoutedEventArgs)
Dim txtBox As TextBox
txtBox = CType(e.Source, TextBox)
e.CanExecute = (txtBox.Text.Length > 0)
End Sub
D. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code-behind file for the window.
Private Sub Highlight_CanExecute(ByVal sender As Object, _
ByVal e As CanExecuteRoutedEventArgs)
Dim Menu As MenuItem = CType(e.Source, MenuItem)
Dim txtBox As TextBox = CType(Menu.CommandTarget, TextBox)
Menu.IsEnabled = (txtBox.Text.Length > 0)
End Sub
Answer: C

Microsoft study guide   070-502-VB   070-502-VB test   070-502-VB

NO.11 You are creating a Windows Presentation Foundation (WPF) application by using Microsoft .NET
Framework 3.5.
The application contains a window that programatically displays an image. The window contains a Grid
control named theGrid. You write the following code segment. (Line numbers are included for reference
only.)
09 theGrid.Children.Add(theImage);
01 Dim theImage As New Image()
02 theImage.Width = 200
03 Dim theBitmapImage As New BitmapImage()
04 theBitmapImage.BeginInit()
05 theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
06 theBitmapImage.DecodePixelWidth = 200
07 theBitmapImage.EndInit()
08
09 theGrid.Children.Add(theImage)
You need to crop an elliptical region of the image such that the ellipse is centered at the location X=75
and Y=50.
Which code segment should you insert at line 08?
A. Dim croppedBitmap As New CroppedBitmap(theBitmapImage, _
New Int32Rect(75, 50, 105, 50))
theImage.Source = theBitmapImage
B. Dim croppedBitmap As New CroppedBitmap()
croppedBitmap.Source = theBitmapImage
croppedBitmap.SourceRect = New Int32Rect(75, 50, 105, 50)
theImage.Source = theBitmapImage
C. theImage.Source = theBitmapImage
Dim clipGeometry As New EllipseGeometry(New Point(75, 50), 50, 25)
theImage.Clip = clipGeometry
D. theImage.Source = theBitmapImage
Dim clipGeometry As New EllipseGeometry()
clipGeometry.Center = New Point(75, 50)
theImage.Clip = clipGeometry
Answer: C

Microsoft   070-502-VB certification   070-502-VB exam prep   070-502-VB   070-502-VB

NO.12 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application will display documents by using an instance of the FlowDocumentPageViewer class. The
instance is named fdpv. Users can highlight and annotate the content of the documents.
You need to ensure that annotations made to a document are saved and rendered when the document is
displayed again.
Which code segment should you use?
A. Protected Sub OnTextInput(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
Dim store As AnnotationStore = _
New XmlStreamStore(AnnotationStream)
service.Enable(store)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Store.Flush()
service.Disable()
AnnotationStream.Close()
End If
End Sub
B. Protected Sub OnLoaded(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Store.Flush()
service.Disable()
AnnotationStream.Close()
End If
End Sub
C. Protected Sub OnLoaded(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
Dim store As AnnotationStore = New _
XmlStreamStore(AnnotationStream)
service.Enable(store)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Store.Flush()
service.Disable()
AnnotationStream.Close()
End If
End Sub
D. Protected Sub OnLoaded(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
Dim store As AnnotationStore = New _
XmlStreamStore(AnnotationStream)
service.Enable(store)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Disable()
AnnotationStream.Close()
End If
End Sub
Answer: C

Microsoft   070-502-VB original questions   070-502-VB   070-502-VB   070-502-VB

NO.13 You are creating a Windows Presentation Foundation (WPF) application by using Microsoft .NET
Framework 3.5.
The WPF application has a Grid control named rootGrid.
You write the following XAML code fragment.
<Window x:Class="MCP.HostingWinFormsControls"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/
presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="HostingWinFormsControls"
Loaded="Window_Loaded">
<Grid x:Name="rootGrid">
</Grid>
</Window>
You need to ensure that each time the WPF window opens, a Windows Forms control named
MyCustomFormsControl is added to rootGrid.
Which code segment should you use?
A. Private Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim host As New WindowsFormsHost()
Dim formsControl As New MyCustomFormsControl()
host.Child = formsControl;
rootGrid.Children.Add(host);
End Sub
B. Private Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim host As New ElementHost()
Dim formsControl As New MyCustomFormsControl()
host.Child = formsControl;
rootGrid.Children.Add(host);
End Sub
C. Private Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim formsControl As New MyCustomFormsControl()
formsControl.CreateControl()
Dim target As New HwndTarget(formsControl.Handle)
Dim formsElement As UIElement = TryCast(target.RootVisual, _
UIElement)
rootGrid.Children.Add(formsElement)
End Sub
D. Private Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim formsControl As New MyCustomFormsControl()
formsControl.CreateControl()
Dim source As HwndSource = HwndSource.FromHwnd(formsControl.Handle)
Dim formsElement As UIElement = TryCast(source.RootVisual, _
UIElement)
rootGrid.Children.Add(formsElement)
End Sub
Answer: A

Microsoft certification   070-502-VB dumps   070-502-VB exam prep   070-502-VB   070-502-VB

NO.14 You create a form by using Windows Presentation Foundation and Microsoft .NET Framework 3.5. The
form contains a status bar.
You plan to add a ProgressBar control to the status bar.
You need to ensure that the ProgressBar control displays the progress of a task for which you cannot
predict the completion time.
Which code segment should you use?
A. progbar.IsIndeterminate = True
B. progbar.IsIndeterminate = False
C. progbar.HasAnimatedProperties = True
D. progbar.HasAnimatedProperties = False
Answer: A

Microsoft   070-502-VB exam simulations   070-502-VB   070-502-VB braindump

NO.15 You are creating a Windows Presentation Foundation application.
You create a window for the application. The application contains an audio file named
AudioFileToPlay.wav.
You need to ensure that the following requirements are met:
The audio file is played each time you click the client area of the window.
The window provides optimal performance when the audio file is being played.
What should you do?
A. Add the following XAML line of code to the window.
<MediaElement Source="AudioFileToPlay.wav" />
B. Add the following code segment to the window constructor method in the code-behind file.
Dim player As New SoundPlayer()
player.SoundLocation = "AudioFileToPlay.wav"
player.Play()
C. Add the following code segment to the window MouseDown method in the code-behind file.
Dim player As New MediaElement()
player.Source = New Uri("AudioFileToPlay.wav", UriKind.Relative)
player.LoadedBehavior = MediaState.Manual
player.Play()
D. Add the following XAML code fragment to the window.
<Window.Triggers>
<EventTrigger RoutedEvent="Window.MouseDown">
<EventTrigger.Actions>
<SoundPlayerAction Source="AudioFileToPlay.wav"/>
</EventTrigger.Actions>
</EventTrigger>
</Window.Triggers>
Answer: D

Microsoft exam simulations   070-502-VB exam simulations   070-502-VB exam simulations   070-502-VB exam

NO.16 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You write the following code segment (Line numbers are included for reference only).
01 Dim content As Object
02 Dim fileName As String = "theFile"
03 Using xamlFile As New FileStream(fileName & ".xaml", _
04 FileMode.Open, FileAccess.Read)
06 content = TryCast(XamlReader.Load(xamlFile), Object)
07 End Using
08 Using container As Package = Package.Open(fileName & ".xps", _
09 FileMode.Create)10 11 End Using
You need to ensure that the following requirements are met:
The application converts an existing flow document into an XPS document.
The XPS document is generated by using the flow document format.
The XPS document has the minimum possible size.
Which code segment should you insert at line 10?
A. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As XpsSerializationManager = New _
System.Windows.Xps.XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.SaveAsXaml(paginator)
End Using
B. Using xpsDoc As New XpsDocument(container, _CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.Commit()
End Using
C. Using xpsDoc As New XpsDocument(container, _CompressionOption.Maximum)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
D. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
Answer: C

Microsoft original questions   070-502-VB questions   070-502-VB   070-502-VB test questions   070-502-VB

NO.17 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5. Your project contains a folder named Data.
You add a .MP3 file named song.mp3 in the Data folder. You set the Build Action property of the
application to Resource.
You need to access the .MP3 file from one of the application classes.
Which code segment should you use?
A. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.GetContentStream(uri)
Dim stream As Stream = sri.Stream
B. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.LoadComponent(uri)
Dim stream As Stream = sri.Stream
C. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.GetRemoteStream(uri)
Dim stream As Stream = sri.Stream
D. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.GetResourceStream(uri)
Dim stream As Stream = sri.Stream
Answer: D

Microsoft   070-502-VB questions   070-502-VB exam   070-502-VB original questions

NO.18 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You include functionality in the application to troubleshoot the window behavior.
You need to display a list of UI elements at a position in the window that is decided by the mouse click.
You also need to ensure that the list of elements is displayed in a message box.
Which code segment should you include in the code-behind file?
A. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
controlsToDisplay = CType(sender, UIElement).ToString()
MessageBox.Show(controlsToDisplay)
End Sub
B. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
For i = 0 To VisualChildrenCount - 1
controlsToDisplay += GetVisualChild(i).ToString() + "\r\n"
Next
MessageBox.Show(controlsToDisplay)
End Sub
C. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
Dim myVisual As Visual()
For i = 0 To VisualTreeHelper.GetChildrenCount(CType(sender, _
Visual)) - 1
myVisual(i) = CType(VisualTreeHelper.GetChild(CType(sender, _
Visual), i), Visual)
controlsToDisplay += myVisual.GetType().ToString() + "\r\n"
Next
MessageBox.Show(controlsToDisplay)
End Sub
D. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
Dim pt As Point = e.GetPosition(Me)
VisualTreeHelper.HitTest(Me, Nothing, _
New HitTestResultCallback(AddressOf HitTestCallback), _
New PointHitTestParameters(pt))
MessageBox.Show(controlsToDisplay)
End Sub
Private Function HitTestCallback(ByVal result As HitTestResult) As _
HitTestResultBehavior
controlsToDisplay += result.VisualHit.GetType().ToString() + "\r\n"
Return HitTestResultBehavior.Continue
End Function
Answer: D

Microsoft certification   070-502-VB study guide   070-502-VB

NO.19 You have created a Windows Presentation Foundation application by using Microsoft .NET Framework

NO.20 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application uses several asynchronous operations to calculate data that is displayed to the user. An
operation named tommorowsWeather performs calculations that will be used by other operations.
You need to ensure that tommorowsWeather runs at the highest possible priority.
Which code segment should you use?
A. tomorrowsWeather.Dispatcher.BeginInvoke( _
System.Windows.Threading.DispatcherPriority.Normal, _
New OneArgDelegate(AddressOf UpdateUserInterface), weather)
B. tomorrowsWeather.Dispatcher.BeginInvoke( _
System.Windows.Threading.DispatcherPriority.DataBind, _
New OneArgDelegate(AddressOf UpdateUserInterface), weather)
C. tomorrowsWeather.Dispatcher.BeginInvoke( _
System.Windows.Threading.DispatcherPriority.Send, _
New OneArgDelegate(AddressOf UpdateUserInterface), weather)
D. tomorrowsWeather.Dispatcher.BeginInvoke( _
System.Windows.Threading.DispatcherPriority.Render, _
New OneArgDelegate(AddressOf UpdateUserInterface), weather)
Answer: C

Microsoft practice test   070-502-VB answers real questions   070-502-VB exam   070-502-VB pdf   070-502-VB

ITCertKing offer the latest HP0-J66 exam material and high-quality 000-455 pdf questions & answers. Our MB6-700 VCE testing engine and HP5-T01D study guide can help you pass the real exam. High-quality 642-384 dumps training materials can 100% guarantee you pass the exam faster and easier. Pass the exam to obtain certification is so simple.

Article Link: http://www.itcertking.com/070-502-VB_exam.html