2013年微软认证练习及答案57
来源:学生作业帮助网 编辑:作业帮 时间:2024/05/10 23:03:28 微软认证(MCSE)
无忧考网为大家收集整理了《2013年微软认证练习及答案57》供大家参考,希望对大家有所帮助!!!
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微软认证(MCSE)