2013年8月31日星期六

Le meilleur matériel de formation examen Microsoft MB5-857

But que Pass4Test n'offre que les produits de qualité est pour vous aider à réussir le test Microsoft MB5-857 100%. Le test simulation offert par Pass4Test est bien proche de test réel. Si vous ne pouvez pas passer le test Microsoft MB5-857, votre argent sera tout rendu.

Pass4Test est un site à offrir particulièrement la Q&A Microsoft MB5-857, vous pouvez non seulement aprrendre plus de connaissances professionnelles, et encore obtenir le Passport de Certification Microsoft MB5-857, et trouver un meilleur travail plus tard. Les documentations offertes par Pass4Test sont tout étudiés par les experts de Pass4Test en profitant leurs connaissances et expériences, ces Q&As sont impresionnées par une bonne qualité. Il ne faut que choisir Pass4Test, vous pouvez non seulement passer le test Microsoft MB5-857 et même se renforcer vos connaissances professionnelles IT.

Pass4Test est un site d'offrir l'outil de formation convenable pour les candidats de test Certification IT. Le produit de Pass4Test peut aider les candidats à économiser les temps et les efforts. L'outil de formation est bien proche que test réel. Vous allez réussir le test 100% avec l'aide de test simulation de Pass4Test. C'est une bonne affaire à prendre le Certificat IT en coûtant un peu d'argent. N'hésitez plus d'ajouter l'outil de formation au panier.

L'équipe de Pass4Test se composant des experts dans le domaine IT. Toutes les Q&As sont examinées par nos experts. Les Q&As offertes par Pass4Test sont réputées pour sa grande couverture ( presque 100%) et sa haute précision. Vous pouvez trouver pas mal de sites similaires que Pass4Test, ces sites peut-être peuvent vous offrir aussi les guides d'études ou les services en ligne, mais on doit admettre que Pass4Test peut être la tête de ces nombreux sites. La mise à jour, la grande couverture des questions, la haute précision des réponses nous permettent à augmenter le taux à réussir le test Certification Microsoft MB5-857. Tous les points mentionnés ci-dessus seront une assurance 100% pour votre réussite de test Certification Microsoft MB5-857.

Pass4Test est un site particulier d'offrir la formation à propos de test Certification IT. C'est un bon choix pour vous aider à réussir le test Microsoft MB5-857. Pass4Test offre toutes les informations et les documentations plus nouvelles qui peut vous donner plus de chances à réussir le test.

Aujoud'hui, c'est une société de l'informatique. Beaucoup d'organisations peut provider l'outil de se former pour le test Certification Microsoft MB5-857. Mais on doit admettre que ces site n'ont pas la capacité à offrir une bonne Q&A, elles sont généralement très vagues et sans les points. C'est loin d'attirer les attentions des candidats.

Code d'Examen: MB5-857
Nom d'Examen: Microsoft (C5 2010 Project)
Questions et réponses: 55 Q&As

MB5-857 Démo gratuit à télécharger: http://www.pass4test.fr/MB5-857.html

NO.1 If you use the invoicing principle, when must you post the project 100%?
A.End of the calendar year
B.End of each accounting year
C.When the project is fully invoiced
D.End of the year in which the project has started
Answer: C

Microsoft   certification MB5-857   MB5-857   MB5-857 examen   MB5-857 examen

NO.2 Which of the following statements describes how revised budgets can be updated?
Choose the 2 that apply.
A.By entering the revised amount in the "Revised budget" field
B.By entering a percentage in the "Cost2%" field
C.A parameter determines how a revised budget must be updated
D.A revised budget must be updated manually
Answer: BD

Microsoft   MB5-857   MB5-857 examen   MB5-857 examen

NO.3 Which of the following statements describes the Project table?
A.It is possible to handle on-account invoicing.
B.It is possible to create a credit note as a copy of an invoice.
C.It is not possible to manage multiple invoicing.
D.It is not possible to create quotations.
Answer: A

certification Microsoft   certification MB5-857   certification MB5-857   MB5-857 examen   MB5-857

NO.4 Which of the following statements describes invoicing in the Project module?
A."On account+P/L post+normal" will change the phase to "Active".
B.When you choose "Closing invoice", the module text on the invoice will be "Closing invoice".
C.Closing invoice will only invoice "On account" project lines.
D."Closing invoice" will change the phase to "Finished".
Answer: B

certification Microsoft   MB5-857 examen   MB5-857

NO.5 Which of the following statements describes copying project entries to project lines?
A.Only entries with item numbers can be copied
B.Only entries regarding on-account invoices can be copied
C.Only entries that have not been copied before can be copied
D.Only entries with a cost type connected to a cost type group can be copied
Answer: D

Microsoft   MB5-857   MB5-857 examen   MB5-857 examen   MB5-857   MB5-857 examen

NO.6 You have posted 75 percent of a project to operation using Project/Periodic/P/L acc.Project.
You want to post more to operation.What is the minimum you need to post?
A.25 percent
B.75 percent
C.76 percent
D.100 percent
Answer: C

Microsoft examen   MB5-857   MB5-857   certification MB5-857

NO.7 How do you delete projects and project lines when projects are fully delivered and invoiced?
A.By Project/Setup/Reset project
B.By Project/Table/Project and command ALT+F9
C.By Project/Periodic/Jobs/Cleanup
D.By Project/Periodic/Cleanup/Delete project
Answer: D

Microsoft   certification MB5-857   certification MB5-857   MB5-857

NO.8 How can project budgets be updated automatically?
Choose the 2 that apply.
A.By Project/Periodic/Update cost budget
B.When changing phase from Created to Quotation
C.By "Update cost budget" button in project lines
D.When changing phase from Quotation to Active
Answer: CD

Microsoft   MB5-857   MB5-857   certification MB5-857

NO.9 What is the effect if you select "Delivery" in the locked field in the vendor table?
A. You cannot send any requisition to the vendor
B. You cannot post any deliveries or invoices from the vendor
C. Nothing happens. The field is for internal information only
D. You cannot send any inquiry to the vendor
Answer: B

Microsoft   MB5-857   MB5-857   MB5-857   MB5-857   MB5-857 examen

NO.10 Which of following statements describes the copying of project entries to project lines?
A.When you use method lines, you can select delivery date or posting date as the project line date.
B.When you use method lines, posting date will be used as the project line date.
C.When you use method lines, delivery date will be used as the project line date.
D.When you use method lines, Today will be used as the project line date.
Answer: A

Microsoft examen   MB5-857 examen   certification MB5-857   MB5-857   MB5-857 examen   MB5-857

Pour vous laisser savoir mieux que la Q&A Microsoft MB5-857 produit par Pass4Test est persuadante, le démo de Q&A Microsoft MB5-857 est gratuit à télécharger. Sous l'aide de Pass4Test, vous pouvez non seulement passer le test à la première fois, mais aussi économiser vos temps et efforts. Vous allez trouver les questions presque même que lesquels dans le test réel. C'est pourquoi tous les candidats peuvent réussir le test Microsoft MB5-857 sans aucune doute. C'est aussi un symbole d'un meilleur demain de votre carrière.

Le dernier examen Microsoft 70-505-Csharp gratuit Télécharger

Pass4Test est un seul site de provider le guide d'étude Microsoft 70-505-Csharp de qualité. Peut-être que vous voyiez aussi les Q&A Microsoft 70-505-Csharp dans autres sites, mais vous allez découvrir laquelle est plus complète. En fait, Pass4Test est aussi une resource de Q&A pour les autres site web.

Est-ce que vous vous souciez encore pour passer le test Microsoft 70-505-Csharp? Pourquoi pas choisir la formation en Internet dans une société de l'informatique. Un bon choix de l'outil formation peut résoudre le problème de prendre grande quantité de connaissances demandées par le test Microsoft 70-505-Csharp, et vous permet de préparer mieux avant le test. Les experts de Pass4Test travaillent avec tous efforts à produire une bonne Q&A ciblée au test Microsoft 70-505-Csharp. La Q&A est un bon choix pour vous. Vous pouvez télécharger le démo grantuit tout d'abord en Internet.

Pour vous laisser savoir mieux que la Q&A Microsoft 70-505-Csharp produit par Pass4Test est persuadante, le démo de Q&A Microsoft 70-505-Csharp est gratuit à télécharger. Sous l'aide de Pass4Test, vous pouvez non seulement passer le test à la première fois, mais aussi économiser vos temps et efforts. Vous allez trouver les questions presque même que lesquels dans le test réel. C'est pourquoi tous les candidats peuvent réussir le test Microsoft 70-505-Csharp sans aucune doute. C'est aussi un symbole d'un meilleur demain de votre carrière.

Vous Microsoft 70-505-Csharp pouvez télécharger le démo Microsoft 70-505-Csharp gratuit dans le site Pass4Test pour essayer notre qualité. Une fois vous achetez le produit de Pass4Test, nous allons faire tous effort à vous aider à réussir le test à la première fois et vous laisser savoir qu'il ne faut pas beaucoup de travaux pour réussir ce que vous voulez.

Le test Microsoft 70-505-Csharp est une examination de techniques professionnelles dans l'Industrie IT. Pass4Test est un site qui peut vous aider à réussir le test Microsoft 70-505-Csharp rapidement. Si vous utiliser l'outil de formation avant le test, vous apprendrez tous essences de test Certification Microsoft 70-505-Csharp.

Dans cette société de plus en plus intense, nous vous proposons à choisir une façon de se former plus efficace : moins de temps et d'argent dépensé. Pass4Test peut vous offrir une bonne solution avec une plus grande space à développer.

Code d'Examen: 70-505-Csharp
Nom d'Examen: Microsoft (TS: Microsoft .NET Framework 3.5, Windows Forms Application Development: 70-505Csharp Exam)
Questions et réponses: 111 Q&As

Le test Microsoft 70-505-Csharp est l'un très improtant dans tous les tests de Certification Microsoft, mais c'est toujours difficile à obtenir ce Certificat. La présence de Pass4Test est pour soulager les candidats. L'équipe de Pass4Test peut vous aider à économiser le temps et l'éffort. Vous pouvez passer le test sans aucune doute sous l'aide de notre Q&A.

70-505-Csharp Démo gratuit à télécharger: http://www.pass4test.fr/70-505-Csharp.html

NO.1 You are creating a Windows Forms application by using the .NET Framework 3.5. You create a new
form in your application. You add 100 controls at run time in the Load event handler of the form. Users
report that the form takes a long time to get displayed. You need to improve the performance of the form.
What should you do?
A. Call the InitLayout method of the form before adding all the controls.Call the PerformLayout method of
the form after adding all the controls.
B. Call the InitLayout method of the form before adding all the controls.Call the ResumeLayout method of
the form after adding all the controls.
C. Call the SuspendLayout method of the form before adding all the controls.Call the PerformLayout
method of the form after adding all the controls.
D. Call the SuspendLayout method of the form before adding all the controls.Call the ResumeLayout
method of the form after adding all the controls.
Answer: D

Microsoft examen   70-505-Csharp   70-505-Csharp examen   70-505-Csharp

NO.2 You are creating a Windows Forms application by using the .NET Framework 3.5. The application
requires a form to display a clock. You need to create a circular form to display the clock. Which code
segment should you use?
A. this.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.None;System.Drawing.Drawing2D.GraphicsPath path = new
System.Drawing.Drawing2D.GraphicsPath();path.AddEllipse(0, 0, this.Width, this.Height);Region reg =
new Region();this.Region = reg;
B. this.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.FixedSingle;System.Drawing.Drawing2D.GraphicsPath path =
new System.Drawing.Drawing2D.GraphicsPath();path.AddEllipse(0, 0, this.Width, this.Height);Region reg
= new Region(path);this.Region = reg;
C. this.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.None;System.Drawing.Drawing2D.GraphicsPath path = new
System.Drawing.Drawing2D.GraphicsPath();path.AddEllipse(0, 0, this.Width, this.Height);Region reg =
new Region(path);this.Region = reg;
D. this.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.FixedSingle;System.Drawing.Drawing2D.GraphicsPath path =
new System.Drawing.Drawing2D.GraphicsPath();path.AddEllipse(0, 0, this.Width, this.Height);Region
reg = new Region();this.Region = reg;
Answer: C

Microsoft examen   certification 70-505-Csharp   70-505-Csharp   70-505-Csharp   certification 70-505-Csharp

NO.3 You are creating a Windows Forms application by using the .NET Framework 3.5. You create a new
form in your application. You add a PrintDocument control named pntDoc to the form.
To support the print functionality, you write the following code segment in the application. (Line numbers
are included for reference only.) 01 pntDoc.BeginPrint +=
new PrintEventHandler(PrintDoc_BeginPrint);02 ...03 bool canPrint = CheckPrintAccessControl();04 if
(!canPrint) {05 06 }07 You need to ensure that the following requirements are met: When the user has
no print access, font and file stream initializations are not executed and the print operation is
cancelled.Print operations are logged whether or not the user has print access. What should you do.?
A. Add the following code segment at line 05. pntDoc.BeginPrint -= new
PrintEventHandler(PrintDoc_BeginPrint);pntDoc.BeginPrint += new PrintEventHandler((obj, args) =>
args.Cancel = true); Add the following code segment at line 07. pntDoc.BeginPrint += new
PrintEventHandler((obj1, args1) => LogPrintOperation());
B. Add the following code segment at line 05. pntDoc.BeginPrint += new
PrintEventHandler(delegate(object obj, PrintEventArgs args){}); Add the following code segment at line
07. pntDoc.BeginPrint -= new PrintEventHandler(PrintDoc_BeginPrint);pntDoc.BeginPrint += new
PrintEventHandler((obj1, args1) => LogPrintOperation());
C. Add the following code segment at line 05. pntDoc.BeginPrint -= new
PrintEventHandler(PrintDoc_BeginPrint);pntDoc.BeginPrint -= new PrintEventHandler(delegate(object
obj, PrintEventArgs args){}); Add the following code segment at line 07. pntDoc.BeginPrint -= new
PrintEventHandler((obj1, args1) => LogPrintOperation());
D. Add the following code segment at line 05. pntDoc.BeginPrint -= new PrintEventHandler((obj, args)
=> args.Cancel = true); Add the following code segment at line 07. pntDoc.BeginPrint += new
PrintEventHandler(PrintDoc_BeginPrint);pntDoc.BeginPrint -= new PrintEventHandler((obj1, args1) =>
LogPrintOperation());
Answer: A

Microsoft   70-505-Csharp examen   certification 70-505-Csharp   70-505-Csharp   70-505-Csharp

NO.4 You are creating a Windows Forms application by using the .NET Framework 3.5. You create a new
form named ConfigurationForm in the application. You add the following controls to the form. A
TabControl control named tbcConfigurationInformation along with two TabPage controls named
tabGeneralInfo and tabAdvancedSettingsA button control named btnShowAdvSettings You add the
following code segment in the form. (Line numbers are included for reference only.) 01 private void
ConfigurationForm_Load(object sender, EventArgs e)02 {03 this.btnShowAdvSettings.Click +=
new 04 EventHandler(btnShowAdvSettings_Click);05 06 }07 08 private void
btnShowAdvSettings_Click(object sender, EventArgs e)09 {10 11 } You are defining the initial
configuration and behavior of ConfigurationForm. You need to ensure that the following requirements are
met: The tabAdvancedSettings TabPage control is initially hidden when the Form is loaded.The
tabAdvancedSettings TabPage control is displayed when the btnShowAdvSettings button control is
clicked. What should you do?
A. Insert the following code segment at line 05. this.tabAdvancedSettings.Hide(); Insert the following code
segment at line 10. this.tabAdvancedSettings.Show();
B. Insert the following code segment at line 05.
tbcConfigurationInformation.TabPages.Remove(tabAdvancedSettings); Insert the following code
segment at line 10. tbcConfigurationInformation.TabPages.Add(tabAdvancedSettings);
C. Insert the following code segment at line 05.
tbcConfigurationInformation.SelectTab(tabAdvancedSettings);tbcConfigurationInformation.SetVisibleCor
e(false); Insert the following code segment at line 10.
tbcConfigurationInformation.SelectTab(tabAdvancedSettings);tbcConfigurationInformation.SetVisibleCor
e(true);
D. Insert the following code segment at line 05. this.tabAdvancedSettings.Invalidate(false); Insert the
following code segment at line 10. this.tabAdvancedSettings.Invalidate(true);
Answer: B

certification Microsoft   70-505-Csharp   certification 70-505-Csharp   70-505-Csharp

NO.5 You are creating a Windows Forms application by using the .NET Framework 3.5. You create a new
form in the application. You add a ContextMenuStrip control named ctxMenu to the form. You have a
user-defined class named CustomControl. You write the following code segment in the application. (Line
numbers are included for reference only.) 01 CustomControl myControl = new CustomControl();02 You
need to ensure that an instance of CustomControl is displayed on the form as a top-level item of the
ctxMenu control. Which code segment should you add at line 02?
A. ToolStripControlHost host = new ToolStripControlHost(myControl);ctxMenu.Items.Add(host);
B. ToolStripPanel panel = new
ToolStripPanel();panel.Controls.Add(myControl);ctxMenu.Controls.Add(panel);
C. ToolStripContentPanel panel = new
ToolStripContentPanel();panel.Controls.Add(myControl);ctxMenu.Controls.Add(panel);
D. ToolStripMenuItem menuItem = new ToolStripMenuItem();ToolStripControlHost host = new
ToolStripControlHost(myControl);menuItem.DropDownItems.Add(host);ctxMenu.Items.Add(menuItem);
Answer: A

Microsoft   certification 70-505-Csharp   certification 70-505-Csharp

Beaucoup de gens trouvent difficile à passer le test Microsoft 70-505-Csharp, c'est juste parce que ils n'ont pas bien choisi une bonne Q&A. Vous penserez que le test Microsoft 70-505-Csharp n'est pas du tout autant dur que l'imaginer. Le produit de Pass4Test non seulement comprend les Q&As qui sont impressionnées par sa grande couverture des Questions, mais aussi le service en ligne et le service après vendre.

Les meilleures Microsoft 070-545-Csharp examen pratique questions et réponses

Si vous traviallez dur encore pour préparer le test de Microsoft 070-545-Csharp et réaliser votre but plus vite, Pass4Test peut vous donner une solution plus pratique. Choisir la Q&As de Pass4Test qui vous assure que c'est pas un rêve à réussir le test Microsoft 070-545-Csharp.

Vous pouvez télécharger le démo gratuit pour prendre un essai. Vous aurez plus confiance sur Pass4Test. N'hésitez plus à choisir la Q&A Microsoft 070-545-Csharp comme votre guide d'étude.

Code d'Examen: 070-545-Csharp
Nom d'Examen: Microsoft (TS:Microsoft Visio 2007, Application Development)
Questions et réponses: 54 Q&As

Si vous êtes intéressé par l'outil formation Microsoft 070-545-Csharp étudié par Pass4Test, vous pouvez télécharger tout d'abord le démo. Le service de la mise à jour gratuite pendant un an est aussi offert pour vous.

Vous choisissez l'aide de Pass4Test, Pass4Test fait tous effort à vous aider à réussir le test. De plus, la mise à jour de Q&A pendant un an est gratuite pour vous. Vous n'avez plus raison à hésiter. Pass4Test est une meilleure assurance pour le succès de test Microsoft 070-545-Csharp. Ajoutez la Q&A au panier.

Pass4Test est un site d'offrir l'outil de formation convenable pour les candidats de test Certification IT. Le produit de Pass4Test peut aider les candidats à économiser les temps et les efforts. L'outil de formation est bien proche que test réel. Vous allez réussir le test 100% avec l'aide de test simulation de Pass4Test. C'est une bonne affaire à prendre le Certificat IT en coûtant un peu d'argent. N'hésitez plus d'ajouter l'outil de formation au panier.

Passer le test Microsoft 070-545-Csharp, obtenir le Passport peut améliorer la perspective de votre carrière et vous apporter plus de chances à développer votre boulot. Pass4Test est un site très convenable pour les candidats de test Certification Microsoft 070-545-Csharp. Ce site peut offrir les informations plus nouvelles et aussi provider les bonnes chances à se former davantage. Ce sont les points essentiels pour votre succès de test Certification Microsoft 070-545-Csharp.

070-545-Csharp Démo gratuit à télécharger: http://www.pass4test.fr/070-545-Csharp.html

NO.1 You need to create two PivotDiagrams in Office Visio 2007 by using the minimum number of Visio
documents and pages. What should you do?
A. Create two new Visio documents by using the PivotDiagram template.
B. Create a new Visio document by using the PivotDiagram template. Insert a PivotDiagram into the
existing page.
C. Create a new Visio document by using the PivotDiagram template. Insert a new page, and then insert
the PivotDiagram into the new page.
D. Create two new Visio documents by using the PivotDiagram template. Copy the PivotDiagram from
one document to a blank page in the other document.
Answer: B

Microsoft   070-545-Csharp   070-545-Csharp   070-545-Csharp   070-545-Csharp

NO.2 You have a drawing that contains custom shape data. You need to export the shape data to a new
Microsoft Office Excel 2007 workbook. What should you do?
A. Use the Database Wizard.
B. Use the Reports command.
C. Use the Export to Database command.
D. Save the file as an XML drawing.
Answer: B

certification Microsoft   070-545-Csharp   070-545-Csharp   070-545-Csharp examen

NO.3 You plan to create a timeline diagram by using Microsoft Office Project 2007. You need to ensure
that the Project data can be imported into Office Visio 2007 by using the Import Timeline Wizard. What
should you do?
A. In Project, save the data as a Microsoft Project File (*.mpp).
B. In Project, save the data as a Microsoft Project Database (*.mpd).
C. In Project, save the data as a Microsoft Project Workspace (*.mpw).
D. In Project, save the data as a Microsoft Project Exchange (*.mpx).
Answer: A

Microsoft   070-545-Csharp examen   070-545-Csharp examen

NO.4 You have a shape that contains a Shape Data row named Grade, where Type=0. You need to modify
the Grade row so that it is visible and read-only within the Shape Data window and the Shape Data dialog
box. What should you do?
A. In the Prop.Grade row, change the value of the Type cell to 9.
B. In the Prop.Grade row, change the value of the Type cell to 1, and the formula in the Format cell to
=Prop.Grade.
C. In the Prop.Grade row, change the formula in the Format cell to =LOCK.
D. Insert a new user-defined cell with the formula =
DEPENDSON(Prop.Grade)+SETF(GetRef(Prop.Grade),Prop.Grade).
Answer: B

Microsoft   070-545-Csharp   070-545-Csharp examen   070-545-Csharp   070-545-Csharp

NO.5 You need to create an organization chart of employees by using a comma-separated values (CSV) file
and the Organization Chart Wizard. Which two columns must the CSV file contain? (Each correct
answer presents part of the solution. Choose two.)
A. A column that uniquely identifies each employee
B. A column that identifies each employees job title
C. A column that contains each employees department
D. A column that identifies who each employee reports to
Answer: AD

certification Microsoft   certification 070-545-Csharp   070-545-Csharp   070-545-Csharp   070-545-Csharp

NO.6 You receive an XML data file and a separate XML schema file. The XML schema file describes the XML
data. You need to load the XML data file into the External Data window. Which two actions should
you perform? (Each correct answer presents part of the solution. Choose two.)
A. Transform the XML data file into the classic ActiveX Data Objects (ADO) RowsetSchema format.
B. Verify that the XML data file is well-formed and uses the namespace
http://schemas.microsoft.com/visio/2006/extension.
C. In a code module, use the DataRecordsets object Add method in the Office Visio 2007 document.
D. In a code module, use the DataRecordsets object AddFromXML method in the Office Visio 2007
document.
Answer: AD

Microsoft examen   070-545-Csharp   070-545-Csharp examen   070-545-Csharp

NO.7 An External Data recordset named Computer Inventory contains a column named MachineSN. You
create a new Office Visio 2007 diagram and load the Computers and Monitors stencil. A shape named PC
Master from the Computers and Monitors stencil has a Shape Data row labeled Serial Number. To add
a shape to the Visio 2007 diagram, you select the PC Master shape, and then drag and drop a row from
the External Data window to the Visio 2007 page. You notice that the new shapes Serial Number row is
empty. You need the values from the MachineSN column to be entered automatically into the row
labeled Serial Number when you add the shape. What should you do?
A. Change the name of the External Data recordsets column from MachineSN to Serial Number.
B. Change the name of the External Data recordset from Computer Inventory to Serial Number.
C. Modify the PC Master shape on the document stencil. Change the row name of the shape data row
from Serial Number to MachineSN.
D. Copy the PC Master shape to the document stencil. Change the label of the shape data row from
Serial Number to _visDM_MachineSN.
Answer: A

Microsoft   070-545-Csharp   070-545-Csharp examen

NO.8 You need to link a master shape to an ODBC database. The master shape must display the Update
Database Record command when you right-click the shape. What should you do?
A. In Office Visio 2007, run the Database Wizard.
B. From Control Panel, add a new ODBC data source.
C. In Office Visio 2007, run the Database Export Wizard.
D. In Office Visio 2007, run the Export to Database command.
Answer: A

Microsoft   certification 070-545-Csharp   070-545-Csharp examen   certification 070-545-Csharp   070-545-Csharp

NO.9 You create a shape that has two Shape Data rows named Department and CostCode. Both the
Department and the CostCode rows have the Type =1.
The Department row Format cell has the formula =A;B.
You need to modify the ShapeSheet to meet the following requirements:
When a user selects Department A, only CostCodes A1 and A2 are visible.
When a user selects Department B, only CostCodes B1 and B2 are visible.
What should you do?
A. Insert a new user-defined cell and enter the formula =SETF(GetRef(Prop.CostCode.Format), =
INDEX(LOOKUP(Prop.Department,Prop.Department.Format),"A1;A2|B1;B2","|"))
B. Enter the following formula in the Format cell of the CostCode Shape Data row.
=INDEX(LOOKUP(Prop.Department,Prop.Department.Format),"A1;A2|B1;B2")
C. Enter the following formula in the Format cell of the CostCode Shape Data row.
=""""&INDEX(LOOKUP(Prop.Department,Prop.Department.Format),"A1;A2|B1;B2","|")&""""
D. Enter the following formula in the Format cell of the CostCode Shape Data row.
=INDEX(LOOKUP(Prop.Department,Prop.Department.Format),"A1;A2|B1;B2","|")
Answer: D

Microsoft   070-545-Csharp   070-545-Csharp   070-545-Csharp   070-545-Csharp

NO.10 You have an ODBC database that contains information that you want to display in Office Visio 2007.
You need to update the database records by modifying shape data from Visio 2007. What are three
possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose three.)
A. In Visio, use the Link Data to Shapes command from the Data menu.
B. In Visio, point to Visio Extras, start the Database Wizard, and then click Link shapes to database
records.
C. In Visio, click Import Data on the Plan menu.
D. In Visio, point to Visio Extras and click Link to ODBC Database.
E. Create custom code functions to read data from the data source, update the Shape Data rows, and
then write the data to the data source.
Answer: BDE

Microsoft examen   070-545-Csharp   certification 070-545-Csharp

Vous Microsoft 070-545-Csharp pouvez télécharger le démo Microsoft 070-545-Csharp gratuit dans le site Pass4Test pour essayer notre qualité. Une fois vous achetez le produit de Pass4Test, nous allons faire tous effort à vous aider à réussir le test à la première fois et vous laisser savoir qu'il ne faut pas beaucoup de travaux pour réussir ce que vous voulez.

Guide de formation plus récente de Microsoft 070-521-Csharp

Certification Microsoft 070-521-Csharp est un des tests plus importants dans le système de Certification Microsoft. Les experts de Pass4Test profitent leurs expériences et connaissances professionnelles à rechercher les guides d'étude à aider les candidats du test Microsoft 070-521-Csharp à réussir le test. Les Q&As offertes par Pass4Test vous assurent 100% à passer le test. D'ailleurs, la mise à jour pendant un an est gratuite.

Les spécialistes d'expérience de Pass4Test ont fait une formation ciblée au test Microsoft 070-521-Csharp. Cet outil de formation est convenable pour les candidats de test Microsoft 070-521-Csharp. Pass4Test n'offre que les produits de qualité. Vous aurez une meilleure préparation à passer le test avec l'aide de Pass4Test.

Pass4Test peut offrir nombreux de documentations aux candidats de test Microsoft 070-521-Csharp, et aider les candidats à réussir le test. Les marétiaux visés au test Microsoft 070-521-Csharp sont tout recherchés par les experts avec leurs connaissances professionnelles et les expériences. Les charactéristiques se reflètent dans la bonne qualité de Q&A, la vitesse de la mise à jour. Le point plus important est que notre Q&A est laquelle le plus proche du test réel. Pass4Test peut vous permettre à réussir le test Microsoft 070-521-Csharp 100%.

La Q&A de Pass4Test vise au test Certificat Microsoft 070-521-Csharp. L'outil de formation Microsoft 070-521-Csharp offert par Pass4Test comprend les exercices de pratique et le test simulation. Vous pouvez trouver les autres sites de provider la Q&A, en fait vous allez découvrir que c'est l'outil de formation de Pass4Test qui offre les documentaions plus compètes et avec une meilleure qualité.

Code d'Examen: 070-521-Csharp
Nom d'Examen: Microsoft (UPG:Trans MCPD.NET Frmwk 3.5 Dev Skil to .NET 4 Wndws App De)
Questions et réponses: 108 Q&As

070-521-Csharp Démo gratuit à télécharger: http://www.pass4test.fr/070-521-Csharp.html

NO.1 </behaviors>
...
You need to configure the service to publish the service metadata.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Add the following XML segment between lines 10 and 11.
<endpoint?address=""
binding="mexHttpBinding"
contract="IMetadataExchange"
/>
B. Add the following XML segment between lines 10 and 11.
<endpoint?address=""
binding="basicHttpBinding"
contract="IMetadataExchange"
/>
C. Add the following XML segment between lines15 and 16.
<serviceDiscovery>
<announcementEndpoints>
<endpoint address=""/>
</announcementEndpoints>
</serviceDiscovery>
D. Add the following XML segment between lines 15 and 16
<serviceMetadata httpGetEnabled="true"/>
Answer: AD

Microsoft examen   070-521-Csharp   070-521-Csharp
17. Four Windows Communication Foundation (WCF) services are hosted in Microsoft Internet
Information Services (IIS). No behavior configuration exists in the web.config file.
You need to configure the application so that every service and endpoint limits the number of concurrent
calls to 50 and the number of concurrent sessions to 25.
Which XML segment should you add to the system.serviceModel configuration section of the web.config
file?
A. <behaviors>
<serviceBehaviors>
<behavior name="*">
<serviceThrottling maxConcurrentCalls="50" maxConcurrentSessions="25"/>
</behavior>
</serviceBehaviors>
</behaviors>
B. <behaviors>
<serviceBehaviors>
<behavior name="default">
<serviceThrottling maxConcurrentCalls="50" maxConcurrentSessions="25"/>
</behavior>
</serviceBehaviors>
</behaviors>
C. <behaviors>
<serviceBehaviors>
<behavior name="">
<serviceThrottling maxConcurrentCalls="50" maxConcurrentSessions="25"/>
</behavior>
</serviceBehaviors>
</behaviors>
D. <behaviors>
<serviceBehaviors>
<behavior name="ALL">
<serviceThrottling maxConcurrentCalls="50" maxConcurrentSessions="25"/>
</behavior>
</serviceBehaviors>
</behaviors>
Answer: C

Microsoft   070-521-Csharp examen   070-521-Csharp
18. The endpoint of a Windows Communication Foundation (WCF) service uses basicHttpBinding for its
binding. Your company's policies have changed to require that messages not be sent in clear text.
You must ensure that all messages are encrypted when traveling across the network.
What should you do?
A. Set the ProtectionLevel property on the service contract and update the binding attribute in the
endpoint element of the configuration file to wsHttpBinding.
B. Set the ProtectionLevel property on the service contract and update the bindingConfiguration attribute
in the endpoint element of the configuration file to webHttpBinding.
C. Set the PrincipalPermissionAttribute on the service contract and update the binding attribute in the
endpoint element of the configuration file to wsHttpBinding.
D. Set the PrincipalPermissionAttribute on the service contract and update the bindingConfiguration
attribute in the endpoint element of the configuration file to wsHttpBinding.
Answer: A

Microsoft   070-521-Csharp   070-521-Csharp   070-521-Csharp examen

NO.2 You are building a client for a Windows Communication Foundation (WCF) service.
You need to create a proxy to consume this service.
Which class should you use?
A. ChannelFactory<TChannel>
B. ServiceHost
C. ClientRuntime
D. CommunicationObject
Answer: A

certification Microsoft   070-521-Csharp   certification 070-521-Csharp

NO.3 A Windows Communication Foundation (WCF) service is responsible for transmitting XML documents
between systems. The service has the following requirements:
It must minimize the transmission size by attaching the XML document as is without using escape
characters or base64 encoding.
It must interoperate with systems that use SOAP but are not built on the .NET platform.
You need to configure the service to support these requirements.
Which message encoding should you use?
A. Binary message encoding
B. MTOM (Message Transmission Optimization Mechanism) message encoding
C. Text message encoding with message version set to none
D. Text message encoding with message version set to SOAP 1.2
Answer: B

Microsoft   certification 070-521-Csharp   070-521-Csharp   070-521-Csharp   070-521-Csharp

NO.4 You are adding a Windows Communication Foundation (WCF) service to an existing application. The
application is configured as follows. (Line numbers are included for reference only.)
01?<configuration>
02 <system.serviceModel>
03 <services>
04 <service name="Contoso.Sales.StockService"
05 behaviorConfiguration="MetadataBehavior">
06 <host>
07 <baseAddresses>
08 <add
baseAddress="http://contoso.com:8080/StockService" />
09 </baseAddresses>
10 </host>
11 </service>
12 </services>
13 <behaviors>
14 <serviceBehaviors>
15 <behavior name="MetadataBehavior">
16 </behavior>

NO.5 You are creating a Windows Communication Foundation (WCF) service that is implemented as follows.
(Line numbers are included for reference only.)
01 [ServiceContract]
02 [ServiceBehavior(IncludeExceptionDetailsInFaults = true)]
03 public class OrderService
04 {
05 [OperationContract]
06 public void SubmitOrder(Order anOrder)
07 {
08 try
09 {
10
11 }
12 catch(DivideByZeroException ex)
13 {
14
15 }
16 }
17 }
You need to ensure that the stack trace details of the exception are not included in the error information
sent to the client.
What should you do?
A. Replace line 14 with the following line.
throw;
B. Replace line 14 with the following line.
throw new FaultException<Order>(anOrder, ex.ToString());
C. After line 05, add the following line.
[FaultContract(typeof(FaultException<Order>))]
Replace line 14 with the following line.
throw ex;
D. After line 05, add the following line.
[FaultContract(typeof(FaultException<Order>))]
Replace line 14 with the following line.
throw new FaultException<Order>(anOrder, "Divide by zero exception");
Answer: D

Microsoft examen   070-521-Csharp   070-521-Csharp examen   070-521-Csharp examen

NO.6 You are creating a Windows Communication Foundation (WCF) service based on WSHttpBinding.
New audit requirements dictate that callers must be authenticated on every call to ensure that their
credentials have not been revoked.
You need to ensure that the service will not cache the security request token.
What should you do?
A. Apply a ServiceBehavior attribute to the service implementation class with the InstanceContextMode
property set to Single.
B. In the message security configuration, change clientCredentialType from IssuedToken to UserName.
C. In the message security configuration, set establishSecurityContext to false.
D. At the end of every operation, call the SessionStateUtility.RaiseSessionEnd method.
Answer: C

Microsoft   certification 070-521-Csharp   070-521-Csharp

NO.7 A Windows Communication Foundation (WCF) service has a callback contract. You are developing a
client application that will call this service.
You must ensure that the client application can interact with the WCF service.
What should you do?
A. On the OperationContractAttribute, set the AsyncPattern property value to true.
B. On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the
client.
C. On the client, create a proxy derived from DuplexClientBase<TChannel>.
D. On the client, use GetCallbackChannel<T>.
Answer: C

Microsoft   070-521-Csharp examen   070-521-Csharp   070-521-Csharp

NO.8 A Windows Communication Foundation (WCF) application uses a data contract that has several data
members.
You need the application to throw a SerializationException if any of the data members are not present
when a serialized instance of the data contract is deserialized.
What should you do?
A. Add the KnownType attribute to the data contract. Set a default value in each of the data member
declarations.
B. Add the KnownType attribute to the data contract. Set the Order property of each data member to
unique integer value.
C. Set the EmitDefaultValue property of each data member to false.
D. Set the IsRequired property of each data member to true.
Answer: D

Microsoft   070-521-Csharp examen   070-521-Csharp examen

NO.9 You are creating a Windows Communication Foundation (WCF) service that implements operations in
a RESTful manner. You need to add a delete operation.
You implement the delete method as follows.
void DeleteItems(string id);
You need to configure WCF to call this method when the client calls the service with the HTTP DELETE
operation.
What should you do?
A. Add the WebInvoke(UriTemplate = "/Items/{id}", Method="DELETE") attribute to the operation.
B. Add the HttpDelete attribute to the operation.
C. Replace the string parameter with a RemovedActivityAction parameter.
D. Replace the return type with RemovedActivityAction.
Answer: A

Microsoft   070-521-Csharp   certification 070-521-Csharp   070-521-Csharp examen

NO.10 You are moving a Windows Communication Foundation (WCF) service into production.
You need to be able to monitor the health of the service. You only want to enable all performance counter
instances exposed by the ServiceModelService 4.0.0.0 counter group.
Which element should you add to the system.serviceModel section in the application configuration file?
A. <diagnostics performanceCounters="ServiceOnly" />
B. <diagnostics wmiProviderEnabled="true" performanceCounters="Off" />
C. <diagnostics performanceCounters="All" />
D. <diagnostics wmiProviderEnabled="true" />
Answer: A

certification Microsoft   certification 070-521-Csharp   070-521-Csharp   070-521-Csharp

NO.11 A WCF service code is implemented as follows. (Line numbers are included for reference only.)
01 [ServiceContract]
02 [ServiceBehavior(InstanceContextMode =
03 InstanceContextMode.Single)]
04 public class CalculatorService
05 {
06 [OperationContract]
07 public double Calculate(double op1, string op, double op2)
08 {
24 }
25 }
You need to decrease the response time of the service.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution.
Choose two.)
A. Change the service behavior to the following.
[ServiceBehavior(
InstanceContextMode = InstanceContextMode.Single,
ConcurrencyMode = ConcurrencyMode.Multiple)]
B. Change the service behavior to the following.
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
C. Require the clients use threads, the Parallel Task Library, or other mechanism to issue service calls in
parallel.
D. Require the clients to use async operations when calling the service.
Answer: AB

Microsoft   certification 070-521-Csharp   070-521-Csharp examen   070-521-Csharp examen   070-521-Csharp

NO.12 You are creating a Windows Communication Foundation (WCF) service to process orders. The data
contract for the order is defined as follows.
[DataContract]
public class Order
{
[DataMember]
public string CardHolderName { get; set; }
[DataMember]
public string CreditCardNumber { get; set; }
}
You have the following requirements:
Enable the transmission of the contents of Order from the clients to the service.
Ensure that the contents of CreditCardNumber are not sent across the network in clear text.
Ensure that the contents of CreditCardNumber are accessible by the service to process the order.
You need to implement the service to meet these requirements.
What should you do?
A. Add a DataProtectionPermission attribute to the CreditCardNumber property and set the ProtectData
property to true.
B. Convert the DataContract to a MessageContract and set the ProtectionLevel property to
EncryptAndSign.
C. Change the data type of CreditCardNumber from string to SecureString.
D. Implement the CreditCardNumber property getter and setter. In the setter, run the value of the
CreditCardNumber through the MD5CryptoServiceProvider class TransformBlock method.
Answer: B

certification Microsoft   070-521-Csharp   certification 070-521-Csharp   certification 070-521-Csharp   070-521-Csharp

NO.13 Your Windows Communication Foundation (WCF) client application uses HTTP to communicate with
the service.
You need to enable message logging and include all security information such as tokens and nonces in
logged messages.
What should you do?
A. In the application configuration file, add the logKnownPii attribute to the message logging diagnostics
source and set the value of the attribute to true.
Generate the ContosoService class using the Add Service Reference wizard.
Add a reference to System.ServiceModel.Routing.dll.
Add the following code segment.
ContosoService client = new ContosoService();
SoapProcessingBehavior behavior = new SoapProcessingBehavior();
behavior.ProcessMessages = true;
client.Endpoint.Behaviors.Add(behavior);
B. In the application configuration file, add the following XML segment to the system.serviceModel
configuration section group.
<diagnostics>
<messageLogging logMessagesAtTransportLevel="true"
logEntireMessage="true" />
</diagnostics>
C. In the machine configuration file, add the following XML segment to the system.serviceModel
configuration section.
<machineSettings enableLoggingKnownPii="true" />
Generate the ContosoService class using the Add Service Reference wizard.
Add the following code segment.
ContosoService client = new ContosoService();
client.Endpoint.Behaviors.Add(new CallbackDebugBehavior(true));
D. In the machine configuration file, add the following XML segment to the system.serviceModel
configuration section.
<machineSettings enableLoggingKnownPii="true" />
In the application configuration file, add the logKnownPii attribute to the message logging diagnostics
source and set the value of the attribute to true.
In the application configuration file, add the following XML segment to the system.serviceModel
configuration section group.
<diagnostics>
<messageLogging logMessagesAtTransportLevel="true"/>
</diagnostics>
Answer: D

Microsoft   070-521-Csharp   070-521-Csharp

NO.14 You are consuming a Windows Communication Foundation (WCF) service in an ASP.NET Web
application. The service interface is defined as follows.
[ServiceContract]
public interface ICatalog
{
[OperationContract]
[WebGet(UriTemplate = "/Catalog/Items/{id}",
ResponseFormat = WebMessageFormat.Json)]
string RetrieveItemDescription(int id);
}
The service is hosted at /Catalog.svc.
You need to call the service using jQuery to retrieve the description of an item as indicated by a variable
named itemId.
Which code segment should you use?
A. $.get(String.format("/Catalog.svc/Catalog/Items/?id={0}", itemId)
null,
function (data) {
},
"javascript");
B. $.get(String.format("/Catalog.svc/Catalog/Items/{0}", itemId),
null,
function (data) {
},
"json");
C. $.get(String.format("/Catalog.svc/Catalog/Items/{0}", itemId),
null,
function (data) {
},
"xml");
D. $.get(String.format("/Catalog.svc/Catalog/Items/id={0}", itemId),
null,
function (data) {
},
"json");
Answer: B

Microsoft   070-521-Csharp examen   070-521-Csharp examen   070-521-Csharp   070-521-Csharp examen

NO.15 A Windows Communication Foundation (WCF) client uses the following service contract. (Line
numbers are included for reference only.)
01 [ServiceContract]
02 public interface IService
03 {
04 [OperationContract]
05 string Operation1();
06 [OperationContract]
07 string Operation2();
08 }
You need to ensure that all calls to Operation1 and Operation2 from the client are encrypted and signed.
What should you do?
A. Set the ProtectionLevel property in line 01 to EncryptAndSign.
B. Set the ProtectionLevel property in line 04 and line 06 to Sign.
C. Add a SecurityCriticalAttribute for each operation.
D. Add a SecuritySafeCriticalAttribute for each operation.
Answer: A

Microsoft   070-521-Csharp   certification 070-521-Csharp   070-521-Csharp examen

NO.16 </serviceBehaviors>

NO.17 You are developing a Windows Communication Foundation (WCF) service that reads messages from
a public non-transactional MSMQ queue.
You need to configure the service to read messages from the failed-delivery queue.
Which URI should you specify in the endpoint configuration settings of the service?
A. net.msmq://localhost/msmq$;FailedMessages
B. net.msmq://localhost/msmq$;DeadLetter
C. net.msmq://localhost/system$;DeadXact
D. net.msmq://localhost/system$;DeadLetter
Answer: D

certification Microsoft   070-521-Csharp   070-521-Csharp examen

NO.18 A Windows Communication Foundation (WCF) service has the following contract.
[ServiceContract(Namespace="http://contoso.com")]
public interface IShipping
{
[OperationContract]
string DoWork(int id);
}
This is one of several service contracts hosted by your application. All endpoints use SOAP 1.2 bindings
with WS-Addressing 1.0. The System.ServiceModel.MessageLogging trace source in the
system.diagnostics configuration section is configured with one listener.
You need to make sure that only the messages that are returned from the DoWork operation are logged.
Which XML segment should you add to the system.serviceModel/diagnostics/messageLogging/filters
configuration element?
A. <add xmlns:addr="http://www.w3.org/2005/08/addressing">
//addr:Action[text() =
'http://contoso.com/IShipping/DoWorkResponse']
</add>
B. <add xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
//soap:Action[text() =
'http://contoso.com/IShipping/DoWorkResponse']
</add>
C. <add xmlns:addr="http://www.w3.org/2005/08/addressing">
//addr:Action[text() =
'http://contoso.com/IShipping/DoWork']
</add>
D. <add xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
//soap:Action[text() =
'http://contoso.com/IShipping/DoWork']
</add>
Answer: A

Microsoft   certification 070-521-Csharp   070-521-Csharp

NO.19 You are developing an application to update a user ¯ s soc i a l s t a t us . You need t o consu m e t he se r v i ce
using Windows Communication Foundation (WCF).
The client configuration is as follows.
<system.serviceModel>
<bindings>
<webHttpBinding>
<binding name="SocialConfig">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Basic"
?realm="Social API" />
</security>
</binding>
</webHttpBinding>
</bindings>
<client>
<endpoint address="http://contoso.com"
binding="webHttpBinding"
bindingConfiguration="SocialConfig"
contract="ISocialStatus"
name="SocialClient" />
</client>
</system.serviceModel>
The service contract is defined as follows.
[ServiceContract]
public interface ISocialStatus
{
[OperationContract]
[WebInvoke(UriTemplate =
"/statuses/update.xml?status={text}")]
void UpdateStatus(string text);
}
Which code segment should you use to update the social status?
A. using (WebChannelFactory<ISocialStatus> factory =
new WebChannelFactory<ISocialStatus>("SocialClient"))
{
factory.Credentials.UserName.UserName = user.Name;
factory.Credentials.UserName.Password = user.Password;
ISocialStatus socialChannel = factory.CreateChannel();
socialChannel.UpdateStatus(newStatus);
}
B. using (ChannelFactory<ISocialStatus> factory =
new WebChannelFactory<ISocialStatus>(typeof(ISocialStatus)))
{
factory.Credentials.UserName.UserName = user.Name;
factory.Credentials.UserName.Password = user.Password;
ISocialStatus socialChannel = factory.CreateChannel();
socialChannel.UpdateStatus(newStatus);
}
C. using (ChannelFactory<ISocialStatus> factory =
new ChannelFactory<ISocialStatus>("POST"))
{
factory.Credentials.Windows.ClientCredential.UserName =
user.Name;
factory.Credentials.Windows.ClientCredential.SecurePassword.
SetAt(0, Convert.ToChar(user.Password));
ISocialStatus socialChannel = factory.CreateChannel();
socialChannel.UpdateStatus(newStatus);
}
D. using (WebChannelFactory<ISocialStatus> factory =
new WebChannelFactory<ISocialStatus>(typeof(ISocialClient)))
{
factory.Credentials.Windows.ClientCredential.UserName =
user.Name;
factory.Credentials.Windows.ClientCredential.SecurePassword.
SetAt(0, Convert.ToChar(user.Password));
ISocialStatus socialChannel = factory.CreateChannel();
socialChannel.UpdateStatus(newStatus);
}
Answer: A

Microsoft   070-521-Csharp   070-521-Csharp examen   070-521-Csharp examen

NO.20 You are creating a Windows Communication Foundation (WCF) service. You do not want to expose the
internal implementation at the service layer.
You need to expose the following class as a service named Arithmetic with an operation named Sum.
public class Calculator
{
public int Add(int x, int y)
{
}
}
Which code segment should you use?
A. [ServiceContract(Namespace="Arithmetic")]
public class Calculator
{
[OperationContract(Action="Sum")]
public int Add(int x, int y)
{
}
}
B. [ServiceContract(ConfigurationName="Arithmetic")]
public class Calculator
{
[OperationContract(Action="Sum")]
public int Add(int x, int y)
{
}
}
C. [ServiceContract(Name="Arithmetic")]
public class Calculator
{
[OperationContract(Name="Sum")]
public int Add(int x, int y)
{
}
}
D. [ServiceContract(Name="Arithmetic")]
public class Calculator
{
[OperationContract(ReplyAction="Sum")]
public int Add(int x, int y)
{
}
}
Answer: C

Microsoft   070-521-Csharp examen   070-521-Csharp examen

On peut voir que beaucoup de candidats ratent le test Microsoft 070-521-Csharp quand même avec l'effort et beaucoup de temps dépensés. Cest une bonne preuve que le test Microsoft 070-521-Csharp est difficile à réussir. Pass4Test offre le guide d'étude bien fiable. Sauf le test Microsoft 070-521-Csharp, Pass4Test peut offrir les Q&As des autres test Certification IT.

Meilleur Microsoft 70-502-VB test formation guide

Le test Microsoft 70-502-VB peut bien examnier les connaissances et techniques professionnelles. Pass4Test est votre raccourci amené au succès de test Microsoft 70-502-VB. Chez Pass4Test, vous n'avez pas besoin de dépenser trop de temps et d'argent juste pour préparer le test Microsoft 70-502-VB. Travaillez avec l'outil formation de Pass4Test visé au test, il ne vous demande que 20 heures à préparer.

Pass4Test est un site web qui vous donne plus de chances à passer le test de Certification Microsoft 70-502-VB. Le résultat de recherche sortis par les experts de Pass4Test peut assurer que ce sera vous ensuite qui réussirez le test Microsoft 70-502-VB. Choisissez Pass4Test, choisissez le succès. L'outil de se former de Pass4Test est bien efficace. Parmi les gens qui ont déjà passé le test, la majorité a préparé le test avec la Q&A de Pass4Test.

Le Pass4Test est un site qui peut offrir les facilités aux candidats et aider les candidats à réaliser leurs rêve. Si vous êtes souci de votre test Certification, Pass4Test peut vous rendre heureux. La haute précision et la grande couverture de la Q&A de Pass4Test vous aidera pendant la préparation de test. Vous n'aurez aucune raison de regretter parce que Pass4Test réalisera votre rêve.

Un bon choix de l'outil à se former est le point essentiel à passer le test Microsoft 70-502-VB, et les documentations à propos de rechercher le test Microsoft 70-502-VB est toujours une part plus importante pendant la préparation de test Certification. Les Q&As offertes par les experts de Pass4Test sont presque même que les tests réels. Pass4Test est un site web particulièrement en apportant les facilités aux gens qui veulent passer le test Certification.

Vous aurez le service de la mise à jour gratuite pendant un an une fois que vous achetez le produit de Pass4Test. Vous pouvez recevoir les notes immédiatement à propos de aucun changement dans le test ou la nouvelle Q&A sortie. Pass4Test permet tous les clients à réussir le test Microsoft 70-502-VB à la première fois.

Code d'Examen: 70-502-VB
Nom d'Examen: Microsoft (TS: MS.NET Frmewrk3.5, Wndws Presentation Fndation App Dev)
Questions et réponses: 102 Q&As

Le suucès n'est pas loin de vous une fois que vous choisissez le produit de Q&A Microsoft 70-502-VB de Pass4Test.

Vous serez impressionné par le service après vendre de Pass4Test, le service en ligne 24h et la mise à jour après vendre sont gratuit pour vous pendant un an, et aussi vous allez recevoir les informations plus nouvelles à propos de test Certification IT. Vous aurez un résultat imaginaire en coûtant un peu d'argent. D'ailleurs, vous pouvez économier beaucoup de temps et d'efforts avec l'aide de Pass4Test. C'est vraiment un bon marché de choisir le Pass4Test comme le guide de formation.

70-502-VB Démo gratuit à télécharger: http://www.pass4test.fr/70-502-VB.html

NO.1 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   70-502-VB examen   certification 70-502-VB   70-502-VB examen   70-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

certification Microsoft   70-502-VB   70-502-VB examen

NO.3 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

certification Microsoft   70-502-VB   70-502-VB

NO.4 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   certification 70-502-VB   70-502-VB examen

NO.5 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   70-502-VB   70-502-VB examen   70-502-VB examen   70-502-VB examen

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   70-502-VB examen   70-502-VB   70-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

certification Microsoft   70-502-VB examen   70-502-VB   certification 70-502-VB

NO.7 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   70-502-VB examen   70-502-VB examen   70-502-VB examen

NO.8 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 examen   70-502-VB   70-502-VB examen   certification 70-502-VB   70-502-VB examen

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   70-502-VB   certification 70-502-VB

NO.10 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 examen   70-502-VB   70-502-VB

NO.11 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

certification Microsoft   70-502-VB   70-502-VB examen   70-502-VB

NO.12 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 examen   70-502-VB examen   70-502-VB

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

NO.14 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 examen   70-502-VB   70-502-VB examen   70-502-VB

NO.15 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 examen   70-502-VB   70-502-VB examen

NO.16 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   70-502-VB   certification 70-502-VB   70-502-VB examen

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   certification 70-502-VB   70-502-VB   certification 70-502-VB   certification 70-502-VB

NO.18 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 examen   certification 70-502-VB   70-502-VB   70-502-VB examen   70-502-VB examen   70-502-VB

NO.19 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   certification 70-502-VB   70-502-VB examen   70-502-VB examen   70-502-VB   70-502-VB

NO.20 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

certification Microsoft   70-502-VB examen   70-502-VB   70-502-VB   70-502-VB examen

Pass4Test a une équipe se composant des experts qui font la recherche particulièrement des exercices et des Q&As pour le test certification Microsoft 70-502-VB, d'ailleurs ils peuvent vous proposer à propos de choisir l'outil de se former en ligne. Si vous avez envie d'acheter une Q&A de Pass4Test, Pass4Test vous offrira de matériaux plus détailés et plus nouveaux pour vous aider à approcher au maximum le test réel. Assurez-vous de choisir le Pass4Test, vous réussirez 100% le test Microsoft 70-502-VB.