显示标签为“70-536-Csharp”的博文。显示所有博文
显示标签为“70-536-Csharp”的博文。显示所有博文

2014年5月27日星期二

Microsoft meilleur examen 70-536-Csharp 070-488, questions et réponses

La grande couverture, la bonne qualité et la haute précision permettent le Pass4Test à avancer les autre sites web. Donc le Pass4Test est le meilleur choix et aussi l'assurance pour le succès de test Microsoft 70-536-Csharp.

Pass4Test a capacité d'économiser vos temps et de vous faire plus confiant à réussir le test. Vous pouvez télécharger le démo Microsoft 070-488 gratuit à connaître mieux la bonne fiabilité de Pass4Test. Nous nous font toujours confiant sur nos produits, et vous aussi dans un temps proche. La réussite de test Microsoft 070-488 n'est pas loin de vous une fois que vous choisissez le produit de Pass4Test. C'est un choix élégant pour vous faciliter à réussir le test Microsoft 070-488.

Le guide d'étude sorti de Pass4Test comprend les expériences résumées par nos experts, les matériaux et les Q&As à propos de test Certification Microsoft 70-536-Csharp. Notre bonne réputation dans l'industrie IT sera une assurance 100% à réussir le test Microsoft 70-536-Csharp. Afin de vous permettre de choisir Pass4Test, vous pouvez télécharger gratuitement le démo de Q&A tout d'abord.

Code d'Examen: 70-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-488
Nom d'Examen: Microsoft (Developing Microsoft SharePoint Server 2013 Core Solutions)
Questions et réponses: 70 Q&As

Tant que vous avez besion de participer l'examen, nous pouvons toujours mettre à jour de matériaux à propos de test Certification Microsoft 70-536-Csharp. Le guide d'étude de Pass4Test comprend les excercices de Microsoft 70-536-Csharp et la Q&A qui peut vous permetrre à réussir 100% le test Microsoft 70-536-Csharp. Vous pouvez faire une meilleure préparation pour le test. D'ailleurs, la mise à jour pendant un an après vendre est gratuite pour vous.

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-536-Csharp à la première fois.

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

NO.1 A franchisee deletes several sites from the franchise's site collection. The franchisee site
collection administrator must recover the sites.
You need to instruct the franchisee site collection administrator on how to access the page to
recover the sites.
What should the site collection administrator do to get to the appropriate page?
A. Select General Settings for the Web Application in Central Administration and change the second
stage Recycle Bin settings to 100 percent.
B. Select General Settings for the Web Application in Central Administration and change the first
stage Recycle Bin settings to 0 days.
C. Select the Recycle Bin on the Site Settings page. Choose the appropriate sites and select Restore
Selection.
D. Select the Recycle Bin in the Quick Launch page. Choose the appropriate sites and select Restore
Selection.
Answer: A

certification Microsoft   070-488   070-488

NO.2 You receive an error when you deploy the app.
You need to resolve the error.
What should you do?
A. Deploy the app to http://contoso-public.sharepoint.com.
B. Enable side-loading of apps in the Visual Studio project properties.
C. Deploy the app to https://contoso-my.sharepoint.com.
D. Deploy the app to https://contoso.sharepoint.com/tasks.
Answer: A

Microsoft   certification 070-488   070-488 examen   certification 070-488

NO.3 DRAG DROP
Some franchisees want to launch the FranchiseMonitor app from a link named Launch Franchise
Monitor that is displayed next to the name of the user who is currently logged in.
Other franchisees do not want to have the link present.
The link must be contained within the same out-of-the-box control, as shown in the screenshot
below:
You need to configure support for the Launch Franchise Monitor link.
Which four actions should you perform in sequence? (To answer, move the appropriate actions
from the list of actions to the answer area and arrange them in the correct order.)
Answer:

NO.4 HOTSPOT
You need to select the app experience for the CourierMobile app.
In the App for Office 2013 dialog window, which configuration option should you select? (To answer,
select the appropriate configuration option in the answer area.)
Answer:

NO.5 You need to deploy the package.
Which file should you select?
A. the file ending in .publish
B. the file ending in .wsp
C. the file ending in .dll
D. the file ending in .app
Answer: D

certification Microsoft   070-488 examen   070-488 examen   070-488   certification 070-488   certification 070-488

NO.6 You need to meet the requirements for data storage for the CourierMobile app and the
CloudMananger app.
Which technologies should you use? (Each correct answer presents part of the solution. Choose all
that apply.)
A. Windows Azure SQL Database
B. SharePoint content database
C. Secure Store
D. SQL Server Express LocalDB
E. SharePoint list
Answer: A,D

certification Microsoft   certification 070-488   070-488 examen   070-488   certification 070-488
Explanation:
A: SQL Azure in the cloud.
D: LocalDB is a lightweight version of Express that has the same programmability features, but it
runs in user mode and has a fast, zero-configuration installation and a short list of prerequisites.
From scenario:
*CourierMobile App
The CourierMobile app must be able to capture more than 30 million data points of location data
daily as they occur and upload the location data to the cloud when connected to the Internet.
*Cloudmanager App
The CloudManager app must elastically scale to capture courier location data as the number of
bicycle couriers increases or decreases. / The CloudManager app must process bicycle courier
location data from a data store capable of storing more than 30 million items.

NO.7 You need to create rules in the CourierMobile app based on the ItemType that arrives.
For which ItemTypes should you test? (Each correct answer presents part of the solution. Choose all
that apply.)
A. IPM.Schedule.Meeting.Tent
B. IPM.Note
C. IPM.Schedule.Meeting.Request
D. IPM.Appointment
E. IPM.Schedule.Meeting.Cancelled
F. IPM.Schedule.Meeting.Pos
G. IPM.Schedule.Meeting.Neg
Answer: D,E

Microsoft examen   certification 070-488   certification 070-488   070-488 examen

NO.8 You need to create a custom sign-in page to allow the users of the FranchiseMonitor app to
authenticate against SharePoint and Margie's Travel API.
What should you do?
A. Create an app for SharePoint. Set the trust level to Sandbox solution. Create an application page
that writes a cookie named FedAuth. Deploy the app and configure the Sign In Page URL in Central
Administration Authentication Provider for the zone.
B. Create an app for SharePoint. Set the trust level to Farm solution. Create an application page that
writes a cookie named FedAuth. Deploy the app and configure the Sign In Page URL in Central
Administration Authentication Provider for the zone.
C. Create an app for SharePoint. Set the trust level to Farm solution. Create an application page that
writes a cookie named ASPXAUTH. Deploy the app and configure the Sign In Page URL in Central
Administration Authentication Provider for the zone.
D. Create an app for SharePoint. Set the trust level to Sandbox solution. Create an application page
that writes a cookie named ASPXAUTH. Deploy the app and configure the Sign In Page URL in
Central Administration Authentication Provider for the zone.
Answer: B

certification Microsoft   certification 070-488   certification 070-488   certification 070-488

2013年12月26日星期四

Guide de formation plus récente de Microsoft 70-536-Csharp

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

Choisir le produit fait avec tous efforts des experts de Pass4Test vous permet à réussir 100% le test Certification IT. Le produit de Pass4Test est bien certifié par les spécialistes dans l'Industrie IT. La haute qualité du produit Pass4Test ne vous demande que 20 heures pour préparer, et vous allez réussir le test Microsoft 70-536-Csharp à la première fois. Vous ne refuserez jamais pour le choix de Pass4Test, parce qu'il symbole le succès.

Il faut une bonne préparation et aussi une série de connaissances professionnelles complètes pour réussir le test Microsoft 70-536-Csharp. La ressourece providée par Pass4Test peut juste s'accorder votre demande.

Vous avez aussi la possibilité à réussir le test Microsoft 70-536-Csharp. Pass4Test offre la service de la mise à jour gratuite pendant un an. Si vous échouez le test, votre argent sera tout rendu. Maintenant, vous pouvez télécharger la partie gratuite prendre examinser la qualité des produits de Pass4Test.

Aujoud'hui, dans cette indutrie IT de plus en plus concurrentiel, le Certificat de Microsoft 70-536-Csharp peut bien prouver que vous avez une bonne concurrence et une space professionnelle plus grande à atteindre. Dans le site Pass4Test, vous pouvez trouver un outil de se former très pratique. Nos IT experts vous offrent les Q&As précises et détaillées pour faciliter votre cours de préparer le test Microsoft 70-536-Csharp qui vous amenera le succès du test Microsoft 70-536-Csharp, au lieu de traivailler avec peine et sans résultat.

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 70-536-Csharp par une seule fois, vous n'aurez pas aucune raison à refuser.

Vous aurez une assurance 100% à réussir le test Microsoft 70-536-Csharp si vous choisissez le produit de Pass4Test. Si malheuresement, vous ne passerez pas le test, votre argent seront tout rendu.

Code d'Examen: 70-536-Csharp
Nom d'Examen: Microsoft (TS:MS.NET Framework 2.0-Application Develop Foundation)
Questions et réponses: 160 Q&As

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

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

Microsoft examen   70-536-Csharp   70-536-Csharp   70-536-Csharp   70-536-Csharp   70-536-Csharp examen

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

certification Microsoft   70-536-Csharp examen   70-536-Csharp   70-536-Csharp

NO.3 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   certification 70-536-Csharp   70-536-Csharp   certification 70-536-Csharp   certification 70-536-Csharp

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

Microsoft   70-536-Csharp   70-536-Csharp   70-536-Csharp examen

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

certification Microsoft   70-536-Csharp   70-536-Csharp examen

NO.6 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   70-536-Csharp   70-536-Csharp   70-536-Csharp

NO.7 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 70-536-Csharp   70-536-Csharp   70-536-Csharp

NO.8 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   70-536-Csharp examen   70-536-Csharp   certification 70-536-Csharp   70-536-Csharp   70-536-Csharp examen

NO.9 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   70-536-Csharp examen   70-536-Csharp   certification 70-536-Csharp

NO.10 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   70-536-Csharp examen   70-536-Csharp

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

certification Microsoft   70-536-Csharp   70-536-Csharp examen   certification 70-536-Csharp

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   70-536-Csharp   70-536-Csharp examen

NO.13 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   70-536-Csharp examen   70-536-Csharp examen   70-536-Csharp

NO.14 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   70-536-Csharp   70-536-Csharp   70-536-Csharp

NO.15 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   70-536-Csharp   70-536-Csharp examen   70-536-Csharp examen   70-536-Csharp examen   certification 70-536-Csharp

NO.16 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   certification 70-536-Csharp   70-536-Csharp

NO.17 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 examen   70-536-Csharp   certification 70-536-Csharp

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

Microsoft   70-536-Csharp   70-536-Csharp   70-536-Csharp

NO.19 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   certification 70-536-Csharp   70-536-Csharp examen   70-536-Csharp examen

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

Microsoft   70-536-Csharp examen   certification 70-536-Csharp   70-536-Csharp   70-536-Csharp

Le test Microsoft 70-536-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-536-Csharp rapidement. Si vous utiliser l'outil de formation avant le test, vous apprendrez tous essences de test Certification Microsoft 70-536-Csharp.