多选题You are defining a class named MyClass that contains several child objects. MyClass contains a method named ProcessChildren that performs actions on the child objects.MyClass objects will be serializable.You need to ensure that the ProcessChildren method is executed after the MyClass object and all its child objects are reconstructed. Which two actions should you perform?()AApply the OnDeserializing attribute to the ProcessChildren method.BSpecify that MyClass implements the IDeserializationCallback interface.CSpecify that MyClass inherits from the ObjectManager class.DApply the OnSerialized attribute to the ProcessChildren method.ECreate a GetObjectData method that calls ProcessChildren.FCreate an OnDeserialization method that calls ProcessChildren.

多选题
You are defining a class named MyClass that contains several child objects. MyClass contains a method named ProcessChildren that performs actions on the child objects.MyClass objects will be serializable.You need to ensure that the ProcessChildren method is executed after the MyClass object and all its child objects are reconstructed. Which two actions should you perform?()
A

Apply the OnDeserializing attribute to the ProcessChildren method.

B

Specify that MyClass implements the IDeserializationCallback interface.

C

Specify that MyClass inherits from the ObjectManager class.

D

Apply the OnSerialized attribute to the ProcessChildren method.

E

Create a GetObjectData method that calls ProcessChildren.

F

Create an OnDeserialization method that calls ProcessChildren.


参考解析

解析: 暂无解析

相关考题:

有如下程序: include using namespace std; class MyClass { public: 有如下程序: #include <iostream> using namespace std; class MyClass { public: MyClass() { ++count; } ~MyClass() { --count; } static int getCount() { return count; } private: static int count; }; int MyClass::count=0; int main() { MyClass obj; cout<<obj.getCount(); MyClass *ptr=new MyClass; cout<<MyClass::getCount(); delete ptr; cout<<MyClass::getCount(); return 0; }程序的输出结果是A.121B.232C.221D.122

定义一个类名为“MyClass.java”的类,并且该类可被一个工程中的所有类访问,那么该类的正确声明应为 ( )A.private class MyClass extends ObjectB.class UyClass extends ObjectC.public class MyClassD.private class MyClass extends Object

You are creating a class that performs complex financial calculations.The class contains a method named GetCurrentRate that retrieves the current interest rate and a variable named currRate that stores the current interest rate.You write serialized representations of the class.You need to write a code segment that updates the currRate variable with the current interest ratewhen an instance of the class is deserialized.Which code segment should you use?()A.B.C.D.

Your network contains a server named Server1 that runs Windows Server 2008 R2.You discover that the server unexpectedly shut down several times during the past week.You need to identify what caused the shutdowns and which software was recently installed.What should you click from Action Center?()A. Maintenance, and then View reliability historyB. Troubleshooting, and then ProgramsC. Troubleshooting, and then System and SecurityD. Troubleshooting, and then View history

有如下的类的模板定义: template class MyClass { private:T number; public:MyClass( 有如下的类的模板定义:template <class T>class MyClass{private:T number;public:MyClass(T k);…};其中构造函数MyClass()用k的值初始化数据成员n。因此在模板类体外,构造函数MyClass应定义为【 】。

有以下程序:includeusing namespace std;class MyClass{public:MyClass(int n){numbe 有以下程序: #include<iostream> using namespace std; class MyClass { public: MyClass(int n){number=n;} //拷贝构造函数 MyClass(MyClassother) {number=other.number;} ~MyClass() {} private: int number; }; MyClass fun(MyClass p)A.5B.4C.3D.2

如下的类定义,错误的语句是( )。class Myclass {public: int a=1; //A) Myclass( ); //B) Myclass(int i); //C) ~Myclass( ); //D)A.AB.BC.CD.D

有如下程序:includeusing namespace std;class MyClass{public:MyClass(){++count;}~ 有如下程序: #include<iostream> using namespace std; class MyClass{ public: MyClass(){++count;} ~MyClass(){--count;} static int getCount(){return count;} private: static int count; }; int MyClass::count=0; int main(){ MyClA.121B.232C.221D.122

定义一个类名为MyClass的类,并且该类可被所有类访问,那么该类的正确声明应为()A、private class MyClass extends ObjectB、class MyClass extends ObjectC、public class MyClassD、protected class MyClass extends Object

You are developing a Windows Presentation Foundation (WPF) application that displays opportunities from ListT.. class named Lead. The Lead class contains the properties Title and Revenue.You add a DataGrid control named dgQualifiedLeads to the MainWindow.xaml file. You set the ItemsSource property to Leads as follows.You need to ensure that CollectionViewSource is used to filter the list to display only Lead objects with revenue ...What should you do ?()A.B.C.D.

MyClass类的默认构造方法是哪一个?()A、new MyClass()B、MyClass(){}C、MyClass{}D、public class MyClass

You work as the IT professional in an international company which is named Wiikigo. You are experiencedin implementing and administering a network operating system. You are specialized in deploying servers,configuring Windows Server 2008 Terminal services and network application services, and configuring aweb services infrastructure. You are in charge of a server that runs Windows Server 2008. The server hasthe Web Server (IIS) server role installed. The server contains a Web site that is configured to use onlyWindows Authentication. You have a security group named Group1 that contains several user accounts.Now you receive an order from the company management. According to the company requirement, youhave to prevent the members of Group1 from accessing a Web site. But you are not allowed prevent otherusers from accessing the Web site. Which Web site feature should you configure?()A、You should configure SSL SettingsB、You should configure AuthenticationC、You should configure Authorization RulesD、You should configure IIS Manager Permissions

You are creating an assembly named Assembly1.Assembly1 contains a public method. The global cache contains a second assembly named Assembly2.You must ensure that the public method is only called from Assembly2.Which permission class should you use?()A、GacIdentity PermissionB、Publisher Identity PermissionC、Data Protection PermissionD、Strong Name Identity Permission

You work in a company which uses SQL Server 2008. You are the administrator of the company database. Now you are in charge of a SQL Server 2008 instance. There is a database named named Dworks in the instance. The Dworks database has a table named Bills which contains several indexes and a great amount of rows. An enterprise Web environment is supported by the database. Onthe Bills table 28% of the indexes have been fragmented. You have to defragment the indexes, making sure that you reduce the effect on database availability to the least.  In the ALTER INDEX statement, which option should be included?()A、Sort in tempdb B、Online C、Fill factor D、Pad index

You work as an application developer at Certkiller .com. You are developing a collection class named ClientCollection, which is to be used for storing the names of Certkiller .com’s clients that are situated in various geographical areas. These client names are represented by the Client class. You are planning to create a method named SortClients in the ClientCollection class to arrange Client objects in ascending order. You need to ensure that the appropriate interface is implemented by the Client class to allow sorting.What interface should be used?()A、 IDictionaryB、 IComparableC、 IComparerD、 IEqualityComparer

Your network contains a server named Server1 that runs Windows Server 2008 R2.You discover that the server unexpectedly shut down several times during the past week.You need to identify what caused the shutdowns and which software was recently installed. What should you click from Action Center?()A、Maintenance, and then View reliability historyB、Troubleshooting, and then ProgramsC、Troubleshooting, and then System and SecurityD、Troubleshooting, and then View history

our network consists of a single Active Directory domain. All servers run Windows Server 2003 Service Pack 2 (SP2). The network contains two servers named Server1 and Server2.  Server1 is configured as a DHCP server and has a scope that contains addresses 192.168.2.51 to 192.168.2.125.You have a reservation for a print device named Printer1. The reservation assigns the IP address of 192.168.2.100.You install DHCP on Server2 and create a scope that contains addresses 192.168.2.126 to 192.168.2.200.You need to ensure that Printer1’s IP address always remains the same. What should you create on Server2?()A、an exclusion range B、a reservation C、a superscope D、a user class

Your network contains a server named Server1 that runs Windows Server 2008 R2.  On Server1, you create an Active Directory Lightweight Directory Services (AD LDS) instance named Instance1.   You connect to Instance1 by using ADSI Edit.   You run the Create Object wizard and you discover that there is no User object class.   You need to ensure that you can create user objects in Instance1.   What should you do()A、Run the AD LDS Setup Wizard.B、Modify the schema of Instance1.C、Modify the properties of the Instance1 service.D、Install the Remote Server Administration Tools (RSAT).

单选题Your network contains an Active Directory forest. The forest contains two domains named  contoso.com and woodgrovebank.com.   You have a custom attribute named Attibute1 in Active Directory. Attribute1 is associated to User objects.   You need to ensure that Attribute1 is replicated to the global catalog.   What should you do()AIn Active Directory Sites and Services, configure the NTDS Settings.BIn Active Directory Sites and Services, configure the universal group membership caching.CFrom the Active Directory Schema snap-in, modify the properties of the User class schema object.DFrom the Active Directory Schema snap-in, modify the properties of the Attibute1 class schema  attribute.

单选题You are implementing an ASP.NET MVC 2 Web application that contains several folders. The Views/Shared/DisplayTemplates folder contains a templated helper named Score.ascx that performs custom formatting of integer values.  The Models folder contains a class named Player with the following definition.Public Class Player   Public Property Name As String   Public Property LastScore As IntegerPublic Property HighScore As IntegerEnd Class  You need to ensure that the custom formatting is applied to LastScore values when the HtmlHelper.DisplayForModel method is called for any view in the application that has a model of type Player. What should you do?()ARename Score.ascx to LastScore.ascx.BMove Score.ascx from the Views/Shared/DisplayTemplates folder to the Views/Player/DisplayTemplates folder.CAdd the following attribute to the LastScore property. UIHint(Score)DAdd the following attribute to the LastScore property. Display(Name:=LastScore, ShortName:=Score)

单选题Your network contains an Active Directory domain named contoso.com. The domain contains a server named Server1 that runs Windows Server 2012 R2. Server1 has the Hyper- V server role installed. The domain contains a virtual machine named VM1. A developer wants to attach a debugger to VM1. You need to ensure that the developer can connect to VM1 by using a named pipe. Which virtual machine setting should you configure?()ANetwork AdapterBBIOSCProcessorDCOM 1

单选题You use Reflection to obtain information about a method named MyMethod.You need to ascertain whether MyMethod is accessible to a derived class.What should you do?()ACall the IsAssembly property of the MethodInfo class.BCall the IsVirtual property of the MethodInfo class.CCall the IsStatic property of the MethodInfo class.DCall the IsFamily property of the MethodInfo class.

单选题You work as an application developer at Certkiller .com. You are developing a collection class named ClientCollection, which is to be used for storing the names of Certkiller .com’s clients that are situated in various geographical areas. These client names are represented by the Client class. You are planning to create a method named SortClients in the ClientCollection class to arrange Client objects in ascending order. You need to ensure that the appropriate interface is implemented by the Client class to allow sorting.What interface should be used?()A IDictionaryB IComparableC IComparerD IEqualityComparer

单选题You have a server that runs Windows Server 2008. The server has the Web Server (IIS) server role installed.   The server contains a Web site that is configured to use only Windows Authentication. You have a security group named Group1 that contains several user accounts.  You need to prevent the members of Group1 from accessing a Web site. You must not prevent other users from accessing the Web site.  Which Web site feature should you configure?()AAuthenticationBAuthorization RulesCIIS Manager PermissionsDSSL Settings

单选题Your network contains an Active Directory domain named contoso.com. The domain contains a user account named User1 that resides in an organizational unit (OU) named OU1. A Group Policy object (GPO) named GPO1 is linked to OU1. GPO1 is used to publish several applications to a user named User1. In the Users container, you create a new user named User2. You need to ensure that the same applications are published to User2. What should you do?()AModify the security of GPO1.BModify the settings in GPO1CLink a WMI filter to GPO1DMove User2 to OU1

单选题You work as an application developer at Certkiller .com. You are developing an application that makes use of a Queue class object named MyQueue. This Queue class object will be used to store messages sent by the user during application run time.You would like to access the message at the beginning of the queue, prior to processing the user messages, without removing it. What should you do?()A Use the Enqueue method of the MyQueue object.B Use the Contains method of the MyQueue object.C Use the Dequeue method of the MyQueue object.D Use the Peek method of the MyQueue object.

单选题our network consists of a single Active Directory domain. All servers run Windows Server 2003 Service Pack 2 (SP2). The network contains two servers named Server1 and Server2.  Server1 is configured as a DHCP server and has a scope that contains addresses 192.168.2.51 to 192.168.2.125.You have a reservation for a print device named Printer1. The reservation assigns the IP address of 192.168.2.100.You install DHCP on Server2 and create a scope that contains addresses 192.168.2.126 to 192.168.2.200.You need to ensure that Printer1’s IP address always remains the same. What should you create on Server2?()Aan exclusion range Ba reservation Ca superscope Da user class