在windows应用程序中,Main方法不是必须的.(2分)
查看答案
下列程序中,DllImport属性的用法是否正确?usingSystem;usingSystem.Runtime.InteropServices;namespaceCS_15{publicclassTest{[DllImport("KERNEL32.DLL",EntryPoint="MoveFileW",CharSet=CharSet.Unicode)]publicexternboolMoveFile(stringsrc,stringdst);staticvoidMain(string[]args){MoveFile(@"e:\1\1.txt",@"e:\2\");}}}(2分)
A. 对
B. 错
异常类对象均为System.Exception类的对象。(2分)
A. 对
B. 错
ASP.NET中,使用验证控件来验证用户输入,要求用户不可跳过该项输入,并且用户输入值在0和1000之间,则适用RequiredFieldValidator和RangeValidator控件。(2分)
A. 对
B. 错
在.net中由于使用了CLR使得应用层与OS相分离,因此C#是不能使用指针的.(2分)
A. 对
B. 错