選擇題
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