freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

單項選擇題答案-文庫吧

2025-06-08 16:01 本頁面


【正文】 tch (b % 2) { case 0: m++。 break。 default: m++。 break。 } break。 } ({0},m)。 } }}該程序的輸出結(jié)果是 。A (6)以下敘述正確的是 。D,在while后的表達(dá)式為true時結(jié)束循環(huán),在while后的表達(dá)式應(yīng)為關(guān)系表達(dá)式或邏輯表達(dá)式(7)以下關(guān)于for循環(huán)的說法不正確的是 。A,后執(zhí)行循環(huán)體語句,可以用break語句跳出循環(huán)體,可以包含多條語句,但要用花括號括起來(8)有以下C程序:using System。namespace aaa{ class Program { static void Main() { int i,j,s=0。 for(i=2。i6。i++,i++) { s=1。 for(j=i。j6。j++) s+=j。 } ({0},s)。 } }}該程序的輸出結(jié)果是 。D (9)有以下C程序:using System。namespace aaa{ class Program { static void Main() { int i = 0, s = 0。 do { if (i%2==1) { i++。 continue。 } i++。 s += i。 } while (i 7)。 ({0},s)。 } }}該程序的輸出結(jié)果是 。A (10)有以下C程序:using System。namespace aaa{ class Program { static void Main() { int i = 0, a = 0。 while (i 20) { for (。 。 ) { if (i % 10 == 0) break。 else i。 } i += 11。 a += i。 } ({0}, a)。 } }}該程序的輸出結(jié)果是 。B 練習(xí)題4(1)在C中定義一個數(shù)組,以下正確的是 。B arraya = new int[5]。 [] arrayb = new int[5]。 arrayc = new int[]。 [5] arrayd = new int。(2)以下數(shù)組定義語句中不正確的是 。D a[]=new int[5]{1,2,3,4,5}。 [,] a=new inta[3][4]。[][] a=new int [3][0]。 [] a={1,2,3,4}。(3)以下定義并初始化一維數(shù)組的語句中正確的是 。C arr1 [ ]={6,5,1,2,3}。 [ ] arr2=new int[ ]。[ ] arr3=new int[ ]{6,5,1,2,3}。 [ ] arr4。arr4={6,5,1,2,3}。(4)以下定義并動態(tài)初始化一維數(shù)組的語句中正確的是 。D [ ] arr1=new int[ ]。 arr2=new int[4]。[ ] arr3=new int[i]{6,5,1,2,3}。 [ ] arr4=new int[]{6,5,1,2,3}。(5)以下定義并初始化數(shù)組的語句中正確的是 。D arr1[ ][ ]=new int[4,5]。 [ ][ ] arr2=new int[4,5]。 arr3[,]=new int[4,5] [, ] arr4=new int[4,5]。(6)有定義語句:int [,]a=new int[5,6]。則下列正確的數(shù)組元素的引用是 。DA. a(3,4) B. a(3)(4) C. a[3][4] D. a[3,4](7)假定int類型變量占用4個字節(jié),若有定義:int[] x = new int[] {1,2,3,4,5,6}。則數(shù)組x在內(nèi)存中所占字節(jié)數(shù)是 。C (8)在C中,關(guān)于Array和ArrayList的維數(shù),以下說法正確的是 。A,而ArrayList只能是一維,而ArrayList可以有多維 都只能是一維(9)以下程序的輸出結(jié)果是 。Cusing System。namespace aaa{ class Example1 { static void Main() { int i。 int [] a=new int[10]。 for(i=9。i=0。i) a[i]=10i。 ({0},{1},{2},a[2],a[5],a[8])。 } }},5,8 ,4,1 ,5,2 ,6,9(10)以下程序的輸出結(jié)果是 。Busing System。using 。namespace aaa{ class Example1 { static void Main() { int[] num =new int[]{1,3,5}。 ArrayList arr=new ArrayList()。 for(int i=0。i。i++) (num[i])。 (1,4)。 (arr[2])。 } }} (11)以下程序的輸出結(jié)果是 。Dusing System。using 。namespace aaa{ class Example1 { static void Main() { int [] num = new int[5]{1,3,2,0,0}。 (num)。 foreach(int i in num) ({0} ,i)。 ()。 } }} 0 1 2 3 2 3 0 0 0 1 3 2 0 2 3 1(12)以下程序的輸出結(jié)果是 。Dusing System。using 。namespace aaa{ class Example1 { static void Main() { int s = 0。 int[][] a = new int[2][]。 //交錯數(shù)組 a[0] = new int[3] { 1, 2, 3 }。 a[1] = new int[4] { 4, 5, 6, 7 }。 for (int i = 0。 i 。 i++) for (int j = 0。 j a[i].Length。 j++) s += a[i][j]。 (s)。 } }} 練習(xí)題5(1)在C中, 訪問修飾符修飾的字段只能由當(dāng)前程序集訪問。C (2)類ClassA有一個名稱為M1的方法,在程序中有如下一段代碼,假設(shè)該段代碼是可以執(zhí)行的,則修飾M1方法時一定使用了 修飾符。CClassA obj=new ClassA()。()。 static (3)在C中,從屬性的讀寫特性上來進(jìn)行分類,可以劃分為以下三種,除了 。D (4)在類的定義中,類的 描述了該類的對象的行為特征。B (5)在C中,以下關(guān)于屬性的描述正確的是 。B,以public關(guān)鍵字修飾的字段也可稱為屬性,屬性更好地實現(xiàn)了數(shù)據(jù)的封裝和隱藏的類中不能自定義屬性(6)以下類MyClass的屬性count屬于 屬性。Aclass MyClass{ int i。 int count { get{ return i。 } }} (7)以下關(guān)于C中方法重載的說法正確的是 。C,而參數(shù)的個數(shù)不同,那么它們可以構(gòu)成方法重載,而返回值的數(shù)據(jù)類型不同,那么它們可以構(gòu)成方法重載,而參數(shù)的數(shù)據(jù)類型不同,那么它們可以構(gòu)成方法重載,而參數(shù)的個數(shù)相同,那么它們一定不能構(gòu)成方法重載(8)以下 不是構(gòu)造函數(shù)的特征。D D(9)在C中,以下有關(guān)索引器的參數(shù)個數(shù)的說法中正確的是 。B (10)在類MyClass中有下列方法定義:public void testParams(params int[] arr){ (使用Params參數(shù)!)。 }public void testParams(int x,int y){ (使用兩個整型參數(shù)!)。 }請問上述方法重載有無二義性?若沒有,則下列語句的輸出為 。BMyClass x = new MyClass()。(0)。 (0,1)。(0,1,2)。()。!使用兩個整型參數(shù)!使用Par
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1