网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
一个类的delegate(代理)的作用不正确的是()
A
delegate中的函数在其他类中实现
B
主要用于不同类型的对象之间一对一传递消息
C
没有指派则不会触发
D
可以一个对象的delegate指派给多个其他类型的对象
参考答案
参考解析
解析:
暂无解析
更多 “单选题一个类的delegate(代理)的作用不正确的是()A delegate中的函数在其他类中实现B 主要用于不同类型的对象之间一对一传递消息C 没有指派则不会触发D 可以一个对象的delegate指派给多个其他类型的对象” 相关考题
考题
下面对网络管理的管理模型的描述,不正确的是()。
A.在网络管理中,一般采用管理站——代理的管理模型B.一个管理站可以和多个代理进行信息交互C.一个代理只可以接受来自一个管理站的管理操作D.一个代理也可以接受来自多个管理站的管理操作
考题
您需要写一个接收日期参数的多播委托,您应该使用哪一个代码片段() //委托就是一个方法,题目没有返回值。
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);
考题
您需要编写可接受日期时间参数并返回一个布尔值,多路广播的委托。您应该使用哪个代码段?()
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);
考题
下列关于报关单位分类管理的表述,不正确的是()A. AA类报关企业代理A类进出口货物收发货人开展报关业务的,适用AA类管理措施B. A类报关企业代理B类进出口货物收发货人开展报关业务的,适用B类管理措施C. C类报关企业代理D类进出口货物收发货人开展报关业务的,适用D类管理措施D. A类报关企业代理AA类进出口货物收发货人开展报关业务的,适用A类管理措施
考题
在Spring中,Proxy.newProxyInstance(mobile.getClass().getClassLoader(), mobile.getClass().getInterfaces(), this) 方法根据接口数组动态创建代理类实例,下列说法不正确的是( )。
A.第一个参数用于创建动态代理的ClassLoader对象B.第二个参数为代理对象C.第三个参数为代理包含的处理实例D.第二个参数为接口数组
考题
下面对网络管理的管理模型的描述,不正确的是()。A、在网络管理中,一般采用管理站——代理的管理模型B、一个管理站可以和多个代理进行信息交互C、一个代理只可以接受来自一个管理站的管理操作D、一个代理也可以接受来自多个管理站的管理操作
考题
委托类型DG1的定义为delegate float DG1(int a,ref double b);那么下列委托对象的创建表达式中合法的有:()。A、DG 1dg1=delegate {return 0.3;};B、DG 1dg2=delegate {return a;};C、DG 1dg3=delegate (int a,ref double b) {return a;};D、DG 1dg4=delegate (int a,ref double b) {return a/b;};
考题
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);
考题
单选题You are creating a Windows application for graphical image processing by using the .NET Framework 3.5. You create an image processing function and a delegate.You plan to invoke the image processing function by using the delegate.You need to ensure that the calling thread meets the following requirements: (1)It is not blocked when the delegate is running (2)It is notified when the delegate is complete What should you do?()A
Call the Invoke method of the delegate.B
Call the BeginInvoke and EndInvoke methods of the delegate in the calling thread.C
Call the BeginInvoke method by specifying a callback method to be executed when the delegate is complete.Call the EndInvoke method in the callback method.D
Call the BeginInvoke method by specifying a callback method to be executed when the delegate is complete.Call the EndInvoke method of the delegate in the calling thread.
考题
单选题您需要编写可接受日期时间参数并返回一个布尔值,多路广播的委托。您应该使用哪个代码段?()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);
考题
单选题您已创建一个名为 CalcSalary,将确定 Certkiller.com 员工的薪酬类的责任。CalcSalary 类包括员工的薪酬递增和递减的方法。下面的代码包含在 CalcSalary 类中:()public class CalcSalary {// for promotionspublic static bool IncrementSalary (Employee Emp, double Amount){if (Emp.Status == QuarterlyReview.AboveGoals)Emp.Salary += Amount;return true;A
public delegate bool Salary (Employee Emp, double Amount);B
public bool Salary (Employee Emp, double Amount);C
public event bool Salary (Employee Emp, double Amount);D
public delegate void Salary (Employee Emp, double Amount);
考题
单选题您需要写一个接收日期参数的多播委托,您应该使用哪一个代码片段() //委托就是一个方法,题目没有返回值。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);
考题
单选题下列说法不正确的是()A
java.awt包的类Panel是用来创建面板的B
container类是Panel类的子类C
Panel类的实例是一个容器D
容器也是一个组件
热门标签
最新试卷