分类信息
各地考试

当前位置:首页 » 微软认证 » 模拟试题 » 正文

2013微软认证模拟练习题(11)


时间:2013-10-17 来源:微软认证考试 浏览次数:209  【华夏培训网:中国教育培训第一门户

1下列程序中,DllImport属性的用法是否正确 ()public class Test[DllImport(kernel32.dll,EntryPoint=movefilew,CharSet=CharSe


       1下列程序中,DllImport属性的用法是否正确 ()

public class Test

[DllImport("kernel32.dll",EntryPoint="movefilew",CharSet=CharSet.Ansi)]

public int movefile(string src ,string dst);

A,错误

B,正确

答案:A

2以下类TestClass中,只读属性Count的声明是否合法 ()

public class TestClass

{

private int i ;

public int Count

{

get

{

return this.i;

}

}

}

A,不合法

B,合法

答案:B

3,在C#程序中,为了给类型CompCS.SringComponent起一个别名CsStringComp,其正确的语法是().

A,using CsStringComp=CompCS.StringComponent;中华考试

B,imports CsStringComp=CompCS.StringComponent;

C,Alias CsStringComp=CompCS.StringComponent;

D,Dim CompVB.StringComponent As CsStringComp

答案:A

4,在.NET Framework Class Library中提供了()技术,以使托管应用程序可以断开式的方式访问各种数据源.

A,SQL Server

B,ADO.NET

C,ODBC.NET

D,ADO

答案:B

5,接口ISomeInterface中只包含一个属性Name,该属性满足:

公有

可读可写

字符串类型

则该接口的定义应为().

interface SomeInterface

{public readonly string Name(){get;set;}}

interface SomeInterface

{public string Name{get;set;}};

c interface SomeInterface

{ string Name{get;set;}}

D,interface SomeInterface

{readonly Name(){get;set;}}

答案: C




       微软认证

推荐图文

热门点击排行

©2015 hxpx.com All Rights Reserved 滇ICP备13002816号-1
华夏培训网唯一网址www.hxpx.com