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

2013年7月28日星期日

Microsoftの70-561-Csharp 70-536-Cplusplus 70-505-Csharp 70-536-Csharp認定試験の最新教育資料の登場

学歴は実力と等しくなく、能力とも等しくないです。本当の能力は実践で鍛えたもので、学歴と直接な関係がないです。「私はだめです。」と思わないでください。Microsoftの70-561-Csharp 70-536-Cplusplus 70-505-Csharp 70-536-Csharp試験に申し込んだあなたは自分が合格できないなんてを心配だったら、Pass4TestのMicrosoftの70-561-Csharp 70-536-Cplusplus 70-505-Csharp 70-536-Csharp試験トレーニング資料を利用してください。学歴がどんなに高くて、能力がどんなに低くても、首尾よく試験に合格することができます。


多くの時間と労力をかかってMicrosoft70-561-Csharp 70-536-Cplusplus 70-505-Csharp 70-536-Csharp認定試験に合格するを冒険にすると代わりPass4Testが提供した問題集を利用してわずか一度お金かかって合格するのは価値があるでしょう。今の社会の中で時間がそんなに重要で最も保障できるPass4Testを選ばましょう。


弊社のMicrosoftの70-561-Csharp 70-536-Cplusplus 70-505-Csharp 70-536-Csharp勉強資料を利用したら、きっと試験を受けるための時間とお金を節約できます。Pass4TestのMicrosoftの70-561-Csharp 70-536-Cplusplus 70-505-Csharp 70-536-Csharp問題集を買う前に、一部の問題と解答を無料にダウンロードすることができます。PDFのバージョンとソフトウェアのバージョンがありますから、ソフトウェアのバージョンを必要としたら、弊社のカスタマーサービススタッフから取得してください。


試験番号:70-561-Csharp問題集

試験科目:Microsoft 「TS:MS.NET Framework 3.5,ADO.NET Application Development」

試験番号:70-536-Cplusplus問題集

試験科目:Microsoft 「TS:MS.NET Framework 2.0-Application Develop Foundation」

試験番号:70-505-Csharp問題集

試験科目:Microsoft 「TS: Microsoft .NET Framework 3.5, Windows Forms Application Development: 70-505Csharp Exam」

試験番号:70-536-Csharp問題集

試験科目:Microsoft 「TS:MS.NET Framework 2.0-Application Develop Foundation」

Pass4Testは君の試験に合格させるだけでなく本当の知識を学ばれます。Pass4Testはあなたが100% で70-561-Csharp 70-536-Cplusplus 70-505-Csharp 70-536-Csharp試験に合格させるの保証することができてまたあなたのために一年の無料の試験の練習問題と解答の更新サービス提供して、もし試験に失敗したら、弊社はすぐ全額で返金を保証いたします。


ITテストと認定は当面の競争が激しい世界でこれまで以上に重要になりました。それは異なる世界の未来を意味しています。Microsoftの70-561-Csharp 70-536-Cplusplus 70-505-Csharp 70-536-Csharpの試験はあなたの職場生涯で重要な画期的な出来事になり、新しいチャンスを発見するかもしれません。ところが、Microsoftの70-561-Csharp 70-536-Cplusplus 70-505-Csharp 70-536-Csharpの試験にどうやって合格しますか。心配することはないですよ、ヘルプがあなたの手元にありますから。Pass4Testを利用したら恐いことはないです。Pass4TestのMicrosoftの70-561-Csharp 70-536-Cplusplus 70-505-Csharp 70-536-Csharpの試験問題と解答は試験準備のパイオニアですから。


購入前にお試し,私たちの試験の質問と回答のいずれかの無料サンプルをダウンロード:http://www.pass4test.jp/70-505-Csharp.html


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

Microsoft認定証   70-505-Csharp   70-505-Csharp過去問   70-505-Csharp認証試験   70-505-Csharp過去問   70-505-Csharp

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

Microsoft練習問題   70-505-Csharp   70-505-Csharp参考書

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

Microsoft問題集   70-505-Csharp   70-505-Csharp認定資格   70-505-Csharp認定資格

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

Microsoft   70-505-Csharp過去問   70-505-Csharp   70-505-Csharp   70-505-Csharp問題集

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

Microsoft認証試験   70-505-Csharp   70-505-Csharp   70-505-Csharp

2013年5月23日星期四

最新Microsoft 70-536-Csharp試験の練習問題と解答

Pass4Testは正確な選択を与えて、君の悩みを減らして、もし早くてMicrosoft 70-536-Csharp認証をとりたければ、早くてPass4Testをショッピングカートに入れましょう。あなたにとても良い指導を確保できて、試験に合格するのを助けって、Pass4Testからすぐにあなたの通行証をとります。

Pass4TestにIT業界のエリートのグループがあって、彼達は自分の経験と専門知識を使ってMicrosoft 70-536-Csharp認証試験に参加する方に対して問題集を研究続けています。君が後悔しないようにもっと少ないお金を使って大きな良い成果を取得するためにPass4Testを選択してください。Pass4Testはまた一年間に無料なサービスを更新いたします。

Pass4TestはMicrosoftの70-536-Csharp認定試験にたいして短期で有効なウェブサイトで70-536-Csharp認定試験に合格するのを保証したり、Microsoft認証試験に合格しなければ全額で返金いたします。あなたはPass4Testが提供した70-536-Csharpの認証試験の問題集を購入するの前にインターネットで無料な試用版をダウンロードしてください。

試験番号:70-536-Csharp問題集
試験科目:Microsoft 「TS:MS.NET Framework 2.0-Application Develop Foundation」

最近の数年間で、IT領域の継続的な発展と成長に従って、70-536-Csharp認証試験はもうMicrosoft試験のマイルストーンになりました。Microsoftの70-536-Csharpの認証試験はあなたがIT分野のプロフェッショナルになることにヘルプを差し上げます。Microsoftの70-536-Csharpの試験問題を提供するウェブが何百ありますが、なぜ受験生は殆どPass4Testを選んだのですか。それはPass4TestにはIT領域のエリートたちが組み立てられた団体があります。その団体はMicrosoftの70-536-Csharpの認証試験の最新の資料に専攻して、あなたが気楽にMicrosoftの70-536-Csharpの認証試験に合格するためにがんばっています。Pass4Testは初めにMicrosoftの70-536-Csharpの認証試験を受けるあなたが一回で成功することを保証します。Pass4Testはいつまでもあなたのそばにいて、あなたと一緒に苦楽を共にするのです。

購入前にお試し,私たちの試験の質問と回答のいずれかの無料サンプルをダウンロード:http://www.pass4test.jp/70-536-Csharp.html

NO.1 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   70-536-Csharp練習問題   70-536-Csharp

NO.2 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練習問題   70-536-Csharp認定証   70-536-Csharp参考書   70-536-Csharp問題集

NO.3 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.4 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   70-536-Csharp   70-536-Csharp練習問題

NO.5 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   70-536-Csharp参考書   70-536-Csharp認定試験   70-536-Csharp問題集

NO.6 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   70-536-Csharp   70-536-Csharp   70-536-Csharp   70-536-Csharp練習問題

NO.7 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   70-536-Csharp   70-536-Csharp参考書   70-536-Csharp認定試験   70-536-Csharp参考書

NO.8 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認定証   70-536-Csharp参考書   70-536-Csharp   70-536-Csharp

NO.9 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参考書   70-536-Csharp

NO.10 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認定試験   70-536-Csharp

NO.11 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   70-536-Csharp   70-536-Csharp   70-536-Csharp練習問題   70-536-Csharp

NO.12 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認定証   70-536-Csharp   70-536-Csharp練習問題   70-536-Csharp認定試験   70-536-Csharp認定試験   70-536-Csharp問題集

NO.13 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問題集   70-536-Csharp   70-536-Csharp

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

NO.15 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   70-536-Csharp認証試験   70-536-Csharp問題集   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   70-536-Csharp認定資格   70-536-Csharp   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認定試験   70-536-Csharp   70-536-Csharp過去問   70-536-Csharp   70-536-Csharp

NO.18 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過去問   70-536-Csharp認定資格   70-536-Csharp認定試験   70-536-Csharp

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

Microsoft認定証   70-536-Csharp過去問   70-536-Csharp過去問   70-536-Csharp練習問題   70-536-Csharp   70-536-Csharp

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

Microsoftの70-536-Csharpの認定試験に合格すれば、就職機会が多くなります。この試験に合格すれば君の専門知識がとても強いを証明し得ます。Microsoftの70-536-Csharpの認定試験は君の実力を考察するテストでございます。