2021微软认证考试练习题及答案.doc
- 一帆风顺个人认证 |
- 2021-03-09 发布|
- 63.12 KB|
- 193页
2021微软认证考试练习题及答案(1)
小编为大家收集整理了《202*微软认证考试练习题及答案(1)》供大家参考,希望对大家有所帮助!!!
第 1 题你正在开发一个自定义事件处理去自动打印所有打开的文档。事件处理可以指定要打印的份数。为此,你需要开发一个传递给事件处理程序的自定义事件参数类,你应该使用下面那个代码段?A. public class PrintingArgs {private int copies;public PrintingArgs(int numberOfCopies) {this.copies = numberOfCopies;}public int Copies {get { return this.copies; }}}B. public class PrintingArgs : EventArgs {private int copies;public PrintingArgs(int numberOfCopies) {this.copies = numberOfCopies;}public int Copies {get { return this.copies; }}}C. public class PrintingArgs {private EventArgs eventArgs;public PrintingArgs(EventArgs ea) {this.eventArgs = ea;}public EventArgs Args {get { return eventArgs; }}}D. public class PrintingArgs : EventArgs {private int copies;}答案: B
第 2 题你使用反射(Reflection)来获得方法 MyMet