选择题
1:public static void Main(string[] args)
{
int i = 2000;
object o = i;
i = 2001;
int j =(int) o;
Console.WriteLine("i={0},o={1}, j={2}",i,o,j);
}
A.i=2001,o=2000,j=2000
B.i=2001,o=2001,,j=2001
C.i=2000,o=2001,,j=2000
D.i=2001,o=2000,j=2001
2:软件生命周期的瀑布模型把软件项目分为3个阶段、8个子阶段,以下哪一个是正常的开发顺序?
A.计划阶段、开发阶段、运行阶段
B.设计阶段、开发阶段、编码阶段
C.设计阶段、编码阶段、维护阶段
D.计划阶段、编码阶段、测试阶段
3:What compiler switch creates an xml file from the xml comments in the files in an assembly?
A./text
B./doc
C./xml
D./help
4:int[][] myArray3=new int[3][]{new int[3]{5,6,2},new int[5]{6,9,7,8,3},new int[2]{3,2}}; myArray3[2][2]的值是:
A.9
B.2
C.6
D.越界
5:如果设treeView1=new TreeView(),TreeNode node=new TreeNode("根结点" ),则treeView1.Nodes.Add(node)返回的是一个 ()类型的值。
A.TreeNode
B.int
C.string
D.TreeView
6:以下描述错误的是:
A.在C++中支持抽象类而在C#中不支持抽象类。
B.C++中可在头文件中声明类的成员而在CPP文件中定义类的成员,在C#中没有头文件并且在同一处声明和定义类的成员。
C.在C#中可使用 new 修饰符显式隐藏从基类继承的成员。
D.在C#中要在派生类中重新定义基类的虚函数必须在前面加Override。
7:设有变量说明语句int a=1,b=0;
则执行以下程序段的输出结果为( )。
switch (a)
{
case 1:
switch (b)
{
case 0:printf("*0*");break;
case 1:printf("*1*");break;
}
case 2:printf("*2*");break;
}
printf(" ");
A.*0*
B.*0*2*
C.*0*1*2*
D.有语法错误
8:在下述选项时,没有构成死循环的程序是
A.int i=100 while (1) { i=i%100+1; if (i>100) break; }
B.for (;;);
C.int k=1000; do { ++k; }while(k>=10000);
D.int s=36; while (s);--s;
9:声明一个委托public delegate int myCallBack(int x); 则用该委托产生的回调方法的原型应该是
A.void myCallBack(int x)
B.int receive(int num)
C.string receive(int x)
D.不确定的
10:Which of the following operations can you NOT perform on an ADO.NET DataSet?
A.A DataSet can be synchronised with a RecordSet.
B.A DataSet can be synchronised with the database.
C.A DataSet can be converted to XML.
D.You can infer the schema from a DataSet
11:In Object Oriented Programming, how would you describe encapsulation?
A.The conversion of one type of object to another.
B.The runtime resolution of method calls.
C.The exposition of data.
D.The separation of interface and implementation.
12:abstract class BaseClass
{
public virtual void MethodA()
{
Console.WriteLine("BaseClass");
}
public virtual void MethodB()
{
}
}
class Class1: BaseClass
{
public void MethodA()
{
Console.WriteLine("Class1");
}
public override void MethodB()
{
}
}
class Class2: Class1
{
new public void MethodB()
{
}
}
class MainClass
{
public static void Main(string[] args)
{
Class2 o = new Class2();
o.MethodA();
}
}
请问,此程序输出结果是:
A.BaseClass
B.BassClass Class1
C.Class1
D.Class1 BassClass
13:在软件生命周期中,下列哪个说法是不准确的?
A.软件生命周期分为计划、开发和运行三个阶段
金山职业技术学院对比四川汽车职业技术学院哪个好 附分..
时间:2025-05-22 09:08:12成都银杏酒店管理学院在重庆高考招生计划人数和专业代..
时间:2025-05-22 09:05:01四川上山东理工大学多少分 分数线及排名
时间:2025-05-22 09:01:18江西高考理科533分排名多少 排名多少位次
时间:2025-05-22 08:57:21大连东软信息学院对比甘肃民族师范学院哪个好 附分数线..
时间:2025-05-22 08:53:39广东高考455至460分左右物理可以上什么大学
时间:2025-05-22 08:49:52
中国点击率最高的一篇文章 !2023-08-13 03:45:29
海南上长春工业大学多少分 分数线及排名2025-05-22 09:28:45
科尔沁艺术职业学院对比山东水利职业学院哪个好 附分数线排名2025-05-22 09:25:00
呼和浩特职业学院对比山西警官职业学院哪个好 附分数线排名2025-05-22 09:22:04
四川工程职业技术学院在上海高考招生计划人数和专业代码(参考)2025-05-22 09:19:52
泰山科技学院对比西安理工大学高科学院哪个好 附分数线排名2025-05-22 09:16:28
江西航空职业技术学院在云南高考招生计划人数和专业代码(参考)2025-05-22 09:13:20
辽宁特殊教育师范高等专科学校对比江西工商职业技术学院哪个好 附分数线排名2025-05-22 09:10:51
万科笔试经验2023-08-25 11:54:10
Java工程师笔试题和面试题答案2023-08-23 07:49:30
中国银联笔试题和面试题答案2023-08-26 22:34:27 




