a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 128|回复: 0

[考试试题] 微软认证考试模拟题2(24)

[复制链接]
发表于 2012-8-3 00:09:22 | 显示全部楼层 |阅读模式
70.rerurn true;
$ K3 m% W# \1 `8 B& @. A}
% o( b, ^1 E# _/ b(STATread)
( i, o1 P" [5 [' |Static void Main(string() args);{) \+ T1 Z0 V: D
Class x=new Class1();
8 |/ z8 b+ W  e3 \& _$ \If(false & x.printInfo())
+ f" m, b& C7 e9 r1 OA 无输出
3 i8 `& L5 K% \7 k  l3 U, lB Main
" b7 b) \2 x4 g) w0 V8 t4 [C printInfo/ j1 h9 B) M' q' T. X- E5 s
D printInfo
+ x" e7 m, Z4 k# E2 VMain5 \* @% P; z$ o$ `( s5 Q1 o
解释:&,&&,|,||9 [5 i6 Q/ _; d7 q
71.//代码
/ K: R8 k' ?* n$ ~8 ?  j6 n7 r( u}9 a* B0 t4 d$ ?  `+ c, g8 X
现在需要编写代码在 ShowInfornation 中将 MyClass 当前对象的 date 赋值为 100.正确的语句为:(D)
5 h$ n) Y* D1 q0 ?A relf.date=100;
2 H% u3 Y1 g3 x+ [, {B date=100;1 v- k2 }  k2 m( {
C ne.date=100;
6 H2 i5 A" O" [* ~4 T; i$ h% N; X/ ZD this.date=100;
' t: w8 G3 Y5 Q, K/ Z, g72.在 C#中,下列类的定义是否合法?(A)+ l( _( t, F2 @# [1 Q- M+ i& W
public class Tom:Jerry {}/ H- V) D1 G( p- l4 c1 x
public  class Jerry:Tom {}& h) g$ C* `2 P5 p
A 不合法/ @  h3 J: k" x) ~, o
B 合法
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-15 09:12 , Processed in 0.796941 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表