70-536ChineseCSharp TS Braindump
ExamSoon 70-536ChineseCSharp Exams
Microsoft TS:MS.NET Framework 2.0-Application Develop Foundation
O rder : 70-536ChineseCSharp Exam
Practice Exam: 70-536ChineseCSharp
Exam Number/Code: 70-536ChineseCSharp
Exam Name: TS:MS.NET Framework 2.0-Application Develop
Foundation
Questions and Answers: 64 Q&As
Free 70-536ChineseCSharp Braindumps
Exam : Microsoft 70-536Chinese
CSharp
Title : TS:MS.NET Framework 2.0-Application Develop Foundation
1. 您正在开发一个协助用户进行电子调查的应用程序。调查由 25 个对错判断题组成。
您需要执行下列任务:
·将每个答案预置为是。
·最大程度地减少每次调查使用的内存量。
您应该选择哪个存储选项?
A. BitVector32 ̂answers = gcnew BitVector32(1);
B. BitVector32 ̂answers = gcnew BitVector32(-1);
C. BitArray ̂answers = gcnew BitArray (1);
D. BitArray ̂answers = gcnew BitArray(-1);
Answer: B
2. 您正在创建一个类,用于比较经过特殊格式设置的字符串。默认的排序规则比较不适用。
您需要实现 IComparable<string> 接口。
您应该使用哪个代码段?
A. public ref class Person :public IComparable<String^>{
public :virtual Int32 CompareTo(String ̂other){
...
}
}
B. public ref class Person :public IComparable<String^>{
public :virtual Int32 CompareTo(Object ̂other){
...
}
}
C. public ref class Person :public IComparable<String^>{
public :virtual Boolean CompareTo(String ̂other){
...
}
}
D. public ref class Person :public IComparable<String^>{
public :virtual Boolean CompareTo(Object ̂other){
...
}
}
Answer: A
3. 您正在编写一个方法,该方法返回名为 al 的 ArrayList。
您需要确保以线程安全的方式对 ArrayList 执行更改。
您应该使用哪个代码段?
A. ArrayList ̂al = gcnew ArrayList();
lock (al->SyncRoot)
{
return al;
}
B. ArrayList ̂al = gcnew ArrayList();
lock (al->SyncRoot.GetType())
{
return al;
}
C. ArrayList ̂al = gcnew ArrayList();
Monitor::Enter(al);
Monitor::Exit(al);
return al;
D. ArrayList ̂al = gcnew ArrayList();
ArrayList ̂sync_al = ArrayList::Synchronized(al);
return sync_al;
Answer: D
4. 您需要编写一个接受 DateTime 参数并返回布尔值的多路广播委托。
您应该使用哪个代码段?
A. public delegate int PowerDeviceOn(bool,
DateTime);
B. public delegate bool PowerDeviceOn(Object,EventArgs);
C. public delegate void PowerDeviceOn(DateTime);
D. public delegate bool PowerDev