2013年7月31日星期三

Guide de formation plus récente de Microsoft 98-366 98-364 98-361 77-884 77-882 77-881

Pass4Test vous promet de vous aider à passer le test Microsoft 98-366 98-364 98-361 77-884 77-882 77-881, vous pouvez télécharger maintenant les Q&As partielles de test Microsoft 98-366 98-364 98-361 77-884 77-882 77-881 en ligne. Il y a encore la mise à jour gratuite pendant un an pour vous. Si vous malheureusement rater le test, votre argent sera 100% rendu.


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.


Code d'Examen: 98-366

Nom d'Examen: Microsoft (MTA Networking Fundamentals)

Questions et réponses: 185 Q&As

Code d'Examen: 98-364

Nom d'Examen: Microsoft (Microsoft Database Fundamentals)

Questions et réponses: 200 Q&As

Code d'Examen: 98-361

Nom d'Examen: Microsoft (Microsoft MTA Software Development Fundamentals)

Questions et réponses: 88 Q&As

Code d'Examen: 77-884

Nom d'Examen: Microsoft (Microsoft Office Outlook 2010 Practice Test)

Questions et réponses: 225 Q&As

Code d'Examen: 77-882

Nom d'Examen: Microsoft (Excel 2010)

Questions et réponses: 81 Q&As

Code d'Examen: 77-881

Nom d'Examen: Microsoft (Word 2010)

Questions et réponses: 110 Q&As

Si vous êtes intéressé par l'outil formation Microsoft 98-366 98-364 98-361 77-884 77-882 77-881 é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.


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


Dans cette Industrie IT intense, le succès de test Microsoft 98-366 98-364 98-361 77-884 77-882 77-881 peut augmenter le salaire. Les gens d'obtenir le Certificat Microsoft 98-366 98-364 98-361 77-884 77-882 77-881 peuvent gagner beaucoup plus que les gens sans Certificat Microsoft 98-366 98-364 98-361 77-884 77-882 77-881. Le problème est comment on peut réussir le test plus facile?


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


NO.1 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have been tasked with creating a new program for ABC.com using C#. The new program will iterate
throughout an assortment of lists and arrays. Every element in this assortment must be processed just
one time.
You are then informed that reading and debugging your code should not be difficult.
What action should you take?
A. You should consider making use of the switch C# statement as part of your code.
B. You should consider making use of the void keyword as part of your code.
C. You should consider making use of the foreach C# statement as part of your code.
D. You should consider making use of the interface keyword as part of your code.
Answer: C

certification Microsoft   98-361   98-361   certification 98-361

NO.2 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You are in the process of creating a class that makes use of a method using the virtual modifier.
Which of the following is TRUE with regards to the virtual modifier? (Choose all that apply.)
A. You are unable to make use of the virtual modifier with the static, abstract, private or override modifiers.
B. You are able to make use of the virtual modifier with the static, abstract, private or override modifiers.
C. The use of the virtual modifier prevents inheritance of the class.
D. The virtual modifier is used in a class declaration to indicate that a class is intended only to be a base
class of other classes.
Answer: A

Microsoft   98-361 examen   certification 98-361   98-361

NO.3 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have been instructed to create a program that includes code that allows the program to iterate a set
amount of times. Regardless of whether the loop body includes complex code, the written code should be
understandable and easily maintainable.
What option should you use?
A. You should consider making use of the public C# statement.
B. You should consider making use of the for C# statement.
C. You should consider making use of the private C# statement.
D. You should consider making use of the sealed C# statement.
Answer: B

certification Microsoft   certification 98-361   98-361   98-361   98-361 examen   98-361

NO.4 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have been instructed to create a new application that should include a recursive method that
computes the factorial of a number.
You have written the following code for the method:
01. public static int Factorial(int n)
02: {
03: if (n == 0)
04: {
05: return 1;
06: }
07: else
08: { 09:

NO.5 You are employed as a developer at ABC.com. You are in the process of creating code for a method
that does not retrieve a value for the calling code.
You want to make sure that this is reflected when declaring the method.
What option should you use?
A. You should consider making use of the void keyword in the method declaration.
B. You should consider making use of the sealed C# statement in the method declaration.
C. You should consider making use of the internal C# statement in the method declaration.
D. You should consider making use of the public C# statement in the method declaration.
E. You should consider making use of the protected C# statement in the method declaration.
Answer: A

Microsoft   98-361 examen   98-361   certification 98-361

NO.6 }
You have to insert suitable code at line 09 to make sure that the proper outcome is reached.
What line of code should be inserted?
A. return n * Factorial(n - 1);
B. return n;
C. return n * Factorial(n - 0);
D. return 0;
Answer: A

Microsoft   98-361   98-361   98-361
10.You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You are writing code for a new ABC.com application. The code includes the while statement.
You want to make sure that a control enters the while loop six times.
Which of the following suitably represents the written code?
A. int count = 0;
while (count < 6)
{
when (count == 6)
break;
count++;
}
B. int count = 0;
while (count < 7)
{
if (count == 5)
break;
count++;
}
C. int count = 1;
while (count < 6)
{
if (count == 6)
break;
count++;
}
D. int count = 1;
while (count < 7)
{
when (count == 5)
break;
count++;
}
Answer: B

certification Microsoft   certification 98-361   98-361 examen   98-361
11.You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have been instructed to create a new program for ABC.com. You have to include a repetition
structure that allows for the termination condition test to execute at the bottom of the loop not the top.
What action should you take?
A. You should consider making use of the public C# statement.
B. You should consider making use of the sealed C# statement.
C. You should consider making use of the private C# statement.
D. You should consider making use of the do-while C# statement.
Answer: D

Microsoft   98-361   98-361 examen   98-361

NO.7 You are employed as a developer at ABC.com. You make use of Visual Basic .Net for development
purposes.
You have written the code shown below for declaring an array of a new application:
Dim myArray as String = { apples, pears, plums, grapes, oranges, bananas}
You want to return the third item in your array.
What code would you employ?
A. myArray[1]
B. myArray[2]
C. myArray[3]
D. myArray[4]
E. myArray[5]
F. myArray[6]
Answer: B

Microsoft   98-361   98-361

NO.8 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have received instructions to create a new program for ABC.com using C#. You are informed that the
new program should allow for intricate multi-way branching. Furthermore, the code used must not be
difficult to make sense of.
What is the option you should use?
A. You should consider making use of the foreach C# statement.
B. You should consider making use of the while C# statement.
C. You should consider making use of the protected C# statement.
D. You should consider making use of the switch C# statement.
Answer: D

Microsoft   98-361 examen   98-361   98-361

NO.9 }

NO.10 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You are planning to make use of an InitFields method that obtains two parameters of data type double, but
does not retrieve a value for the calling code.
You start writing code to define the InitFields method as shown below:
public void InitFields(double l, double w)
What code should you use to complete the code?
A. {
retrieve length + width;
}
B. {
length = l;
width = w;
}
C. {
retrieve length - width;}
D. {
retrieve length + width;
}
Answer: B

certification Microsoft   98-361   98-361   98-361   98-361 examen

NO.11 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have been asked to create a new program for ABC.com. Prior to creating the new program, you plan
to create an algorithm to fully comprehend how the processes of the program must run. The algorithm will
list the required actions for completing a process in the appropriate sequence.
You are informed that your method for creating the algorithm should be as simple, and clear as possible.
What option should you use?
A. You should consider making use of the flowchart method.
B. You should consider making use of the pivotchart method.
C. You should consider making use of the data table method.
D. You should consider making use of the XML method.
Answer: A

certification Microsoft   98-361 examen   98-361   98-361   98-361 examen

NO.12 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have been instructed to create a new application for ABC.com using C#. The new application must
process a loop repeatedly for precisely 7 times.
Which of the following represents the code you should write?
A. int count = 1;
while (count <= 7)
{
Console.WriteLine("The value of count = {0}", count);
count++;
}
B. int count = 0;
while (count <= 7)
{
Console.WriteLine("The value of count = {7}", count);
count++;
}
C. int count = 1;
while (count <= 7)
{
Console.WriteLine("The value of count = {7}");
count++;
}
D. int count = 0;
while (count <= 7)
{
Console.WriteLine("The value of count = {0}");
count++;
}
Answer: A

Microsoft examen   98-361   98-361 examen

NO.13 You are employed as a developer at ABC.com. You are creating a .NET Framework application.
You have been instructed to make sure that you make use of Common Intermediate Language (CLI) for
programming the application.
What options are TRUE with regards to CLI.? (Choose all that apply.)
A. CIL is the highest-level human-readable programming language defined by the Common Language
Infrastructure specification.
B. CIL is the highest-level human-readable programming language defined by the Common Language
Infrastructure specification.
C. CIL is an object-oriented assembly language, and is entirely stack-based.
D. CIL is an object-oriented assembly language, but is not stack-based.
Answer: A,C

Microsoft   98-361   98-361   98-361   98-361

NO.14 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have been instructed to create a new program for ABC.com. The program should be able to affect
integer values, which may be positive or negative and be greater than twelve characters.
You have to make sure that you are able to store this type of variable.
What is the option you should take?
A. You should consider making use of the static data type.
B. You should consider making use of the string data type.
C. You should consider making use of the private data type.
D. You should consider making use of the long data type.
Answer: D

Microsoft   98-361 examen   98-361   98-361 examen

NO.15 You are employed as a developer at ABC.com. You make use of C# and ASP.NET for development
purposes.
You have received instructions to create a method for determining the concession for products ABC.com
sold. A variable, named percentValue, is of the type double and must be only be available in the method.
Which of the following actions should you take?
A. You should consider making use of the private access modifier for distinguishing the percentValue
variable.
B. You should consider making use of the void access modifier for distinguishing the percentValue
variable.
C. You should consider making use of the string access modifier for distinguishing the percentValue
variable.
D. You should consider making use of the protected access modifier for distinguishing the percentValue
variable.
Answer: A

Microsoft   98-361   98-361 examen   98-361   98-361

Dernières Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp examen pratique questions et réponses

Beaucoup de gens trouvent difficile à passer le test Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp, c'est juste parce que ils n'ont pas bien choisi une bonne Q&A. Vous penserez que le test Microsoft 070-536-Csharp 070-545-Csharp 070-542-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.


Est-ce que vous vous souciez encore pour passer le test Microsoft 070-536-Csharp 070-545-Csharp 070-542-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 070-536-Csharp 070-545-Csharp 070-542-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 070-536-Csharp 070-545-Csharp 070-542-Csharp. La Q&A est un bon choix pour vous. Vous pouvez télécharger le démo grantuit tout d'abord en Internet.


Code d'Examen: 070-536-Csharp

Nom d'Examen: Microsoft (TS:MS.NET Framework 2.0-Application Develop Foundation)

Questions et réponses: 160 Q&As

Code d'Examen: 070-545-Csharp

Nom d'Examen: Microsoft (TS:Microsoft Visio 2007, Application Development)

Questions et réponses: 54 Q&As

Code d'Examen: 070-542-Csharp

Nom d'Examen: Microsoft (MS Office SharePoint Server 2007-Application Development)

Questions et réponses: 162 Q&As

Aujourd'hui, c'est une société pleine de gens talentueux, la meilleure façon de suivre et assurer la place dans votre carrière est de s'améliorer sans arrêt. Si vous n'augmentez pas dans votre carrière, vous êtes juste sous-développé parce que les autres sont meilleurs que vous. Pour éviter ce cas, vous devez vous former successivement.


L'équipe de Pass4Test autorisée offre sans arrêt les bonnes resources aux candidats de test Certification Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp. Les documentations particulièrement visée au test Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp aide beaucoup de candidats. La Q&A de la version plus nouvelle est lancée maintenant. Vous pouvez télécharger le démo gratuit en Internet. Généralement, vous pouvez réussir le test 100% avec l'aide de Pass4Test, c'est un fait preuvé par les professionnels réputés IT. Ajoutez le produit au panier, vous êtes l'ensuite à réussir le test Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp.


L'importance de la position de Certificat Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp dans l'industrie IT est bien claire pour tout le monde, mais c'est pas facile à obtenir ce Certificat. Il y a beaucoup de Q&As qui manquent une haute précision des réponses. Cependant, Pass4Test peut offrir des matériaux pratiques pour toutes les personnes à participer l'examen de Certification, et il peut aussi offrir à tout moment toutes les informations que vous auriez besoin à réussir l'examen Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp par votre première fois.


Pass4Test a de formations plus nouvelles pour le test Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp. Les experts dans l'industrie IT de Pass4Test profitant leurs expériences et connaissances professionnelles à lancer les Q&As plus chaudes pour faciliter la préparation du test Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp à tous les candidats qui nous choisissent. L'importance de Certification Microsoft 070-536-Csharp 070-545-Csharp 070-542-Csharp est de plus en plus claire, c'est aussi pourquoi il y a de plus en plus de gens qui ont envie de participer ce test. Parmi tous ces candidats, pas mal de gens ont réussi grâce à Pass4Test. Ces feedbacks peuvent bien prouver nos produits essentiels pour votre réussite de test Certification.


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


NO.1 You are developing a routine that will periodically perform a calculation based on regularly changing
values from legacy systems. You write the following lines of code. (Line numbers are included for
reference only.)
01 bool exitLoop = false;
02 do {
03
04 exitLoop = PerformCalculation();
05 } while (!exitLoop);
You need to write a code segment to ensure that the calculation is performed at 30-second intervals. You
must ensure that minimum processor resources are used between the calculations.
Which code segment should you insert at line 03?
A. Thread.Sleep(30000);
B. Thread.SpinWait(30000);
C. Thread thrdCurrent = Thread.CurrentThread;
thrdCurrent.Priority = ThreadPriority.BelowNormal;
D. Thread thrdCurrent = Thread.CurrentThread;
thrdCurrent.Priority = ThreadPriority.Lowest;
E. Thread.SpinWait(30);
Answer: A

Microsoft   certification 070-536-Csharp   070-536-Csharp examen   070-536-Csharp examen

NO.2 You develop a service application named FileService. You deploy the service application to multiple
servers on your network.
You implement the following code segment. (Line numbers are included for reference only.)
01 public void StartService(string serverName){
02 ServiceController crtl = new
03 ServiceController("FileService");
04 if (crtl.Status == ServiceControllerStatus.Stopped){
05 }
06 }
You need to develop a routine that will start FileService if it stops. The routine must start FileService on
the server identified by the serverName input parameter.
Which two lines of code should you add to the code segment? (Each correct answer presents part of the
solution. Choose two.)
A. Insert the following line of code between lines 03 and 04:
crtl.ServiceName = serverName;
B. Insert the following line of code between lines 03 and 04:
crtl.MachineName = serverName;
C. Insert the following line of code between lines 03 and 04:
crtl.Site.Name = serverName;
D. Insert the following line of code between lines 04 and 05:
crtl.Continue();
E. Insert the following line of code between lines 04 and 05:
crtl.Start();
F. Insert the following line of code between lines 04 and 05:
crtl.ExecuteCommand(0);
Answer: BE

Microsoft   070-536-Csharp   070-536-Csharp   070-536-Csharp

NO.3 You create a class library that is used by applications in three departments of your company. The
library contains a Department class with the following definition.
public class Department {
public string name;
public string manager;
}
Each application uses a custom configuration section to store department-specific values in the
application configuration file as shown in the following code.
<Department>
<name>Hardware</name>
<manager>Amy</manager>
</Department>
You need to write a code segment that creates a Department object instance by using the field values
retrieved from the application configuration file.
Which code segment should you use?
A. public class deptElement : ConfigurationElement {
protected override void DeserializeElement(
XmlReader reader, bool serializeCollectionKey) {
Department dept = new Department();
dept.name = ConfigurationManager.AppSettings["name"];
dept.manager =
ConfigurationManager.AppSettings["manager"];
return dept;
}
}
B. public class deptElement: ConfigurationElement {
protected override void DeserializeElement(
XmlReader reader, bool serializeCollectionKey) {
Department dept = new Department();
dept.name = reader.GetAttribute("name");
dept.manager = reader.GetAttribute("manager");
}
}
C. public class deptHandler : IConfigurationSectionHandler {
public object Create(object parent, object configContext,
System.Xml.XmlNode section) {
Department dept = new Department();
dept.name = section.SelectSingleNode("name").InnerText;
dept.manager =
section.SelectSingleNode("manager").InnerText;
return dept;
}
}
D. public class deptHandler : IConfigurationSectionHandler {
public object Create(object parent, object configContext,
System.Xml.XmlNode section) {
Department dept = new Department();
dept.name = section.Attributes["name"].Value;
dept.manager = section.Attributes["manager"].Value;
return dept;
}
}
Answer: C

Microsoft   070-536-Csharp   certification 070-536-Csharp   070-536-Csharp   certification 070-536-Csharp

NO.4 You are developing an application that stores data about your company's sales and technical support
teams.
You need to ensure that the name and contact information for each person is available as a single
collection when a user queries details about a specific team. You also need to ensure that the data
collection guarantees type safety.
Which code segment should you use?
A. Hashtable team = new Hashtable();
team.Add(1, "Hance");
team.Add(2, "Jim");
team.Add(3, "Hanif");
team.Add(4, "Kerim");
team.Add(5, "Alex");
team.Add(6, "Mark");
team.Add(7, "Roger");
team.Add(8, "Tommy");
B. ArrayList team = new ArrayList();
team.Add("1, Hance");
team.Add("2, Jim");
team.Add("3, Hanif");
team.Add("4, Kerim");
team.Add("5, Alex");
team.Add("6, Mark");
team.Add("7, Roger");
team.Add("8, Tommy");
C. Dictionary<int, string> team =
new Dictionary<int, string>();
team.Add(1, "Hance");
team.Add(2, "Jim");
team.Add(3, "Hanif");
team.Add(4, "Kerim");
team.Add(5, "Alex");
team.Add(6, "Mark");
team.Add(7, "Roger");
team.Add(8, "Tommy");
D. string[] team =
new string[] {"1, Hance",
"2, Jim", "3, Hanif",
"4, Kerim", "5, Alex",
"6, Mark", "7, Roger",
"8, Tommy"};
Answer: C

Microsoft examen   certification 070-536-Csharp   070-536-Csharp

NO.5 You are creating a class named Age.
You need to ensure that the Age class is written such that collections of Age objects can be sorted.
Which code segment should you use?
A. public class Age {
public int Value;
public object CompareTo(object obj) {
if (obj is Age) {
Age _age = (Age) obj;
return Value.CompareTo(obj);
}
throw new ArgumentException("object not an Age");
}
}
B. public class Age {
public int Value;
public object CompareTo(int iValue) {
try {
return Value.CompareTo(iValue);
} catch {
throw new ArgumentException ("object not an Age");
}
}
}
C. public class Age : IComparable {
public int Value;
public int CompareTo(object obj) {
if (obj is Age) {
Age _age = (Age) obj;
return Value.CompareTo(_age.Value);
}
throw new ArgumentException("object not an Age");
}
}
D. public class Age : IComparable {
public int Value;
public int CompareTo(object obj) {
try {
return Value.CompareTo(((Age) obj).Value);
} catch {
return -1;
}
}
}
Answer: C

certification Microsoft   certification 070-536-Csharp   070-536-Csharp   certification 070-536-Csharp

NO.6 You are developing an application to assist the user in conducting electronic surveys. The survey
consists of 25 true-or-false questions.
You need to perform the following tasks:
è Initialize each answer to true.
è Minimize the amount of memory used by each survey.
Which storage option should you choose?
A. BitVector32 answers = new BitVector32(1);
B. BitVector32 answers = new BitVector32(-1);
C. BitArray answers = new BitArray (1);
D. BitArray answers = new BitArray(-1);
Answer: B

Microsoft examen   070-536-Csharp examen   070-536-Csharp

NO.7 You are writing a method that returns an ArrayList named al.
You need to ensure that changes to the ArrayList are performed in a thread-safe manner.
Which code segment should you use?
A. ArrayList al = new ArrayList();
lock (al.SyncRoot)
{
return al;
}
B. ArrayList al = new ArrayList();
lock (al.SyncRoot.GetType())
{
return al;
}
C. ArrayList al = new ArrayList();
Monitor.Enter(al);
Monitor.Exit(al);
return al;
D. ArrayList al = new ArrayList();
ArrayList sync_al = ArrayList.Synchronized(al);
return sync_al;
Answer: D

Microsoft examen   070-536-Csharp   070-536-Csharp examen   070-536-Csharp examen

NO.8 You create a class that is derived from the Installer class. The class you create is used to perform a
component installation.
The component installation overwrites the value of a registry key. You create a method named
GetRegValue that returns the current value of the registry key.
You need to add a code segment that preserves the original value of the registry key if the component is
uninstalled.
Which code segment should you use?
A. private void BeforeUninstallEventHandler(
object sender, InstallEventArgs e) {
e.SavedState.Add("original RegValue", GetRegValue());
}
B. private void CommittedEventHandler(
object sender, InstallEventArgs e) {
e.SavedState.Add("original RegValue", GetRegValue());
}
C. public override void Uninstall(
IDictionary savedState) {
base.Uninstall(savedState);
savedState.Add("original RegValue", GetRegValue());
}
D. protected override void OnBeforeInstall(
IDictionary savedState) {
base.OnBeforeInstall(savedState);
savedState.Add("original RegValue", GetRegValue());
}
Answer: D

certification Microsoft   070-536-Csharp   070-536-Csharp   070-536-Csharp examen   070-536-Csharp   070-536-Csharp

NO.9 You need to write a code segment that will add a string named strConn to the connection string section
of the application configuration file.
Which code segment should you use?
A. Configuration myConfig =
ConfigurationManager.OpenExeConfiguration(
ConfigurationUserLevel.None);
myConfig.ConnectionStrings.ConnectionStrings.Add(
new ConnectionStringSettings("ConnStr1", strConn));
myConfig.Save();
B. Configuration myConfig =
ConfigurationManager.OpenExeConfiguration(
ConfigurationUserLevel.None);
myConfig.ConnectionStrings.ConnectionStrings.Add(
new ConnectionStringSettings("ConnStr1", strConn));
ConfigurationManager.RefreshSection(
"ConnectionStrings");
C. ConfigurationManager.ConnectionStrings.Add(
new ConnectionStringSettings("ConnStr1", strConn));
ConfigurationManager.RefreshSection(
"ConnectionStrings");
D. ConfigurationManager.ConnectionStrings.Add(
new ConnectionStringSettings("ConnStr1", strConn));
Configuration myConfig =
ConfigurationManager.OpenExeConfiguration(
ConfigurationUserLevel.None);
myConfig.Save();
Answer: A

certification Microsoft   070-536-Csharp examen   070-536-Csharp   certification 070-536-Csharp

NO.10 You are developing an application that dynamically loads assemblies from an application directory.
You need to write a code segment that loads an assembly named Assembly1.dll into the current
application domain.
Which code segment should you use?
A. AppDomain domain = AppDomain.CurrentDomain;
string myPath = Path.Combine(domain.BaseDirectory,
"Assembly1.dll");
Assembly asm = Assembly.LoadFrom(myPath);
B. AppDomain domain = AppDomain.CurrentDomain;
string myPath = Path.Combine(domain.BaseDirectory,
"Assembly1.dll");
Assembly asm = Assembly.Load(myPath);
C. AppDomain domain = AppDomain.CurrentDomain;
string myPath = Path.Combine(domain.DynamicDirectory,
"Assembly1.dll");
Assembly asm = AppDomain.CurrentDomain.Load(myPath);
D. AppDomain domain = AppDomain.CurrentDomain;
Assembly asm = domain.GetData("Assembly1.dll");
Answer: A

Microsoft   certification 070-536-Csharp   070-536-Csharp   certification 070-536-Csharp   070-536-Csharp   070-536-Csharp examen

NO.11 You are creating an application that retrieves values from a custom section of the application
configuration file. The custom section uses XML as shown in the following block.
<ProjectSection name="Project1">
<role name="administrator" />
<role name="manager" />
<role name="support" />
</ProjectSection>
You need to write a code segment to define a class named Role. You need to ensure that the Role class is
initialized with values that are retrieved from the custom section of the configuration file.
Which code segment should you use?
A. public class Role : ConfigurationElement {
internal string _ElementName = "name";
[ConfigurationProperty("role")]
public string Name {
get {
return ((string)base["role"]);
}
}
}
B. public class Role : ConfigurationElement {
internal string _ElementName = "role";
[ConfigurationProperty("name", RequiredValue = true)]
public string Name {
get {
return ((string)base["name"]);
}
}
}
C. public class Role : ConfigurationElement {
internal string _ElementName = "role";
private string _name;
[ConfigurationProperty("name")]
public string Name {
get {
return _name;
}
}
}
D. public class Role : ConfigurationElement {
internal string _ElementName = "name";
private string _name;
[ConfigurationProperty("role", RequiredValue = true)]
public string Name {
get {
return _name;
}
}
}
Answer: B

Microsoft   certification 070-536-Csharp   070-536-Csharp   070-536-Csharp examen

NO.12 You need to write a multicast delegate that accepts a DateTime argument.
Which code segment should you use?
A. public delegate int PowerDeviceOn(bool result,
DateTime autoPowerOff);
B. public delegate bool PowerDeviceOn(object sender,
EventArgs autoPowerOff);
C. public delegate void PowerDeviceOn(DateTime autoPowerOff);
D. public delegate bool PowerDeviceOn(DateTime autoPowerOff);
Answer: C

Microsoft examen   070-536-Csharp examen   070-536-Csharp examen   070-536-Csharp

NO.13 You are developing an application to perform mathematical calculations. You develop a class named
CalculationValues. You write a procedure named PerformCalculation that operates on an instance of the
class.
You need to ensure that the user interface of the application continues to respond while calculations are
being performed. You need to write a code segment that calls the PerformCalculation procedure to
achieve this goal.
Which code segment should you use?
A. private void PerformCalculation() {
...
}
private void DoWork(){
CalculationValues myValues = new CalculationValues();
Thread newThread = new Thread(
new ThreadStart(PerformCalculation));
newThread.Start(myValues);
}
B. private void PerformCalculation() {
...
}
private void DoWork(){
CalculationValues myValues = new CalculationValues();
ThreadStart delStart = new
ThreadStart(PerformCalculation);
Thread newThread = new Thread(delStart);
if (newThread.IsAlive) {
newThread.Start(myValues);
}
}
C. private void PerformCalculation (CalculationValues values) {
...
}
private void DoWork(){
CalculationValues myValues = new CalculationValues();
Application.DoEvents();
PerformCalculation(myValues);
Application.DoEvents();
}
D. private void PerformCalculation(object values) {
...
}
private void DoWork(){
CalculationValues myValues = new CalculationValues();
Thread newThread = new Thread(
new ParameterizedThreadStart(PerformCalculation));
newThread.Start(myValues);
}
Answer: D

certification Microsoft   070-536-Csharp   070-536-Csharp

NO.14 You need to write a code segment that will assign the name of the configuration file that the current
application domain uses to a string variable named configFile.
Which two code segments should you use to achieve the goal? (Each correct answer presents a
complete solution. Choose two.)
A. AppDomain domain = AppDomain.CurrentDomain;
configFile =
domain.GetData("APP_CONFIG_FILE").ToString();
B. AppDomain domain = AppDomain.CurrentDomain;
AppDomainSetup setup = domain.SetupInformation;
configFile = setup.ConfigurationFile;
C. AppDomain domain = AppDomain.CurrentDomain;
AppDomainSetup setup = new AppDomainSetup();
configFile = setup.ConfigurationFile;
D. AppDomainSetup setup = new AppDomainSetup();
AppDomain domain = AppDomain.CreateDomain("current",
null, setup);
configFile = setup.ConfigurationFile;
Answer: AB

Microsoft examen   070-536-Csharp   070-536-Csharp   certification 070-536-Csharp   070-536-Csharp

NO.15 You are working on a debug build of an application.
You need to find the line of code that caused an exception to be thrown.
Which property of the Exception class should you use to achieve this goal?
A. Data
B. Message
C. StackTrace
D. Source
Answer: C

certification Microsoft   070-536-Csharp examen   070-536-Csharp   070-536-Csharp examen

NO.16 You write the following code.
public delegate void FaxDocs(object sender, FaxArgs args);
You need to create an event that will invoke FaxDocs.
Which code segment should you use?
A. public static event FaxDocs Fax;
B. public static event Fax FaxDocs;
C. public class FaxArgs : EventArgs {
private string coverPageInfo;
public FaxArgs(string coverInfo) {
this.coverPageInfo = coverPageInfo;
}
public string CoverPageInformation {
get {return this.coverPageInfo;}
}
}
D. public class FaxArgs : EventArgs {
private string coverPageInfo;
public string CoverPageInformation {
get {return this.coverPageInfo;}
}
}
Answer: A

Microsoft   070-536-Csharp examen   070-536-Csharp   070-536-Csharp examen   070-536-Csharp

NO.17 You are creating a class named Temperature. The Temperature class contains a public field named F.
The public field F represents a temperature in degrees Fahrenheit.
You need to ensure that users can specify whether a string representation of a Temperature instance
displays the Fahrenheit value or the equivalent Celsius value.
Which code segment should you use?
A. public class Temperature : IFormattable {
public int F;
public string ToString(string format, IFormatProvider fp) {
if ((format == "F")|| (format == null)) return F.ToString();
if (format == "C") return ((F - 32) / 1.8).ToString();
throw new FormatException("Invalid format string");
}
}
B. public class Temperature : ICustomFormatter {
public int F;
public string Format(string format, object arg,
IFormatProvider fp) {
if (format == "C") return ((F - 32) / 1.8).ToString();
if (format == "F") return arg.ToString();
throw new FormatException("Invalid format string");
}
}
C. public class Temperature {
public int F;
public string ToString(string format, IFormatProvider fp) {
if (format == "C") {
return ((F - 32) / 1.8).ToString();
} else {
return this.ToString();
}
}
}
D. public class Temperature {
public int F;
protected string format;
public override String ToString() {
if (format == "C")
return ((F - 32) / 1.8).ToString();
return F.ToString();
}
}
Answer: A

Microsoft examen   070-536-Csharp examen   070-536-Csharp   certification 070-536-Csharp   certification 070-536-Csharp   070-536-Csharp

NO.18 You are instantiating a variable to store only strings. The variable is named messageStore.
You need to ensure that string messages are read and processed in the order in which they are received.
Which code segment should you use?
A. Stack<string> messageStore = new Stack<string>();
messageStore.Push("This is a test message...");
B. Stack messageStore = new Stack();
messageStore.Push("This is a test message...");
C. Queue messageStore = new Queue();
messageStore.Enqueue("This is a test message...");
D. Queue<string> messageStore = new Queue<string>();
messageStore.Enqueue("This is a test message...");
Answer: D

Microsoft examen   070-536-Csharp   certification 070-536-Csharp   070-536-Csharp   070-536-Csharp examen

NO.19 You need to write a code segment that will create a common language runtime (CLR) unit of isolation
within an application.
Which code segment should you use?
A. AppDomainSetup mySetup =
AppDomain.CurrentDomain.SetupInformation;
mySetup.ShadowCopyFiles = "true";
B. System.Diagnostics.Process myProcess;
myProcess = new System.Diagnostics.Process();
C. AppDomain domain;
domain = AppDomain.CreateDomain("MyDomain");
D. System.ComponentModel.Component myComponent;
myComponent = new System.ComponentModel.Component();
Answer: C

Microsoft   070-536-Csharp examen   070-536-Csharp   070-536-Csharp   certification 070-536-Csharp   070-536-Csharp

NO.20 You are writing a custom dictionary. The custom-dictionary class is named MyDictionary.
You need to ensure that the dictionary is type safe.
Which code segment should you use?
A. class MyDictionary : Dictionary<string, string>
B. class MyDictionary : HashTable
C. class MyDictionary : IDictionary
D. class MyDictionary { ... }
Dictionary<string, string> t =
new Dictionary<string, string>();
MyDictionary dictionary = (MyDictionary)t;
Answer: A

Microsoft examen   070-536-Csharp examen   certification 070-536-Csharp

Certification Microsoft de téléchargement gratuit pratique d'examen 070-544-VB 070-542-VB 070-502-VB, questions et réponses

Dans cette société de l'information technologies, c'est bien populaire que l'on prenne la formation en Internet, Pass4Test est l'un des sites d'offrir la formation particulère pour le test Microsoft 070-544-VB 070-542-VB 070-502-VB. Pass4Test a une expérience riche pour répondre les demandes des candidats.


Pass4Test est un catalyseur de votre succès de test Microsoft 070-544-VB 070-542-VB 070-502-VB. En visant la Certification de Microsoft, la Q7A de Pass4Test avec beaucoup de recherches est lancée. Si vous travillez dur encore juste pour passer le test Microsoft 070-544-VB 070-542-VB 070-502-VB, la Q&A Microsoft 070-544-VB 070-542-VB 070-502-VB est un bon choix pour vous.


Pass4Test est un fournisseur de formation pour une courte terme, et Pass4Test peut vous assurer le succès de test Microsoft 070-544-VB 070-542-VB 070-502-VB. Si malheureusement, vous échouez le test, votre argent sera tout rendu. Vous pouvez télécharger le démo gratuit avant de choisir Pass4Test. Au moment là, vous serez confiant sur Pass4Test.


Pass4Test peut non seulement vous aider à réussir votre rêve, mais encore vous offre le service gratuit pendand un an après vendre en ligne. Q&A offerte par l'équipe de Pass4Test vous assure à passer 100% le test de Certification Microsoft 070-544-VB 070-542-VB 070-502-VB.


La Q&A de Pass4Test vise au test Certificat Microsoft 070-544-VB 070-542-VB 070-502-VB. L'outil de formation Microsoft 070-544-VB 070-542-VB 070-502-VB 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-544-VB

Nom d'Examen: Microsoft (TS: Ms Virtual Earth 6.0, Application Development)

Questions et réponses: 67 Q&As

Code d'Examen: 070-542-VB

Nom d'Examen: Microsoft (MS Office SharePoint Server 2007-Application Development)

Questions et réponses: 58 Q&As

Code d'Examen: 070-502-VB

Nom d'Examen: Microsoft (TS: MS.NET Frmewrk3.5, Wndws Presentation Fndation App Dev)

Questions et réponses: 102 Q&As

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


NO.1 Your company stores employee details in a Microsoft SQL Server database. You are creating a Report
Center site on a Microsoft Office SharePoint Server 2007 server.
You need to ensure that a report on employee details can be generated in the Report Center site.
What should you do?
A. Add the Data Connections library to the trusted file locations.
B. Import the application definition to the Business Data Connector.
C. Import the Office Data Connection file to the trusted data providers.
D. Create an Office Data Connection file in a trusted Data Connections library.
Answer: D

Microsoft   certification 070-542-VB   070-542-VB examen

NO.2 You are creating a Microsoft Office SharePoint Server 2007 Report Center Web site. Your company
stores product data in a Microsoft SQL Server 2005 database named Product Management.
You need to ensure that the product data is available for use in Microsoft Office Excel 2007 reports.
What should you do?
A. Upload a custom Office Data Connection file to the Data Connections library.
B. Upload a custom set of Microsoft SQL Server Reporting Services Report Model files to the Data
Connections library.
C. Create a single sign-on (SSO) provider that manages access to the Product Management database.
D. Create a Business Data Connection for the Product Management database, and define entities in the
Business Data Catalog (BDC) definition.
Answer: A

Microsoft   certification 070-542-VB   070-542-VB   070-542-VB examen

NO.3 Your company has a Microsoft Office SharePoint Server 2007 farm. The farm contains two site
collections named Draft and ProductionReady.
You configure the farm to deploy content incrementally from the Draft site collection to the
ProductionReady site collection.
You need to ensure that the content authors have a higher priority for pages that they deploy to the
ProductionReady site collection.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution.
Choose two.)
A. Add the content authors to the Administrators site group.
B. Add the content authors to the Quick Deploy site group.
C. Execute the QuickDeploy method of the PublishingPage object that references the pages of the
content authors.
D. Set the Audience property of the PublishingPage object for the pages of the content authors to an
audience that contains the content authors.
Answer: BC

certification Microsoft   070-542-VB   070-542-VB examen   070-542-VB examen   070-542-VB   070-542-VB examen

NO.4 You are deploying a Microsoft Office SharePoint Server 2007 hierarchy of sites from a development
environment to a staging environment on the same server farm.
The development site hierarchy contains a corporate intranet site and departmental sites. Each
departmental site contains subsites.
You need to recreate the hierarchy of development sites in the staging environment.
What should you do?
A. Create and implement a site template.
B. Create and implement a portal site template.
C. Create an empty site collection on the server farm and use Page Publishing to duplicate pages.
D. Create copies of the site definition files, page layouts, master pages, and Web Part assemblies for
each site to be created.
Answer: B

certification Microsoft   070-542-VB   070-542-VB examen

NO.5 You are creating a Microsoft Office SharePoint Server 2007 site. An audience named Purchasing
contains all the users in a Microsoft Active Directory group.
You need to display the name of each member of the audience.
Which code segment should you use?
A. Dim audManager As AudienceManager = New AudienceManager()
Dim aud As Audience = audManager.Audiences("Purchasing")
Dim members As ArrayList = aud.GetMembership()
For Each obj As Object In members
Dim user As UserInfo = CType(obj, UserInfo)
System.Web.HttpContext.Current.Response.Write( _
"User: " + user.PreferredName)
Next
B. Dim audManager As AudienceManager = New AudienceManager()
Dim members As AudienceCollection = audManager.Audiences
For Each obj As Audience In members
Dim user As String = _
System.Security.Principal.WindowsIdentity.GetCurrent.Name
If obj.IsMember(user) Then
System.Web.HttpContext.Current.Response.Write("User: " + user)
End If
Next
C. Dim audManager As AudienceManager = New AudienceManager()
Dim audCol As AudienceCollection = audManager.Audiences
Dim aud As Audience = audManager.Audiences("Purchasing")
Dim members As ArrayList = aud.GetMembership()
For Each obj As Object In audCol
Dim user As UserInfo = CType(members(audCol.Count), UserInfo)
System.Web.HttpContext.Current.Response.Write( _
"User: " + user.PreferredName)
Next
D. Dim members As Audience_List = New Audience_List()
Dim audManager As AudienceManager = New AudienceManager()
Dim aud As Audience = audManager.Audiences("Purchasing")
members.GetData()
members.DataBind()
Answer: A

Microsoft examen   certification 070-542-VB   certification 070-542-VB

NO.6 You are creating a Business Data Catalog (BDC) definition for a phone book application. The
application stores customer names in a table named People in a Microsoft SQL Server database.
You are defining an entity named People within the BDC definition. You need to ensure that the entity data
can be displayed in a Business Data List (BDL) Web Part.
Which method should you define inside the entity?
A. Finder
B. ViewAccessor
C. IDEnumerator
D. GenericInvoker
Answer: A

Microsoft   070-542-VB   certification 070-542-VB   070-542-VB examen

NO.7 You create a Microsoft Office SharePoint Server 2007 portal site. The site contains a document
retention policy for request for proposal (RFP) documents.
You need to customize the policy to ensure that a notification is sent to each project manager when the
RFP date expires.
What should you do?
A. Implement a custom IPolicyFeature.OnCustomDataChange method that generates an e-mail
message.
B. Implement a custom IPolicyFeature.ProcessListItemOnRemove method that generates an e-mail
message.
C. Create a document retention workflow that monitors the expiration date of RFP documents and
generates an e-mail message.
D. Extend the built-in policy feature definition to use a custom policy resource expiration action that
generates an e-mail message.
Answer: D

Microsoft examen   070-542-VB   070-542-VB   070-542-VB   certification 070-542-VB

NO.8 You create a Microsoft Office InfoPath workflow task form for users. The form contains all the details of
each task.
You need to store the value of the Comments field in a variable named UserInput when each user submits
the form.
Which code segment should you use?
A. Dim UserInput As String = New String
Dim wpTProps As SPWorkflowTaskProperties = New _
SPWorkflowTaskProperties
...
UserInput = wpTProps.ExtendedProperties("Comments").ToString
B. Private wpAProps As SPWorkflowActivationProperties = New _
SPWorkflowActivationProperties
...
Private UserInput As Object = wpAProps.Item.Fields("Comments")
C. Private wpAProps As SPWorkflowActivationProperties = New _
SPWorkflowActivationProperties
Private serializer As XmlSerializer = New _
XMLSerializer(GetType(MyFields))
Private reader As xmlTextReader = New XMLTextReader(New _
System.IO.StringReader(wpAProps.InitiationData))
Private fields As MyFields = serializer.Deserialize(reader)
Private UserInput As String = fields.Users(i).Comments
D. Private serializer As XmlSerializer = New _
XmlSerializer(GetType(InitForm))
Private reader As XmlTextReader = New XmlTextReader(New _
System.IO.StringReader(workflowProps.InitiationData))
Private initform As InitForm = _
CType(serializer.Deserialize(reader), InitForm)
Private UserInput As String = initform.comments
Answer: A

certification Microsoft   certification 070-542-VB   070-542-VB examen   certification 070-542-VB   070-542-VB examen

NO.9 Your company uses an order management application that stores order information in a Microsoft
SQL Server 2005 database.
You are creating a Business Data Catalog (BDC) definition on a Microsoft Office SharePoint Server 2007
server.
You need to ensure that the SharePoint server can index the order information.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose
two.)
A. Define a Finder method in the BDC definition.
B. Define an IDEnumerator method in the BDC definition.
C. Define a ViewAccessors method in the BDC definition.
D. Define a SpecificFinder method in the BDC definition.
Answer: BD

Microsoft   070-542-VB   070-542-VB examen   070-542-VB examen

NO.10 Your company stores product information in a Microsoft SQL Server 2005 database. You create a
Business Data Catalog (BDC) definition to search for product information within the database.
You need to ensure that incremental crawls can be performed in the database for indexing.
What should you do?
A. Create a GenericInvoker method.
B. Create a Finder method.
C. Create a ViewAccessors method to return a different set of fields from the database.
D. Define an IDEnumerator method that has a return field that represents the last update time of the
database.
Answer: D

Microsoft   070-542-VB   070-542-VB   070-542-VB examen

NO.11 Your company uses a portal site template to recreate site hierarchies.
You need to add additional sites to the hierarchy that is defined in the portal site template.
What should you do?
A. In the Webtemp*.xml file, add a Template element that contains the site definitions for the new sites.
B. Add additional Web elements to the XML definition file of the portal site template.
C. Add additional Webtemp*.xml files to C:\Program Files\Common Files\Microsoft Shared Debug\Web
Server Extensions\12\TEMPLATE\1033\XML.
D. Update an existing site to include the new hierarchy and create a new site template on the Site
Settings page.
Answer: B

Microsoft   070-542-VB   certification 070-542-VB   070-542-VB examen   070-542-VB

NO.12 You are creating a Microsoft Office SharePoint Server 2007 Web Part.
You write the following code segment. (Line numbers are included for reference only.)
01 Public cmdCrawl As Button
02
03 Protected Overloads Overrides Sub CreateChildControls()
04 cmdCrawl = New Button
05 AddHandler cmdCrawl.Click, AddressOf cmdCrawl_Click
06 cmdCrawl.Text = "Update Index"
07 Controls.Add(cmdCrawl)
08 End Sub
09
10 Public Sub cmdCrawl_Click(ByVal sender As Object, ByVal e As EventArgs)
11 Dim sspContent As Microsoft.Office.Server.Search.Administration.Content = New12
13 Microsoft.Office.Server.Search.Administration.Content(SearchContext.Current)
14 ...
15 End Sub
You need to ensure that the Web Part initiates a search crawl of a ContentSource named Patents.
Which code segment should you insert at line 14?
A. Dim sspContentSources As ContentSourceCollection = _
sspContent.ContentSources
Dim cs As ContentSource = sspContentSources("Patents")
cs.StartFullCrawl
B. Dim sspContentSources As ContentSourceCollection = _
sspContent.ContentSources
Dim TargetScope As Uri = New _
Uri("http: //myportal/SearchCenter/Search.aspx Scope=Patents")
sspContentSources.Update(TargetScope)
C. Dim sspContentSources As ContentSourceCollection = _
sspContent.ContentSources
Dim crawlmappings As CrawlMappingCollection = _
sspContentSources.Parent.CrawlMappings
Dim ResultsPage As Uri = New Uri(Me.Context.ToString)
Dim TargetScope As Uri = New _
Uri("http: //myportal/SearchCenter/Search.aspx Scope=Patents")
crawlmappings.Create(ResultsPage, TargetScope)
D. Dim sspContentSources As ContentSourceCollection = _
sspContent.ContentSources
Dim cs As ContentSource = sspContentSources("Patents")
cs.Update
Answer: A

Microsoft   070-542-VB   070-542-VB   certification 070-542-VB   070-542-VB examen

NO.13 You are creating a Microsoft Office SharePoint Server 2007 site.
You have a document library that is subject to an audit.
You need to prevent relevant records from expiring during an ongoing audit.
What should you do?
A. Enable Record routing on the related Records Center site.
B. Create a hold for the audit and add all relevant documents.
C. Remove all users of the document library from the data reader role on the site configuration database.
D. Create an Information Management Policy feature that tracks audit information. Attach the policy to the
document library.
Answer: B

Microsoft   070-542-VB   070-542-VB examen   certification 070-542-VB   certification 070-542-VB

NO.14 You create an application for a Microsoft Office SharePoint Server 2007 server.
You create a call center dashboard. You create a Key Performance Indicator (KPI) list that contains KPIs.
You add a KPI Web Part to the dashboard to view KPIs.
You need to permit users to view details that make up each KPI.
What should you do?
A. Add a link to each KPI in the list to take the user to a details page.
B. Add data to a custom SharePoint list and use built-in filter and view capabilities.
C. Add a Filter Web Part to the dashboard page and connect the page to the KPI list Web Part.
D. Filter the items in the KPI list Web Part by the indicator that the user wants to view.
Answer: A

certification Microsoft   certification 070-542-VB   070-542-VB   070-542-VB

NO.15 You create a Microsoft Office SharePoint Server 2007 site. You also create a Business Data Catalog
(BDC) definition. The BDC definition accesses a product database that is stored on a Microsoft SQL
Server 2005 server.
You need to ensure that users can filter the product data by the ProductType field from within the
SharePoint server.
What should you do?
A. Create a custom action that passes the product type to the BDC definition.
B. Create an IDEnumerator method that filters the data by the ProductType field.
C. Create a Filter Descriptor object that passes the ProductType field value as a parameter.
D. Create a type descriptor within the BDC definition for which ProductType is the type name.
Answer: C

Microsoft examen   070-542-VB   070-542-VB examen

NO.16 You are creating a Microsoft Office SharePoint Server 2007 application. The application reads data
from the Microsoft Office Excel 2007 workbook named SalesGoals.xlsx. SalesGoals.xlsx is located in a
document library. The first sheet of the SalesGoals.xlsx workbook contains the following information.
You need to retrieve the values for 2008 from within your application.
Which two actions should you perform? (Each correct answer provides part of the solution. Choose
two.)
A. Instantiate a new RangeCoordinates object.
B. Instantiate the Microsoft Office Excel Web Services service.
C. Call the GetRangeA1 method by passing B3:D3 as a parameter.
D. Call the GetRange method along with a RangeCoordinates object by using the following parameters.
column=2, row=3, height=1, width=3
Answer: BC

Microsoft examen   070-542-VB examen   certification 070-542-VB   070-542-VB examen   070-542-VB examen

NO.17 You have two Microsoft Office SharePoint Server 2007 site collections named Staging and Production.
The Staging site collection runs on Server A. The Production site collection runs on Server B. Server A
and Server B are located on separate networks. You need to write a script that replicates content from the
Staging site collection to the Production site collection. What should you do? (To answer, move the
appropriate three actions from the list of actions to the answer area and arrange them in the correct
order.)
Answer:

NO.18 You create an application for a Microsoft Office SharePoint Server 2007 server.
You need to write code that retrieves all users for an audience named Audience1.
Which code segment should you use?
A. Private audMgr As AudienceManager = New AudienceManager()
Private audiences As AudienceCollection = audMgr.Audiences
Private audience1 As Audience = audiences("Audience1")
B. Private audMgr As AudienceManager = New AudienceManager()
Private membershipList As ArrayList = _
audMgr.Audiences("Audience1").GetMembership()
C. Private audMgr As AudienceManager = New AudienceManager()
Private audience1 As AudienceCollection = _
audMgr.Audiences
D. Private site As SPSite = New _
SPSite("http: //servername//sites/site1")
Private context As ServerContext = _
ServerContext.GetContext(site)
Private audMgr As AudienceManager = _
New AudienceManager(context)
Private web As SPWeb = site.AllWebs(0)
Private audienceIDNames As ArrayList = _
audMgr.GetUserAudienceIDs("Audience1", True, web)
Answer: B

Microsoft examen   070-542-VB examen   070-542-VB   070-542-VB   certification 070-542-VB   certification 070-542-VB

NO.19 Your Microsoft SQL Server 2005 database contains client records. You create a Business Data
Catalog (BDC) definition that allows you to view the client information.
You create a Web Part that displays a map of the location of the selected client.
You need to ensure that you can create a custom action to link to the Web part. Which two actions should
you perform? (Each correct answer presents part of the solution. Choose two.)
A. Define a filter on the Client entity.
B. Declare an identifier for the Client entity.
C. Define a Finder object on the Client entity.
D. Define a SpecificFinder object on the Client entity.
Answer: BD

Microsoft   certification 070-542-VB   certification 070-542-VB

NO.20 You are creating a Microsoft Office SharePoint Server 2007 site. A document library contains
documents on new products.
The documents must contain a label that denotes the product status.
You need to add a label to all documents in the library.
What should you do?
A. Modify Variation Labels from the Site Collection Administration page.
B. Start an approval workflow each time a new document is added to the library.
C. Modify the document template for the existing document library to include the label.
D. Create an Information Management Policy feature for the document library that enforces label creation.
Answer: D

certification Microsoft   070-542-VB   070-542-VB   certification 070-542-VB

Le meilleur matériel de formation examen Microsoft 070-523-VB 070-506-VB 70-506-VB

Choisir le Pass4Test vous permet non seulement à réussir le test Microsoft 070-523-VB 070-506-VB 70-506-VB, mais encore à enjouir le service en ligne 24h et la mise à jour gratuite pendant un an. Nous allons lancer au premier temps la Q&A Microsoft 070-523-VB 070-506-VB 70-506-VB plus nouvelle. Si vous ne passez pas le test, votre argent sera tout rendu.


Le test Microsoft 070-523-VB 070-506-VB 70-506-VB est le premier pas pour promouvoir dans l'Industrie IT, mais aussi la seule rue ramenée au pic de succès. Le test Microsoft 070-523-VB 070-506-VB 70-506-VB joue un rôle très important dans cette industrie. Et aussi, Pass4Test est un chaînon inevitable pour réussir le test sans aucune doute.


Code d'Examen: 070-523-VB

Nom d'Examen: Microsoft (UPG:Transition MCPD.NET Frmwrk 3.5 Web Dev to 4 Web Dev)

Questions et réponses: 100 Q&As

Code d'Examen: 070-506-VB

Nom d'Examen: Microsoft (TS: Microsoft Silverlight 4, Development)

Questions et réponses: 75 Q&As

Code d'Examen: 70-506-VB

Nom d'Examen: Microsoft (TS: Microsoft Silverlight 4, Development)

Questions et réponses: 75 Q&As

070-523-VB 070-506-VB 70-506-VB est un test de Microsoft Certification, donc réussir 070-523-VB 070-506-VB 70-506-VB est le premier pas à mettre le pied sur la Certifiction Microsoft. Ça peut expliquer certiainement pourquoi le test Microsoft 070-523-VB 070-506-VB 70-506-VB devient de plus en plus chaud, et il y a de plus en plus de gens qui veulent participer le test 070-523-VB 070-506-VB 70-506-VB. Au contraire, il n'y a que pas beaucoup de gens qui pourrait réussir ce test. Dans ce cas, si vous vous réfléchissez étudier avec une bonne Q&A?


Pass4Test est aussi un site d'offrir la ressource des connaissances pour le test Certification IT. Selon les Feedbacks venus de gens qui ont untilié les produits de Pass4Test, Pass4Test est un site fiable comme l'outil de se former. Les Q&As offertes par Pass4Test sont bien précises. Les experts de Pass4Test mettent à jour nos documentations de formation de temps de temps.


Ajoutez le produit de Pass4Test au panier, vous pouvez participer le test avec une 100% confiance. Bénéficiez du succès de test Microsoft 070-523-VB 070-506-VB 70-506-VB par une seule fois, vous n'aurez pas aucune raison à refuser.


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


NO.1 You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
The application contains the following XAML fragment.
<TextBlock x:Name="QuoteOfTheDay" />
The application calls a Windows Communication Foundation (WCF) service named MyService that
returns the quote of the day and assigns it to the QuoteOfTheDay TextBlock.
The application contains the following code segment. (Line numbers are included for reference only.)
01 Dim client = New MyService.MyServiceClient()
02 AddHandler client.GetQuoteOfTheDayCompleted, Sub(s, args) QuoteOfTheDay.Text = args.Result
03 client.GetQuoteOfTheDayAsync()
You need to handle errors that might occur as a result of the service call. You also need to provide a
default value of "Unavailable" when an error occurs.
Which code segment should you replace at lines 02 and 03?
A. QuoteOfTheDay.Text = "Unavailable"
AddHandler client.GetQuoteOfTheDayCompleted, Sub(s, args)
QuoteOfTheDay.Text = args.Result
End Sub
client.GetQuoteOfTheDayAsync()
B. AddHandler client.GetQuoteOfTheDayCompleted,Sub(s, args)
If args.Result IsNot Nothing Then
QuoteOfTheDay.Text = args.Result
Else
QuoteOfTheDay.Text = "Unavailable"
End If
End Sub
client.GetQuoteOfTheDayAsync()
C. AddHandler client.GetQuoteOfTheDayCompleted, Sub(s, args)
QuoteOfTheDay.Text = args.Result
End Sub
Try
client.GetQuoteOfTheDayAsync()
Catch ex As Exception
' TODO: handle exception
QuoteOfTheDay.Text = "Unavailable"
End Try
D. AddHandler client.GetQuoteOfTheDayCompleted, Sub(s, args)
If args.[Error] Is Nothing Then
QuoteOfTheDay.Text = args.Result
Else
' TODO: handle error
QuoteOfTheDay.Text = "Unavailable"
End If
End Sub
client.GetQuoteOfTheDayAsync()
Answer: D

certification Microsoft   certification 070-506-VB   070-506-VB examen   certification 070-506-VB   070-506-VB

NO.2 You are developing a Silverlight 4 application.
You define an Invoice object according to the following code segment.
Public Class Invoice
Public Property InvoiceId() As Integer
Public Property Amount() As Double
Public Property Supplier() As Supplier
Public Property InvoiceDate() As DateTime
Public Property PayDate() As DateTime
Public Property InvoiceDescription() As String
End Class
You need to display a list of invoices that have the following properties displayed on each line: InvoiceId,
Amount, and InvoiceDate.
Which XAML fragment should you use?
A. <ListBox x:Name="InvoiceListBox">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=InvoiceId}" />
<TextBlock Text="{Binding Path=Amount}" />
<TextBlock Text="{Binding Path=InvoiceDate}" />
</StackPanel>
</ListBox>
B. <ListBox x:Name="InvoiceListBox">
<StackPanel Orientation="Horizontal">
<ListBoxItem>
<TextBlock Text="{Binding Path=InvoiceId}" />
</ListBoxItem>
<ListBoxItem>
<TextBlock Text="{Binding Path=Amount}" />
</ListBoxItem>
<ListBoxItem>
<TextBlock Text="{Binding Path=InvoiceDate}" />
</ListBoxItem>
</StackPanel>
</ListBox>
C. <ListBox x:Name="InvoiceListBox">
<ListBox.Items>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=InvoiceId}" />
<TextBlock Text="{Binding Path=Amount}" />
<TextBlock Text="{Binding Path=InvoiceDate}" />
</StackPanel>
</ItemsPanelTemplate>
</ListBox.Items>
</ListBox>
D. <ListBox x:Name="InvoiceListBox">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=InvoiceId}" />
<TextBlock Text="{Binding Path=Amount}" />
<TextBlock Text="{Binding Path=InvoiceDate}" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
Answer: D

Microsoft   certification 070-506-VB   070-506-VB examen   070-506-VB   070-506-VB examen

NO.3 You are developing a Silverlight 4 application.
You define the visual behavior of a custom control in the ControlTemplate by defining a VisualState object
named Selected.
You need to change the visual state of the custom control to the Selected state.
Which code segment or XAML fragment should you use?
A. VisualStateManager.GoToState(Me, "Selected", True)
B. <VisualTransition To="Selected">
<Storyboard>
...
</Storyboard>
</VisualTransition>
C. <VisualTransition From="Selected">
<Storyboard>
...
</Storyboard>
</VisualTransition>
D. Public Shared ReadOnly SelectedProperty As DependencyProperty =
DependencyProperty.Register("Selected", GetType(VisualState), GetType(MyControl), Nothing)
Public Property Selected As VisualState
Get
Return GetValue(SelectedProperty)
End Get
Set(ByVal value As VisualState)
SetValue(SelectedProperty, value)
End Set
End Property
Answer: A

Microsoft examen   070-506-VB   070-506-VB   070-506-VB   070-506-VB   070-506-VB examen

NO.4 You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You add a BackgroundWorker object named worker to the application. You also add a CheckBox control
named checkBox and a TextBlock control named statusTextBlock.
You add the following code segment. (Line numbers are included for reference only.)
01 Public Sub New()
02 InitializeComponent()
03 worker.WorkerReportsProgress = True
04 AddHandler worker.DoWork, New DoWorkEventHandler(AddressOf worker_DoWork)
05 AddHandler worker.ProgressChanged, New ProgressChangedEventHandler(AddressOf
worker_ProgressChanged)
06 End Sub
07 Private Sub worker_DoWork(sender As Object, e As DoWorkEventArgs)
08 For i As Integer = 0 To 99
09 Dim isChecked As Boolean = checkBox.IsChecked.HasValue AndAlso
checkBox.IsChecked.Value
10 ExecuteLongRunningProcessStep(isChecked)
11 worker.ReportProgress(i)
12 Next

NO.5 You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You create a new user control in the application. You add the following XAML fragment to the control.
<StackPanel KeyDown="App_KeyDown" Orientation="Vertical">
<TextBox x:Name="firstName" />
<TextBox x:Name="lastName" />
<TextBox x:Name="address" />
</StackPanel>
You add the following code segment in the code-behind file of the control. (Line numbers are included for
reference only.)
01 Private Sub App_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs)
02
03 End Sub
04
05 Private Sub FirstAndLastNameKeyDown()
06 '...
07 End Sub
You need to ensure that the FirstAndLastNameKeyDown method is invoked when a key is pressed while
the focus is on the firstName or lastName TextBox controls. You also need to ensure that the default
behavior of the controls remains unchanged.
Which code segment should you add at line 02?
A. If ((CType(sender,FrameworkElement).Name = "firstName") _
OrElse (CType(sender,FrameworkElement).Name = "lastName")) Then
FirstAndLastNameKeyDown
End If
e.Handled = false
B. If ((CType(sender,FrameworkElement).Name = "firstName") _
OrElse (CType(sender,FrameworkElement).Name = "lastName")) Then
FirstAndLastNameKeyDown
End If
e.Handled = true
C. If ((CType(e.OriginalSource,FrameworkElement).Name = "firstName") _
OrElse (CType(e.OriginalSource,FrameworkElement).Name = "lastName")) Then
FirstAndLastNameKeyDown
End If
e.Handled = false
D. If ((CType(e.OriginalSource,FrameworkElement).Name = "firstName") _
OrElse (CType(e.OriginalSource,FrameworkElement).Name = "lastName")) Then
FirstAndLastNameKeyDown
End If
e.Handled = true
Answer: C

Microsoft examen   070-506-VB   certification 070-506-VB

NO.6 End Sub
You attempt to run the application. You receive the following error message:
"Invalid cross-thread access."
You need to ensure that worker executes successfully.
What should you do?
A. Replace line 09 with the following code segment.
Dim b = CType(checkBox.GetValue(CheckBox.IsCheckedProperty), System.Nullable(Of Boolean))
Dim isChecked As Boolean = b.HasValue AndAlso b.Value
B. Replace line 09 with the following code segment.
Dim isChecked As Boolean = False
Dispatcher.BeginInvoke(Function()
isChecked = checkBox.IsChecked.HasValue AndAlso checkBox.IsChecked.Value
End Function)
C. Replace line 15 with the following code segment.
statusTextBlock.SetValue(TextBlock.TextProperty, (e.ProgressPercentage + "%"))
D. Replace line 15 with the following code segment.
Dispatcher.BeginInvoke(Function()
statusTextBlock.Text = e.ProgressPercentage + "%"
End Function)
Answer: B

Microsoft   070-506-VB   certification 070-506-VB   070-506-VB
13. You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You add the following code segment. (Line numbers are included for reference only.)
01 Public Class MyControl Inherits Control
02
03 Public Property Title() As String
04 Get
05 Return DirectCast(GetValue(TitleProperty), String)
06 End Get
07 Set
08 SetValue(TitleProperty, value)
09 End Set
10 End Property
11 End Class
You need to create a dependency property named TitleProperty that allows developers to set the Title.
You also need to ensure that the default value of the TitleProperty dependency property is set to Untitled.
Which code segment you add at line 02?
A. Public Shared ReadOnly TitleProperty As DependencyProperty =
DependencyProperty.Register("Untitled", GetType(System.String),
GetType(MyControl), Nothing)
B. Public Shared ReadOnly TitleProperty As DependencyProperty =
DependencyProperty.Register("Untitled", GetType(System.String),
GetType(MyControl), New PropertyMetadata("Title"))
C. Public Shared ReadOnly TitleProperty As DependencyProperty =
DependencyProperty.Register("Title", GetType(System.String),
GetType(MyControl), New PropertyMetadata("Untitled"))
D. Public Shared ReadOnly TitleProperty As DependencyProperty =
DependencyProperty.Register("Title", GetType(String),
GetType(MyControl), New PropertyMetadata(New PropertyChangedCallback(Sub(depObj, args)
depObj.SetValue(MyControl.TitleProperty, "Untitled")
End Sub)))
Answer: C

certification Microsoft   070-506-VB examen   070-506-VB   070-506-VB examen   070-506-VB examen
14. You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You create a control named MyControl in the application. Each instance of the control contains a list of
FrameworkElement objects.
You add the following code segment. (Line numbers are included for reference only.)
01 Public Class MyControl
02 Inherits Control
03
04 Public ReadOnly Property ChildElements As List(Of FrameworkElement)
05 Get
06 Return DirectCast(GetValue(MyControl.ChildElementsProperty), List(Of FrameworkElement))
07 End Get
08 End Property
09 Public Sub New()
10
11 End Sub
12
13 Shared Sub New()
14
15 End Sub
16 End Class
You need to create the ChildElementsProperty dependency property. You also need to initialize the
property by using an empty list of FrameworkElement objects.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose
two.)
A. Add the following code segment at line 03.
Public Shared ReadOnly ChildElementsProperty As DependencyProperty =
DependencyProperty.Register("ChildElements", GetType(List(Of
FrameworkElement)), GetType(MyControl), New PropertyMetadata(New
List(Of FrameworkElement)()))
B. Add the following code segment at line 03.
Public Shared ReadOnly ChildElementsProperty As DependencyProperty =
DependencyProperty.Register("ChildElements", GetType(List(Of
FrameworkElement)), GetType(MyControl), New
PropertyMetadata(Nothing))
C. Add the following code segment at line 10.
SetValue(MyControl.ChildElementsProperty, New List(Of
FrameworkElement)())
D. Add the following code segment at line 14.
ChildElementsProperty = DependencyProperty.Register("ChildElements",
GetType(List(Of FrameworkElement)), GetType(MyControl), New
PropertyMetadata(New List(Of FrameworkElement)()))
Answer: BC

Microsoft   070-506-VB   certification 070-506-VB   070-506-VB
15. You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You add the following code segment. (Line numbers are included for reference only.)
01 Dim outerCanvas = New Canvas()
02 Dim innerCanvas = New Canvas()
03 innerCanvas.Width = 200
04 innerCanvas.Height = 200
05 outerCanvas.Children.Add(innerCanvas)
06
You need to set the distance between the left of the innerCanvas element and the left of the outerCanvas
element to 150 pixels.
Which code segment should you add at line 06?
A. outerCanvas.Margin = New Thickness(0.0, 150.0, 0.0, 0.0)
B. innerCanvas.Margin = new Thickness(0.0, 150.0, 0.0, 0.0)
C. outerCanvas.SetValue(Canvas.LeftProperty, 150.0)
D. innerCanvas.SetValue(Canvas.LeftProperty, 150.0)
Answer: D

Microsoft examen   070-506-VB examen   certification 070-506-VB   070-506-VB examen   070-506-VB   070-506-VB

NO.7 statusTextBlock.Text = Convert.ToString(e.ProgressPercentage) & "%"

NO.8 Private Sub worker_ProgressChanged(sender As Object, e As ProgressChangedEventArgs)

NO.9 You are developing a Silverlight 4 application.
You have a collection named ColPeople of the List<Person> type.
You define the Person class according to the following code segment.
Public Class Person
Public Property Name() As String
Public Property Description() As String
Public Property Gender() As String
Public Property Age() As Integer
Public Property Weight() as Integer
End Class
You need to bind ColPeople to a ComboBox so that only the Name property is displayed.
Which XAML fragment should you use?
A. <ComboBox DataContext="{Binding ColPeople}" ItemsSource="{Binding ColPeople}"
DisplayMemberPath="Name" />
B. <ComboBox DataContext="{Binding Person}" ItemsSource="{Binding Person}"
DisplayMemberPath="ColPeople" />
C. <ComboBox DataContext="{Binding ColPeople}" DisplayMemberPath="Name" />
D. <ComboBox DataContext="{Binding Person}" />
Answer: A

Microsoft   070-506-VB   070-506-VB

NO.10 End Sub

NO.11 You are developing a Silverlight 4 application.
The application contains an XAML page that defines the following Grid control.
<Grid Name="gridBody" >
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock Text="Employee Info" />
<TextBlock Text="Please enter employee info" Grid.Row="1" Height="20" VerticalAlignment="Top" />
<TextBox x:Name="EmpInfo" Grid.Row="1" Margin="0,25,0,0" TextWrapping="Wrap" />
...
</Grid>
The code-behind file for myPage.xaml contains the following code segment. (Line numbers are included
for reference only.)
01 Public Sub New()
02 InitializeComponent()
03
04 Dim control As UserControl = New MyCustomControl()
05
06 End Sub
You need to replace the contents of the second row of gridBody with a user control of the
MyCustomControl type.
Which code segment should you insert at line 05?
A. gridBody.Children.Insert(1, control)
B. gridBody.RowDefinitions.Remove(gridBody.RowDefinitions(1))
gridBody.Children.Insert(1, control)
C. gridBody.RowDefinitions.Remove(gridBody.RowDefinitions(1))
gridBody.Children.Insert(1, control)
gridBody.Children.Clear()
Grid.SetRow(control, 1)
gridBody.Children.Add(control)
D. gridBody.RowDefinitions.Remove(gridBody.RowDefinitions(1))
gridBody.Children.Insert(1, control)
gridBody.Children.Clear()
Grid.SetRow(control, 1)
gridBody.Children.Add(control)
Answer: D

Microsoft examen   070-506-VB   070-506-VB   070-506-VB examen

NO.12 You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You create a Windows Communication Foundation (WCF) Data Service. You add a service reference to
the WCF Data Service named NorthwindEntities in the Silverlight application. You also add a
CollectionViewSource object named ordersViewSource in the Silverlight application.
You add the following code segment. (Line numbers are included for reference only.)
01 Sub getOrders_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
02 Dim context As New NorthwindEntities()
03
04 Dim query = From order In context.Orders Select order
05
06 End Sub
You need to retrieve the Orders data from the WCF Data Service and bind the data to the
ordersViewSource object.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose
two.)
A. Add the following code segment at line 03.
Dim obsCollection = New ObservableCollection(Of Order)
B. Add the following code segment at line 03.
Dim dsOrders As New DataServiceCollection(Of Order)
AddHandler dsOrders.LoadCompleted, New EventHandler(Of LoadCompletedEventArgs)(Sub(dsc, args)
ordersViewSource.Source = dsOrders
End Sub)
C. Add the following code segment at line 05.
dsOrders.LoadAsync(query)
D. Add the following code segment at line 05.
dsOrders.Load(query)
E. Add the following code segment at line 05.
query.ToList().ForEach(Sub(o) obsCollection.Add(o))
ordersViewSource.Source = obsCollection
Answer: BC

Microsoft   070-506-VB   certification 070-506-VB   070-506-VB   certification 070-506-VB

NO.13 You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4. The
application has a TextBox control named txtName.
You need to handle the event when txtName has the focus and the user presses the F2 key.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose
two.)
A. AddHandler txtName.KeyDown, New KeyEventHandler ( AddressOf txtName_KeyDown)
B. AddHandler txtName.LostFocus, New RoutedEventHandler(AddressOf txtName_LostFocus)
C. AddHandler txtName.TextChanged, New TextChangedEventHandler(AddressOf
txtName_TextChanged)
D. Private Sub txtName_TextChanged(sender As Object, e As TextChangedEventArgs)
'Custom logic
If DirectCast(e.OriginalSource, Key) = Key.F2 Then
End If
End Sub
E. Private Sub txtName_KeyDown(sender As Object, e As KeyEventArgs)
'Custom logic
If e.Key = Key.F2 Then
End If
End Sub
F. Private Sub txtName_LostFocus(sender As Object, e As RoutedEventArgs)
'Custom logic
If DirectCast(e.OriginalSource, Key) = Key.F2 Then
End If
End Sub
Answer: AE

Microsoft   070-506-VB   070-506-VB

NO.14 You are developing a Silverlight 4 application.
The application defines the following three event handlers. (Line numbers are included for reference only.)
01 Private Sub HandleCheck(sender As Object, e As RoutedEventArgs)
02 MessageBox.Show("Checked")
03 End Sub
04
05 Private Sub HandleUnchecked(sender As Object, e As RoutedEventArgs)
06 MessageBox.Show("Unchecked")
07 End Sub
08
09 Private Sub HandleThirdState(sender As Object, e As RoutedEventArgs)
10 MessageBox.Show("Indeterminate")
11 End Sub
You need to allow a check box that can be selected, cleared, or set to Indeterminate. You also need to
ensure that the event handlers are invoked when the user changes the state of the control.
Which XAML fragment should you use?
A. <CheckBox x:Name="cb2" Content="Three State CheckBox"
IsChecked="True" Checked="HandleCheck"
Indeterminate="HandleUnchecked" Unchecked="HandleUnchecked" />
B. <CheckBox x:Name="cb2" Content="Three State CheckBox"
IsThreeState="True" Checked="HandleCheck"
Indeterminate="HandleThirdState" Unchecked="HandleUnchecked" />
C. <CheckBox x:Name="cb2" Content="Three State CheckBox"
IsHitTestVisible="True" Checked="HandleCheck"
Indeterminate="HandleThirdState" Unchecked="HandleUnchecked" />
D. <CheckBox x:Name="cb2" Content="Three State CheckBox"
IsEnabled="True" Checked="HandleCheck"
Indeterminate="HandleUnchecked" Unchecked="HandleUnchecked" />
Answer: B

Microsoft   070-506-VB examen   070-506-VB   070-506-VB

NO.15 You are developing a Silverlight 4 application.
The application defines the following XAML fragment. (Line numbers are included for reference only.)
01 <ComboBox>
02 <ComboBoxItem Content="Item 1" />
03 <ComboBoxItem Content="Item 2" />
04 <ComboBoxItem Content="Item 3" />
05 </ComboBox>
The code-behind file contains the following code segment. (Line numbers are included for reference only.)
06 Private Sub PrintText(sender As Object, args As SelectionChangedEventArgs)
07
08 MessageBox.Show("You selected " + cbi.Content.ToString() + ".")
09 End Sub
You need to ensure that when the user selects an item in a ComboBox control, the content of the item is
displayed.
What should you do?
A. Replace the following XAML fragment at line 01.
<ComboBox SelectionChanged="PrintText">
Add the following code segment at line 07.
Dim cbi As ComboBoxItem = TryCast(TryCast(sender, ComboBox).SelectedItem, ComboBoxItem)
B. Replace the following XAML fragment at line 01.
<ComboBox SelectionChanged="PrintText">
Add the following code segment at line 07.
Dim cbi As ComboBoxItem = TryCast(TryCast(sender, ComboBox).SelectedIndex, ComboBoxItem)
C. Replace the following XAML fragment at line 01.
<ComboBox DropDownClosed="PrintText">
Add the following code segment at line 07.
Dim cbi As ComboBoxItem = TryCast(TryCast(sender, ComboBox).SelectedItem, ComboBoxItem)
D. Replace the following XAML fragment at line 01.
<ComboBox DropDownClosed="PrintText">
Add the following code segment at line 07.
Dim cbi As ComboBoxItem = TryCast(TryCast(sender, ComboBox).SelectedIndex, ComboBoxItem)
Answer: A

Microsoft examen   070-506-VB   070-506-VB   070-506-VB

NO.16 You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You add a BackgroundWorker object named worker to the application.
You add the following code segment. (Line numbers are included for reference only.)
01 Public Sub New()
02 InitializeComponent()
03 worker.WorkerSupportsCancellation = True
04 AddHandler worker.DoWork, New DoWorkEventHandler(AddressOf worker_DoWork)
05 AddHandler worker.RunWorkerCompleted, New RunWorkerCompletedEventHandler(AddressOf
worker_Completed)
06 End Sub
07 Private Sub worker_DoWork(sender As Object, e As DoWorkEventArgs)
08 For i As Integer = 0 To 99
09 InvokeLongRunningProcessStep()
10 Next
11 End Sub
You need to ensure that worker can be properly canceled.
Which code segment should you use to replace line 09?
A. Dim cancel = TryCast(sender, BackgroundWorker).CancellationPending
If cancel Then
TryCast(sender, BackgroundWorker).CancelAsync()
Else
InvokeLongRunningProcessStep()
End If
B. Dim cancel = TryCast(sender, BackgroundWorker).CancellationPending
If cancel Then
e.Cancel = True
Else
InvokeLongRunningProcessStep()
End If
C. Dim cancel = e.Cancel
If cancel Then
TryCast(sender, BackgroundWorker).CancelAsync()
Else
InvokeLongRunningProcessStep()
End If
D. Dim cancel = e.Cancel
If cancel Then
e.Cancel = True
Else
InvokeLongRunningProcessStep()
End If
Answer: B

Microsoft   070-506-VB   070-506-VB   070-506-VB