可不嬌氣
選擇題 1:public static void Main(string[] args) { int i = 2000; object o = i; i = 2001; int j =(int) o; ("i={0},o={1}, j={2}",i,o,j); } 2:軟件生命周期的瀑布模型把軟件項目分為3個階段、8個子階段,以下哪一個是正常的開發(fā)順序? A.計劃階段、開發(fā)階段、運(yùn)行階段 B.設(shè)計階段、開發(fā)階段、編碼階段 C.設(shè)計階段、編碼階段、維護(hù)階段 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{3,2}}; myArray3的值是: D.越界 5:如果設(shè)treeView1=new TreeView(),TreeNode node=new TreeNode("根結(jié)點(diǎn)" ),則(node)返回的是一個 ()類型的值。 6:以下描述錯誤的是: A.在C++中支持抽象類而在C#中不支持抽象類。 中可在頭文件中聲明類的成員而在CPP文件中定義類的成員,在C#中沒有頭文件并且在同一處聲明和定義類的成員。 C.在C#中可使用 new 修飾符顯式隱藏從基類繼承的成員。 D.在C#中要在派生類中重新定義基類的虛函數(shù)必須在前面加Override。 7:設(shè)有變量說明語句int a=1,b=0; 則執(zhí)行以下程序段的輸出結(jié)果為( )。 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:在下述選項時,沒有構(gòu)成死循環(huán)的程序是 i=100 while (1) { i=i%100+1; if (i>100) break; } (;;); k=1000; do { ++k; }while(k>=10000); s=36; while (s);--s; 9:聲明一個委托public delegate int myCallBack(int x); 則用該委托產(chǎn)生的回調(diào)方法的原型應(yīng)該是 myCallBack(int x) receive(int num) receive(int x) D.不確定的 10:Which of the following operations can you NOT perform on an DataSet? DataSet can be synchronised with a RecordSet. DataSet can be synchronised with the database. DataSet can be converted to XML. can infer the schema from a DataSet 11:In Object Oriented Programming, how would you describe encapsulation? conversion of one type of object to another. runtime resolution of method calls. exposition of data. separation of interface and implementation. 12:abstract class BaseClass { public virtual void MethodA() { ("BaseClass"); } public virtual void MethodB() { } } class Class1: BaseClass { public void MethodA() { ("Class1"); } public override void MethodB() { } } class Class2: Class1 { new public void MethodB() { } } class MainClass { public static void Main(string[] args) { Class2 o = new Class2(); (); } } 請問,此程序輸出結(jié)果是: Class1 BassClass 13:在軟件生命周期中,下列哪個說法是不準(zhǔn)確的? A.軟件生命周期分為計劃、開發(fā)和運(yùn)行三個階段 1 2 3
優(yōu)質(zhì)工程師考試問答知識庫