KillTest 质量更高 服务更好 学习资料 http://www.killtest.cn 半年免费更新服务
Exam : 70-536Chinese(C++) Title : TS:MS.NET Framework 2.0-Application Develop Foundation Version : DEMO 1 / 10
1. Exception A. Data B. Message C. StackTrace D. Source Answer: C 2. 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 2 / 10
3. IComparable<string> A. public ref class Person :public IComparable<String^>{ virtual Int32 CompareTo(String^ other){... B. public ref class Person :public IComparable<String^>{ virtual Int32 CompareTo(Object^ other){... C. public ref class Person :public IComparable<String^>{ virtual Boolean CompareTo(String^ other){... D. public ref class Person :public IComparable<String^>{ virtual Boolean CompareTo(Object^ other){... Answer: A 4. MyDictionary A. public ref class MyDictionary :public Dictionary<String^, String^>{; 3 / 10
B. public ref class MyDictionary :public Hashtable{; C. public ref class MyDictionary :public IDictionary{; D. public ref class MyDictionary{; Dictionary<String^, String^> t = gcnew Dictionary<String^, String^>(); MyDictionary dictionary = (MyDictionary)t; Answer: A 5. 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 6. Age Age A. public ref class Age { Int32 Value; virtual Object CompareTo(Object^ obj) { if (obj->gettype() == Age::GetType()) { Age^ _age = (Age^) obj; return Value.CompareTo(obj); throw gcnew ArgumentException("object not an Age"); 4 / 10
; B. public ref class Age { Int32 Value; virtual Object CompareTo(Int32^ ivalue) { try { return Value.CompareTo(iValue); catch (Exception^ ex) { throw gcnew ArgumentException ("object not an Age"); ; C. public ref class Age :public IComparable { Int32 Value; virtual Int32 CompareTo(Object^ obj) { if (obj->gettype() == Age::GetType()) { Age^ _age = (Age^) obj; return Value.CompareTo(_age->Value); throw gcnew ArgumentException("object not an Age"); ; D. public ref class Age :public IComparable { Int32 Value; virtual Int32 CompareTo(Object^ obj) { try { return Value.CompareTo(((Age^) obj)->value); catch (Exception^ ex) { return -1; 5 / 10
; Answer: C 7. public delegate void FaxDocs(Object^ sender, FaxArgs^ args); FaxDocs A. static event FaxDocs^ Fax; B. static event Fax^ FaxDocs; C. public ref class FaxArgs :public EventArgs { String^ CoverPageInfo; FaxArgs (String^ coverinfo) { this->coverpageinfo = coverinfo; ; D. public ref class FaxArgs :public EventArgs { String^ CoverPageInfo; ; Answer: A 8. 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 PowerDeviceOn(DateTime); Answer: D 6 / 10
9. FileService 01 02 void StartService(String^ servername){ 03 04 ServiceController^ crtl = gcnew 05 ServiceController("FileService"); 06 if (crtl->status == ServiceControllerStatus::Stopped){ 07 FileService servername FileService A. 03 04 crtl.servicename = servername; B. 03 04 crtl.machinename = servername; C. 03 04 crtl.site.name = servername; D. 04 05 crtl.continue(); E. 04 05 crtl.start(); F. 04 05 crtl.executecommand(0); Answer: BE 10. CalculationValues PerformCalculation PerformCalculation 7 / 10
A. public ref class CalculationValues { public ref class Calculator { void PerformCalculation() { ; public ref class ThreadTest{ private : void DoWork (){ CalculationValues^ myvalues = gcnew CalculationValues(); Calculator ^ calc = gcnew Calculator(); Thread^ newthread = gcnew Thread( gcnew ThreadStart(calc, &Calculator::PerformCalculation)); newthread->start(myvalues); ; B. public ref class CalculationValues { public ref class Calculator { void PerformCalculation() { ; public ref class ThreadTest{ private : void DoWork (){ CalculationValues^ myvalues = gcnew CalculationValues(); Calculator ^ calc = gcnew Calculator(); ThreadStart^ delstart = gcnew ThreadStart(calc, &Calculator::PerformCalculation); Thread^ newthread = gcnew Thread(delStart); 8 / 10
if (newthread->isalive) { newthread->start(myvalues); ; C. public ref class CalculationValues { public ref class Calculator { void PerformCalculation(CalculationValues^ values) { ; public ref class ThreadTest{ private : void DoWork (){ CalculationValues^ myvalues = gcnew CalculationValues(); Calculator ^ calc = gcnew Calculator(); Application::DoEvents(); calc->performcalculation(myvalues); Application::DoEvents(); ; D. public ref class CalculationValues { public ref class Calculator { void PerformCalculation(Object^ values) { ; public ref class ThreadTest{ private : void DoWork (){ CalculationValues^ myvalues = gcnew CalculationValues(); Calculator ^ calc = gcnew Calculator(); 9 / 10
Thread^ newthread = gcnew Thread( gcnew ParameterizedThreadStart(calc, &Calculator::PerformCalculation)); newthread->start(myvalues); ; Answer: D 10 / 10