計算機(jī)二級選擇題題庫(精選11套)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
準(zhǔn)備計算機(jī)二級考試,選擇題是關(guān)鍵一環(huán)。我們的題庫涵蓋全面,精準(zhǔn)命中考點。通過大量練習(xí),讓你熟悉題型,掌握知識點。提升答題速度與準(zhǔn)確率,為考試成功奠定堅實基礎(chǔ)。快來開啟你的高效備考之旅,輕松攻克計算機(jī)二級選擇題,邁向成功新高度。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
計算機(jī)二級選擇題題庫 1
1[簡答題]本題中,在下畫線上填寫代碼,指定變量b為字節(jié)型,變量f為單精度實型,變量l為64位整型。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
public class javal{public static void main(String[-]args){b=49;f=8.9f;l=0xfedl;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
System.out.println(""b=""+b);o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
System.out.println(""f=""+f):o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
System.OUt.println(""l=""+1);}}o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
第1處:byteo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
第2處:floato7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
第3處:longo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】本題考查的是數(shù)據(jù)類型。byte為字節(jié)型;float為單精度實型;long為長整型。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
2[單選題] 請閱讀下面程序o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
程序運行結(jié)果中在”length=”后輸出的值是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.10B.4C.20D.30o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:本題對StringBuffer(String str)構(gòu)造方法,用str給出字符串的初始值,并分配16個字符的緩存。因此,字符串sb的初始值是”test”,并且包含l6個字符的緩存。length( )方法用來獲得字符串長度,不包含緩存。故程序運行結(jié)果中在”length-”后輸出的值應(yīng)該是字符串sb的長度,即4。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
3[單選題] 為使下列代碼正常運行,應(yīng)該在下畫線處填入的選項是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
ObjectInputStream In=new (new FilelnputStream(""employee.doc""));o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
Employee[]newstaff=(Employee[])in.readObject( );o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
In.close( );o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.Reader B.InputStreamC.ObjectlnputD.ObjectlnputStreamo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:ObjectlnputStream類和ObjectOutputStream類分列是InputStream類和OutputStream類的子類。ObjectlnputStream類和ObjectOutputStream類創(chuàng)建的對象被稱為對象輸入流和對象輸出流。對象輸入流使用readObject( )方法讀取一個對象到程序中。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
4[單選題] 為使下列代碼正常運行,應(yīng)該在下畫線處填入的選項是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
abstract class person{public Person(String n){name=n:}o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
Public String getDescription( );o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
public String getName( ){return name;}o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
private string name;}o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.static B.privateC.abstractD.finalo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Co7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:抽象類中的抽象方法可以只聲明,定義延遲到其子類。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
5[單選題] Java對文件類提供了許多操作方法,能獲得文件對象父路徑名的方法是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.getAbsolutePath( )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.getParentFile( )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.getAbsoluteFile( )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.getName( )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:本題考查File類的基本知識。File類是通過文件名列表來描述一個文件對象的屬性,通過File類提供的方法,可以獲得文件的名稱、長度、所有路徑等信息,還可以改變文件的名稱、刪除文件等。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
6[單選題] 下列關(guān)于域名和IP地址的敘述中,不正確的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.在Internet中訪問一臺主機(jī)必須使用它的主機(jī)名o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.200.201.202.203是一個C類I P地址o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.I P地址采用的是分層結(jié)構(gòu)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.主機(jī)名與I P地址是一一對應(yīng)的o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:每臺直接連接到Internet上的計算機(jī)、路由器都必須有唯一的IP地址。IP地址是Internet賴以工作的基礎(chǔ)。Internet中的計算機(jī)與路由器的IP地址采用分層結(jié)構(gòu),它是由網(wǎng)絡(luò)地址與主機(jī)地址兩部分組成。對于C類地址,其網(wǎng)絡(luò)地址空間長度為21位,主機(jī)地址空間長度為8位,C類I P地址范圍從:l92.0.0.0~223.255.255.255。主機(jī)名與它的IP地址一一對應(yīng),因此在Internet上訪問一臺主機(jī)既可以使用它的主機(jī)名,也可以使用它的I P地址。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
7[單選題] 下列關(guān)于鏈?zhǔn)酱鎯Y(jié)構(gòu)的.敘述中,不正確的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.結(jié)點除自身信息外還包括指針域,因此存儲密度小于順序存儲結(jié)構(gòu)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.邏輯上相鄰的結(jié)點物理上不必相鄰o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.可以通過計算確定第i個結(jié)點的存儲地址o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.插人、刪除運算操作方便,不必移動結(jié)點o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Co7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:鏈?zhǔn)酱鎯Y(jié)構(gòu)的主要特點有:①結(jié)點中除自身信息外,還有表示鏈接信息的指針域,因此存儲密度小、存儲空間利用率低;②邏輯上相鄰的結(jié)點物理上不必相鄰;③插入、刪除操作靈活方便。線性存儲結(jié)構(gòu)可以通過計算確定第i個結(jié)點的存儲地址,但鏈?zhǔn)酱鎯Y(jié)構(gòu)不能。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
8[填空題]FileInputStream是字節(jié)流;BufferedWriter是字符流;ObjectOutputStream是 。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:對象流或?qū)ο筝敵隽?span style="display:none">o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
9[單選題] 下列敘述中,錯誤的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.Applet的默認(rèn)布局管理器是FlowLayouto7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.JApplet中增加構(gòu)件是加到JApplet的內(nèi)容面板上,不是直接加到JApplet中o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.JApplet的內(nèi)容面板的默認(rèn)布局管理器是Border-Layouto7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.JApplet的內(nèi)容面板的默認(rèn)布局管理器是FlowLayouto7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:FlowLayout布局管理器是Panel類和Applet類默認(rèn)的布局管理器。向JApplet中增加構(gòu)件,是把構(gòu)件添加到Japplet的內(nèi)容面板中,而不是直接添加到JAp―plet中。JApplet的內(nèi)容面板的默認(rèn)布局管理器是Border―Layout,而Applet默認(rèn)的布局管理器是FlowLayout。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
10[單選題] 軟件設(shè)計中模塊劃分應(yīng)遵循的準(zhǔn)則是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.低內(nèi)聚低耦合o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.高內(nèi)聚低耦合o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.低內(nèi)聚高耦合o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.高內(nèi)聚高耦合o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:耦合性和內(nèi)聚性是模塊獨立性的兩個定性標(biāo)準(zhǔn),軟件設(shè)計應(yīng)該遵循高內(nèi)聚低耦合的準(zhǔn)則。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
計算機(jī)二級選擇題題庫 2
1.下列敘述中正確的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 所有數(shù)據(jù)結(jié)構(gòu)必須有根結(jié)點o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 所有數(shù)據(jù)結(jié)構(gòu)必須有終端結(jié)點(即葉子結(jié)點)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 只有一個根結(jié)點,且只有一個葉子結(jié)點的數(shù)據(jù)結(jié)構(gòu)一定是線性結(jié)構(gòu)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 沒有根結(jié)點或沒有葉子結(jié)點的數(shù)據(jù)結(jié)構(gòu)一定是非線性結(jié)構(gòu)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】D項正確,線性結(jié)構(gòu)的特點是:①集合中必存在“第一個元素"且惟一②集合中必存在“最后一個元素”且惟一;③除最后一個元素外,其他數(shù)據(jù)元素均有惟一的“后繼”,④除第一個元素外,其他數(shù)據(jù)元素均有惟一的“前驅(qū)”。所以沒有根結(jié)點或沒有葉子結(jié)點的數(shù)據(jù)結(jié)構(gòu)一定是非線性結(jié)構(gòu)。AB兩項錯誤,不是所有數(shù)據(jù)結(jié)構(gòu)都必須有根結(jié)點和葉子結(jié)點;C項錯誤,數(shù)據(jù)結(jié)構(gòu)中若有中間結(jié)點不滿足只有一個前件或者后件的條件,就不是線性結(jié)構(gòu)。答案選擇D選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
2. 以下敘述中錯誤的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. C語言中的每條可執(zhí)行語句和非執(zhí)行語句最終都將被轉(zhuǎn)換成二進(jìn)制的機(jī)器指令o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. C程序經(jīng)過編譯、鏈接步驟之后才能形成一個真正可執(zhí)行的二進(jìn)制機(jī)器指令文件o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 用C語言編寫的程序稱為源程序,它以ASCII代碼形式存放在一個文本文件中o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. C語言源程序經(jīng)編譯后生成后綴為的目標(biāo)程序o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】A項錯誤,注釋語句不會被翻譯成二進(jìn)制的機(jī)器指令。C源程序經(jīng)過C編譯程序編譯之后生成后綴為的二進(jìn)制文件(稱為目標(biāo)文件),然后由“鏈接程序”(Link)的軟件把文件與各種庫函數(shù)連接起來生成一個后綴為的可執(zhí)行文件。答案選擇A選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
3. C語言主要是借助以下( )功能來實現(xiàn)程序模塊化的。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 定義函數(shù)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 定義常量和外部變量o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 三種基本結(jié)構(gòu)語句o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 豐富的數(shù)據(jù)類型o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】C程序的模塊化主要通過函數(shù)來實現(xiàn)。C語言允許對函數(shù)單獨進(jìn)行編譯,從而可以實現(xiàn)模塊化。答案選擇A選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
4. 有以下程序段:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
char ch;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
int k;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
ch='a';o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
k=12;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
print("%c,%d,",h,ch,k);o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
printf("k=%d",k);o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
已知字符a的ASCII碼十進(jìn)制值為97,則執(zhí)行上述程序段后輸出的結(jié)果是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 因變量類型與格式描述符的類型不匹配輸出無定值o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 輸出項與格式描述符個數(shù)不符,輸出為零值或不定值o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.a,97,12k=12o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. a,97,k=12o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】字符變量的值是該字符的ASCII碼值,可以參與整型變量所允許的任何運算。"ch='a",%c表示以字符格式輸出ch的值,所以輸出為a;%d表示以十進(jìn)制代碼的形式輸出ch的值,為97;k沒有對應(yīng)的輸出格式,不輸出。在第二個語句中,首先輸出"k=",然后以十進(jìn)制代碼輸出k的值,為12。答案選擇D選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
5. 下列敘述中正確的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 棧是“先進(jìn)先出”的線性表o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 隊列是“先進(jìn)后出"的線性表o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 循環(huán)隊列是非線性結(jié)構(gòu)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 有序線性表既可以采用順序存儲結(jié)構(gòu),也可以采用鏈?zhǔn)酱鎯Y(jié)構(gòu)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】有序的線性表既可采用順序存儲結(jié)構(gòu),也可以采用鏈?zhǔn)酱鎯Y(jié)構(gòu)。A項錯誤,棧是“先進(jìn)后出"的線性表B項錯誤,隊列是“先進(jìn)先出"的線性表;C項錯誤,循環(huán)隊列是線性結(jié)構(gòu)的,有序的線性表既可采用順序存儲結(jié)構(gòu),也可采用鏈?zhǔn)酱鎯Y(jié)構(gòu)。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
答案選擇D選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
6. 某二叉樹的中序序列為DCBAEFG,后序序列為DCBGFEA,則該二叉樹的深度(根結(jié)點在第1層)為( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 5o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 40o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.3o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 2o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】二叉樹的后序序列為DCBGFEA,則A為根結(jié)點。中序序列為DCBAEFG,則DCB為左子樹結(jié)點,EFG為右子樹結(jié)點。同理B為C父結(jié)點,C為D父結(jié)點。根據(jù)分析,可畫出左子樹,同理E為F父結(jié)點,F(xiàn)為G父結(jié)點。根據(jù)分析,可畫出右子樹,故二叉樹深度為4層。答案選擇B選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
7. 設(shè)有定義:struct{intn;floatx;}s[2],m[2]={{10,2.8},{0,0.0}};,則以下賦值語句中正確的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. s[0]=m[1];o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. s=m;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.s.n=m.n;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. s[2].x=m[2].x;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】定義了結(jié)構(gòu)體類型數(shù)組s,長度為2,結(jié)構(gòu)體類型數(shù)組m,長度為2,并對數(shù)組m進(jìn)行了初始化。同類型的結(jié)構(gòu)體可以直接用變量名實現(xiàn)賦值,A項正確;數(shù)組名為數(shù)組首地址,地址常量之間不可以相互賦值,B項錯誤;數(shù)組名為地址常量不是結(jié)構(gòu)體變量,不能引用成員,C項錯誤;s[2]與m[2]數(shù)組越界,D項錯誤。答案選擇A選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
8. 關(guān)于C語言標(biāo)識符,以下敘述錯誤的'是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 標(biāo)識符可全部由數(shù)字組成o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 標(biāo)識符可全部由下劃線組成o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 標(biāo)識符可全部由小寫字母組成o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 標(biāo)識符可全部由大寫字母組成o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】C語言標(biāo)識符只能由字母、數(shù)字、下劃線構(gòu)成,且只能以字母、下劃線開頭,故答案選擇A選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
9. 以下程序段中的變量已定義為int類型,則o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
sum=pAd=5;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
pAd=sum++,++pAd,pAd++;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
printf("%d",pAd);o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
程序段的輸出結(jié)果是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 6o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 4o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 5o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 7o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】自增和自減運算符的兩種用法:前置運算,運算符放在變量之前,規(guī)則是先使變量的值增(或減)1,然后以變化后表達(dá)式的值參與其他運算;后置運算,運算符放在變量之后,規(guī)則是變量先參與其他運算,然后再使變量的值增(或減)1。執(zhí)行pAd=sum++,sum++是后置自增,執(zhí)行完后,pAd=5,sum=6。++pAd和pAd++語句中沒有其他運算,即效果相同,pAd分別加1,兩句執(zhí)行完后,pAd7。答案選擇D選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
10. 設(shè)循環(huán)隊列為Q(1:m),其初始狀態(tài)為front=rear=m。經(jīng)過一系列入隊與退隊運算后,front=20,rear=15。現(xiàn)要在該循環(huán)隊列中尋找最小值的元素,最壞情況下需要比較的次數(shù)為( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 5o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 6o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.m-5o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. m-6o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】循環(huán)隊列是隊列的一種順序存儲結(jié)構(gòu),用隊尾指針rear指向隊列中的隊尾元素,用隊首指針指向隊首元素的前一個位置,因此,從隊首指針front指向的后一個位置直到隊尾指針rear指向的位置之間所有的元素均為隊列中的元素,隊列初始狀態(tài)為front=rear=m,當(dāng)front=20,rear=15時,隊列中有m-20+15=m-5個元素,最壞情況下需要比較次數(shù)為m-6次。答案選擇D選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
計算機(jī)二級選擇題題庫 3
一、選擇題o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
1). 一個字長為8位的無符號二進(jìn)制整數(shù)能表示的十進(jìn)制數(shù)值范圍是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.0~256o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.0~255o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.1~256o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.1~255o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
正確答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
2). 根據(jù)漢字國標(biāo)碼GB2312-80的規(guī)定,總計有各類符號和一、二級漢字個數(shù)是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.6763個o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.7445個o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.3008個o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.3755個o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
正確答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
3). 計算機(jī)能直接識別的語言是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.高級程序語言o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.機(jī)器語言o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.匯編語言o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.C++語言o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
正確答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
4). 下列關(guān)于計算機(jī)指令系統(tǒng)的描述正確的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.指令系統(tǒng)是計算機(jī)所能執(zhí)行的全部指令的集合o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.指令系統(tǒng)是構(gòu)成計算機(jī)程序的全部指令的集合o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.指令系統(tǒng)是計算機(jī)中程序的集合o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.指令系統(tǒng)是計算機(jī)中指令和數(shù)據(jù)的集合o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
正確答案:Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
答案解析:指令系統(tǒng)是計算機(jī)所能執(zhí)行的全部指令的集合。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
5). 1CB的準(zhǔn)確值是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.1024×1024Byteso7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.1024KBo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.1024MBo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.1000×1000KBo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
正確答案:Co7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
答案解析:1CB=1024MB=1024×1024KB=1024×1024×1024B。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
二、電子表格題o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
請在【答題】菜單下選擇【進(jìn)入考生文件夾】命令,并按照題目要求完成下面的操作.o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
注意:以下的文件必須都保存在考生文件夾下.o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
小李是東方公司的會計,利用自己所學(xué)的辦公軟件進(jìn)行記賬管理,為節(jié)省時間,同時又確保記賬的準(zhǔn)確性,她使用Excel編制了2014年3月員工工資表“Excel.xlsx”.o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
請你根據(jù)下列要求幫助小李對該工資表進(jìn)行整理和分析(提示:本題中若出現(xiàn)排序問題則采用升序方式):o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(1)通過合并單元格,將表名“東方公司2014年3月員工工資表”放于整個表的上端、居中,并調(diào)整字體、字號.o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(2)在“序號”列中分別填入l到l5,將其數(shù)據(jù)格式設(shè)置為數(shù)值、保留0位小數(shù)、居中.o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(3)將“基礎(chǔ)工資”(含)往右各列設(shè)置為會計專用格式、保留2位小數(shù)、無貨幣符號.o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(4)調(diào)整表格各列寬度、對齊方式,使得顯示更加美觀.并設(shè)置紙張大小為A4、橫向,整個工作表需調(diào)整在1個打印頁內(nèi).o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(5)參考考生文件夾下的“工資薪金所得稅率.xlsx”,利用IF函數(shù)計算“應(yīng)交個人所得稅”列.(提示:應(yīng)交個人所得稅=應(yīng)納稅所得額*對應(yīng)稅率一對應(yīng)速算扣除數(shù))o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(6)利用公式計算“實發(fā)工資”列,公式為:實發(fā)工資=應(yīng)付工資合計一扣除社保一應(yīng)交個人所得稅.o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(7)復(fù)制工作表“2014年3月”,將副本放置到原表的右側(cè),并命名為“分類匯總”.o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(8)在“分類匯總”工作表中通過分類匯總功能求出各部門“應(yīng)付工資合計”、“實發(fā)工資”的和,每組數(shù)據(jù)不分頁.o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
1.【解題步驟】o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟1:打開考生文件夾下的EXCEL.Xl.SX。步驟2:在“2014年3月”工作表中選中“Al:Ml”單元格,單擊【開始】選項卡下【對齊方式】組中的“合并后居中”按鈕。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟3:選中A1單元格,切換至【開始】選項卡下【字體】組,為表名“東方公司2014年3月員工工資表”選擇合適的字體和字號,這里我們選擇“楷體”和“18號”。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
2.【解題步驟】o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟1:在“2014年3月”工作表A3單元格中輸入“1”,在A4單元格中輸入“2”。按Ctrl全鍵向下填充至單元格Al7。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟2:選中“序號”列,單擊鼠標(biāo)右鍵,在彈出的'快捷菜單中選擇“設(shè)置單元格格式”命令,彈出“設(shè)置單元格格式”對話框。切換至“數(shù)字”選項卡,在“分類”列表框中選擇“數(shù)值”命令,在右側(cè)的“示例”組的“小數(shù)位數(shù)”微調(diào)框中輸入“0”。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟3:在“設(shè)置單元格格式”對話框中切換至“對齊”選項卡,在“文本對齊方式”組中“水平對齊”下拉列表框中選擇“居中”。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
3.【解題步驟】o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟:在“2014年3月”工作表選中“E:M”列,單擊鼠標(biāo)右鍵,在彈出的快捷菜單中選擇“設(shè)置單元格格式”命令,彈出“設(shè)置單元格格式”對話框。切換至“數(shù)字”選項卡,在“分類”列表框中選擇“會計專用”,在“小數(shù)位數(shù)”微調(diào)框中輸入“2”,在“貨幣符號”下拉列表框中選擇“無”。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
4.【解題步驟】o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟1:在“2014年3月”工作表中,單擊【頁面布局】選項卡下【頁面設(shè)置】組中的“紙張大小”按鈕,在彈出的下拉列表中選擇“A4”。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟2:單擊【頁面布局】選項卡下【頁面設(shè)置】組中的“紙張方向”按鈕,在彈出的下拉列表中選擇“橫向”。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟3:適當(dāng)調(diào)整表格各列寬度、對齊方式,使得顯示更加美觀,并且使得頁面在A4虛線框的范圍內(nèi)。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
5.【解題步驟】o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟:在“2014年3月”工作表L3單元格中輸入“=ROUND(IF(K3<=1500,k3*3/100,IF(K3<=4500,K3*10/100-105,IF(K3<=9000,K3*20/100-555,IF(K3<=35000,K3*25%-1005,IF(K3<=5500,K3*30%-2755,IF(K3<=80000,K3*35%5505,IF(K3>80000,K3*45%-13505))))))),2)”,按“Enter”后完成“應(yīng)交個人所得稅”的填充。然后向下填充公式到Ll7即可。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
6.【解題步驟】o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟:在“2014年3月”工作表M3單元格中輸入“=l3-J3-L3”,按“Enter”鍵后完成“實發(fā)工資”的填充。然后向下填充公式到Ml7即可。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
7.【解題步驟】o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟1:選中“2014年3月”工作表,單擊鼠標(biāo)右鍵,在彈出的快捷菜單中選擇“移動或復(fù)制”命令。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟2:在彈出的“移動或復(fù)制工作表”對話框中,在“下列選定工作表之前”列表框中選擇“Sheet2”,勾選“建立副本”復(fù)選框。設(shè)置完成后單擊“確定”按鈕即可。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟3:選中“2014年3月(2)”工作表,單擊鼠標(biāo)右鍵,在彈出的快捷菜單中選擇“重命名”命令,更改“2014年3月(2)”為“分類匯總”。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
8.【解題步驟】o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟1:在“分類匯總”工作表中數(shù)據(jù)下方建立小表格。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟2:在“分類匯總”工作表K22單元格輸入“=SUMPRODUCT(1*(D3:Dl7=″管理″),I3:1.17)”,按“Enter”鍵確認(rèn)。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟3:在“分類匯總”工作表L22單元格輸入“=SUMPRODUCT(1*(D3:Dl7=″管理″),M3:Ml7)”,按“Enter”鍵確認(rèn)。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
步驟4:參照步驟2和步驟3,依次在“分類匯總”工作表K23、123、K24、124、K25、L25、K26、I26單元格中依次輸入:“=SUMPRODUCT(1*(D3:Dl7=″行政″),I3:117)”,“=SUMPRODUCT(1*(D3:Dl7=″行政″),M3:Ml7)”,“=SUMPRODUCT(1*(D3:Dl7=″人事″),I3:Il7)”,“=SUMPRODUCT(1*(D3:Dl7=″人事″),M3:Ml7)”,“=SUMPRODUCT(1*(D3:D17=″研發(fā)″),I3:117)”,“=SUMPRODUCT(1*(D3:Dl7=″研發(fā)″),M3:Ml7)”,“=SUMPRODUCT(1*(D3:Dl7=″銷售″),I3:117)”,“=SUMPROD-UCT(1*(D3:Dl7=″銷售″),M3:Ml7)”,按“Enter”鍵確認(rèn)。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
計算機(jī)二級選擇題題庫 4
1.在公有派生情況下,有關(guān)派生類對象和基類對象的關(guān)系,下列敘述不正確的是( )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.派生類的對象可以賦給基類的對象o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.派生類的對象可以初始化基類的引用o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.派生類的對象可以直接訪問基類中的成員o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.派生類的對象的地址可以賦給指向基類的指針o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【參考答案】 Co7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
2.下列關(guān)于虛基類的描述,錯誤的是( )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.設(shè)置虛基類的'目的是為了消除二義性o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.虛基類的構(gòu)造函數(shù)在非虛基類之后調(diào)用o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.若同一層中包含多個虛基類,這些基類的構(gòu)造函數(shù)按它們說明的次序調(diào)用o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.若虛基類由非虛基類派生而來,則仍然先調(diào)用基類構(gòu)造函數(shù),再調(diào)用派生類的構(gòu)造函數(shù)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【參考答案】 Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
3.下列運算符中,在C++語言中不能重載的是( )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.*o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.>=o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D./o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【參考答案】 Co7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
4.下列程序的運行結(jié)果是( )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
#includeo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
class Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{ int a;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
public:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A( ) {a=0;}o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A(int aa)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{a=aa;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
cout<o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
void main( )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{A x,y(2),z(3);o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
cout<o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.00o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.23o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.34o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.25o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【參考答案】 Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
5.判斷char型變量c是否為小寫字母的正確表達(dá)式是( )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.′a′<=c<=′z′o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.(c>+A)&&(c<=z)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.(′a′>=c)||(′z′<=c)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.(c>=′a′)&&(c<=′z′)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【參考答案】 Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
綜合應(yīng)用題o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
使用VC6打開考生文件夾下的工程kt8_3,此工程包含一個源程序文件kt8_3.cpp,該文件設(shè)計了用于輸出乘法九九表的類。請認(rèn)真閱讀已有的代碼,按要求完成下列操作,將程序補(bǔ)充完整。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(1)定義類Table的私有數(shù)據(jù)成員x和y,分別用于表示九九表中的兩個乘數(shù)(x*y),它們都是int型的數(shù)據(jù)。請在注釋“//**1**”之后添加適當(dāng)?shù)恼Z句;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(2)完成類Table的成員函數(shù)print( )的定義,該函數(shù)以""x*y=z""的格式打印出九九表中的一個乘法算式,請使用格式化輸出函數(shù)printf實現(xiàn),在注釋“//**2**”之后添加適當(dāng)?shù)恼Z句;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(3)完成類Table9的成員函數(shù)print( )的定義,該函數(shù)調(diào)用基類Table的print( )函數(shù),將九九表輸出到屏幕,請在注釋“//**3**”之后添加適當(dāng)?shù)恼Z句;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(4)補(bǔ)充主函數(shù),在屏幕上輸出九九表,以便測試所定義的類的正確性。請在注釋“//**4**”之后添加適當(dāng)?shù)恼Z句。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
注意:除在指定位置添加語句之外,請不要改動程序中的其他內(nèi)容。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
源程序文件清單如下:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
#includeo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
#includeo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
classTableo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{//**1**o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
intz;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
public:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
voidprint(intx,inty,intz);};o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
voidTable::print(intx,inty,intz)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{//**2**}o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
classTable9:publicTableo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{public:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
voidprint( );};o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
voidTable9::print( )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{//**3**o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
intx,y,z;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
for(i=1;i<10;i++)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{for(j=1;j {x=i;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
y=j;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
z=i*j;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
Table::print(y,x,z);}o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
printf("" "");}}o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
main( )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{//**4**o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
return0;}o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【參考答案】o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(1)int x;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
int y;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(2)printf( ""%d*%d=%d "",x,y,z);o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
if(z<10) printf("" "");o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(3)int i,j;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(4)Table9 t_9;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
t_9.print( );o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【試題解析】o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
主要考查將具體問題抽象為類,將類的定義補(bǔ)充完整,并進(jìn)行類定義測試的能力。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
計算機(jī)二級選擇題題庫 5
1.下面對軟件特點描述不正確的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 軟件是一種邏輯實體,具有抽象性o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 軟件開發(fā)、運行對計算機(jī)系統(tǒng)具有依賴性o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 軟件開發(fā)涉及軟件知識產(chǎn)權(quán)、法律及心理等社會因素o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 軟件運行存在磨損和老化問題o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】軟件具有以下特點:①軟件具有抽象性,是一種邏輯實體;②軟件沒有明顯的制作過程;③軟件在使用期間不存在磨損、老化問題,④對硬件和環(huán)境具有依賴性;⑤軟件復(fù)雜性高,成本昂貴;⑥軟件開發(fā)涉及諸多的社會因素。D項描述是硬件存在的問題。答案選擇D選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
2. 下面描述不屬于軟件特點的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 軟件是一種邏輯實體,具有抽象性o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 軟件在使用中不存在磨損、老化問題o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 軟件復(fù)雜性高o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 軟件使用不涉及知識產(chǎn)權(quán)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】軟件具有以下特點:①軟件是一種邏輯實體,具有抽象性;②軟件沒有明顯的制作過程,③軟件在使用期間不存在磨損、老化問題;④軟件對硬件和環(huán)境具有依賴性;⑤軟件復(fù)雜性高,成本昂貴,⑥軟件開發(fā)涉及諸多的社會因素,如知識產(chǎn)權(quán)等。答案選擇D選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
3. 下面對軟件特點描述錯誤的是()o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.軟件沒有明顯的制作過程o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 軟件是一種邏輯實體,不是物理實體,具有抽象性o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 軟件的開發(fā)、運行對計算機(jī)系統(tǒng)具有依賴性o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 軟件在使用中存在磨損、老化問題o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】軟件的特點有:①具有抽象性,是邏輯實體;②沒有明顯的制作過程;③在使用期間不存在磨損、老化問題;④對硬件和環(huán)境具有依賴性;⑤復(fù)雜性高,成本昂貴;⑥開發(fā)涉及諸多的社會因素。答案選擇D選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
4. 軟件按功能可以分為:應(yīng)用軟件、系統(tǒng)軟件和支撐軟件(或工具軟件)。下面屬于系統(tǒng)軟件的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 編輯軟件o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 操作系統(tǒng)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 教務(wù)管理系統(tǒng)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 瀏覽器o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】系統(tǒng)軟件是控制和協(xié)調(diào)計算機(jī)及外部設(shè)備,支持應(yīng)用軟件開發(fā)和運行的軟件,操作系統(tǒng)是系統(tǒng)軟件;支撐軟件是支撐各種軟件的開發(fā)與維護(hù)的軟件,又稱為軟件開發(fā)環(huán)境,瀏覽器屬于支撐軟件;應(yīng)用軟件是用戶可以使用的各種程序設(shè)計語言,以及用各種程序設(shè)計語言編制的應(yīng)用程序的集合,編輯軟件、教務(wù)管理軟件屬于應(yīng)用軟件。答案選擇B選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
5. 軟件按功能可以分為應(yīng)用軟件、系統(tǒng)軟件和支撐軟件(或工具軟件),下面屬于應(yīng)用軟件的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 學(xué)生成績管理系統(tǒng)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. C語言編譯程序o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. UNIX操作系統(tǒng)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 數(shù)據(jù)庫管理系統(tǒng)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】應(yīng)用軟件是為解決特定領(lǐng)域的應(yīng)用而開發(fā)的軟件,如事務(wù)處理軟件,工程與科學(xué)計算軟件,學(xué)生成績管理系統(tǒng)、教務(wù)管理系統(tǒng)、瀏覽器、編輯軟件等應(yīng)用性質(zhì)不同的各種軟件。系統(tǒng)軟件是計算機(jī)管理自身資源,提高計算機(jī)使用效率并服務(wù)于其他程序的軟件,如操作系統(tǒng),編譯程序,匯編程序,數(shù)據(jù)庫管理系統(tǒng)等。支撐軟件是介于系統(tǒng)軟件和應(yīng)用軟件之間,協(xié)助用戶開發(fā)軟件的工具性軟件,包括輔助和支持開發(fā)和維護(hù)應(yīng)用軟件的工具軟件,如需求分析工具軟件,設(shè)計工具軟件,編碼工具軟件,測試工具軟件,維護(hù)工具軟件等。答案選擇A選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
6. 數(shù)據(jù)庫管理系統(tǒng)是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 操作系統(tǒng)的一部分o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 在操作系統(tǒng)支持下的`系統(tǒng)軟件o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 一種編譯系統(tǒng)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 一種操作系統(tǒng)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】系統(tǒng)軟件主要包括:①操作系統(tǒng)軟件;②各種語言的解釋程序和編譯程序;③各種服務(wù)性程序;④各種數(shù)據(jù)庫管理系統(tǒng)。數(shù)據(jù)庫管理系統(tǒng)是一種系統(tǒng)軟件,負(fù)責(zé)數(shù)據(jù)庫中的數(shù)據(jù)組織、數(shù)組操縱、數(shù)據(jù)維護(hù)、控制和保護(hù)以及數(shù)據(jù)服務(wù)等。答案選擇B選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
7. 數(shù)據(jù)庫管理系統(tǒng)是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 操作系統(tǒng)的一部分o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 在操作系統(tǒng)支持下的系統(tǒng)軟件o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 一種編譯系統(tǒng)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 一種通信軟件系統(tǒng)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】系統(tǒng)軟件主要包括:①操作系統(tǒng)軟件;②各種語言的解釋程序和編譯程序;③各種服務(wù)性程序;④各種數(shù)據(jù)庫管理系統(tǒng)。數(shù)據(jù)庫管理系統(tǒng)是一種系統(tǒng)軟件,負(fù)責(zé)數(shù)據(jù)庫中的數(shù)據(jù)組織、數(shù)組操縱、數(shù)據(jù)維護(hù)、控制和保護(hù)以及數(shù)據(jù)服務(wù)等。答案選擇B選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
8. 下列選項中,不屬于數(shù)據(jù)管理員(DBA)職責(zé)的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 數(shù)據(jù)庫維護(hù)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 數(shù)據(jù)庫設(shè)計o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 改善系統(tǒng)性能,提高系統(tǒng)效率o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 數(shù)據(jù)類型轉(zhuǎn)換o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】數(shù)據(jù)庫管理員對數(shù)據(jù)庫進(jìn)行規(guī)劃、設(shè)計、維護(hù)、監(jiān)視等,其主要工作有:①數(shù)據(jù)庫設(shè)計,主要是對數(shù)據(jù)模式進(jìn)行設(shè)計,②數(shù)據(jù)庫維護(hù),對數(shù)據(jù)庫中的數(shù)據(jù)安全性、完整性、并發(fā)控制及系統(tǒng)恢復(fù)、數(shù)據(jù)定期轉(zhuǎn)儲等進(jìn)行實施與維護(hù);③改善系統(tǒng)性能,不斷調(diào)整內(nèi)部結(jié)構(gòu),提高系統(tǒng)效率。答案選擇D選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
9. 數(shù)據(jù)庫系統(tǒng)的核心是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 數(shù)據(jù)模型o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 軟件開發(fā)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 數(shù)據(jù)庫設(shè)計o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 數(shù)據(jù)庫管理系統(tǒng)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】數(shù)據(jù)庫系統(tǒng)包括四個部分:數(shù)據(jù)庫、數(shù)據(jù)庫管理系統(tǒng)、數(shù)據(jù)庫應(yīng)用程序、數(shù)據(jù)庫管理員。其中DBMS是為數(shù)據(jù)庫的建立、使用和維護(hù)而配置的軟件,是數(shù)據(jù)庫系統(tǒng)的核心。答案選擇D選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
10. 下列敘述中正確的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 數(shù)據(jù)庫系統(tǒng)是一個獨立的系統(tǒng),不需要操作系統(tǒng)的支持o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 數(shù)據(jù)庫技術(shù)的根本目標(biāo)是要解決數(shù)據(jù)的共享問題o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 數(shù)據(jù)庫管理系統(tǒng)就是數(shù)據(jù)庫系統(tǒng)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 數(shù)據(jù)庫系統(tǒng)由數(shù)據(jù)庫應(yīng)用系統(tǒng)、數(shù)據(jù)庫和數(shù)據(jù)庫管理系統(tǒng)組成。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【答案】Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解析】A項錯誤,數(shù)據(jù)庫需要調(diào)用操作系統(tǒng)的接口,需要操作系統(tǒng)的支持;C項錯誤,數(shù)據(jù)庫管理系統(tǒng)(DBMS)是數(shù)據(jù)庫系統(tǒng)的核心,負(fù)責(zé)數(shù)據(jù)庫中的數(shù)據(jù)組織、數(shù)據(jù)操作、數(shù)據(jù)維護(hù)、控制及保護(hù)和數(shù)據(jù)服務(wù)等;D項錯誤,數(shù)據(jù)庫應(yīng)用系統(tǒng)是數(shù)據(jù)庫系統(tǒng)再加上應(yīng)用軟件及應(yīng)用界面這三者所組成,具體包括:數(shù)據(jù)庫、數(shù)據(jù)庫管理系統(tǒng)、數(shù)據(jù)庫管理員、硬件平臺、軟件平臺、應(yīng)用軟件、應(yīng)用界面。答案選擇B選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
計算機(jī)二級選擇題題庫 6
1[單選題] 要使標(biāo)簽中的文本靠右顯示,應(yīng)將其Aligment屬性設(shè)置為o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.0-LeftJustifyB.1-RightJustifyC.2-CenterD.3o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:0-LeftJustify:文本靠左顯示;l-RightJustify:文本靠右顯示;2-Center:文本居中顯示。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
2[單選題] 軟件測試的目的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.評估軟件可靠性o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.發(fā)現(xiàn)并改正程序中的錯誤o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.改正程序中的錯誤o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.發(fā)現(xiàn)程序中的錯誤o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:軟件測試是為了發(fā)現(xiàn)錯誤而執(zhí)行程序的過程,測試要以查找錯誤為中心,而不是為了演示軟件的正確功能。不是為了評估軟件或改正錯誤。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
3[單選題] 軟件設(shè)計中劃分模塊的一個準(zhǔn)則是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.低內(nèi)聚低耦合B.高內(nèi)聚低耦合C.低內(nèi)聚高耦合D.高內(nèi)聚高耦合o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:一般較優(yōu)秀的軟件設(shè)計,應(yīng)盡量做到高內(nèi)聚,低耦合,即減弱模塊之間的耦合性和提高模塊內(nèi)的內(nèi)聚性,有利于提高模塊的獨立性。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
4[單選題] 有如下數(shù)據(jù)定義語句:Dim X,Y As Integer以上語句表明( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.x、Y均是整型變量o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.x是整型變量,Y是變體類型變量o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.X是變體類型變量,Y是整型變量o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.x是整型變量,Y是字符型變量o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Co7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
5[單選題] 在軟件開發(fā)中,需求分析階段可以使用的工具是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.N―s圖B.DFD圖C.PAD圖D.程序流程圖o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:在需求分析階段可以使用的工具有數(shù)據(jù)流圖(DFD圖),數(shù)據(jù)字典(DD),判定樹與判定表,所以選擇B。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
6[單選題] 耦合性和內(nèi)聚性是對模塊獨立性度量的兩個標(biāo)準(zhǔn)。下列敘述中正確的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.提高耦合性降低內(nèi)聚性有利于提高模塊的獨立性o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.降低耦合性提高內(nèi)聚性有利于提高模塊的獨立性o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.耦合性是指一個模塊內(nèi)部各個元素間彼此結(jié)合的緊密程度o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.內(nèi)聚性是指模塊間互相連接的緊密程度o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:模塊獨立性是指每個模塊只完成系統(tǒng)要求的獨立的子功能,并且與其他模塊的聯(lián)系最少且接口簡單。一般較優(yōu)秀的'軟件設(shè)計,應(yīng)盡量做到高內(nèi)聚、低耦合,即減弱模塊之間的耦合性和提高模塊內(nèi)的內(nèi)聚性,有利于提高模塊的獨立性,所以A錯誤,B正確。耦合性是模塊問互相連接的緊密程度的度量而內(nèi)聚性是指一個模塊內(nèi)部各個元素間彼此結(jié)合的緊密程度,所以C與D錯誤。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
7[單選題] 設(shè):a=2,b=8,c=6,d=3,表達(dá)式a>bAndNot(C>D.Ord>c的值是o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.1B.OC.TrueD.Falseo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:本題中包含的兩種運算符的優(yōu)先級別由高到低依次為:比較運算符、邏輯運算符。其中,邏輯運算符的優(yōu)先級為:Not(非)→And(與)→Or(或)。And前面表達(dá)式的值為False,And后面表達(dá)式的值為False,Or后面表達(dá)式的值也為False,所以最后輸出的也是False。因此,答案為D.。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:用Dim可同時定義多個變量,但變量要l分別聲明其數(shù)據(jù)類型,如果不聲明數(shù)據(jù)類型,默認(rèn)是Variant變I體型變量。l本題中,變量x定義時沒聲明數(shù)據(jù)類型,所以為Variant型I變量,變量Y是整型變量。故c選項正確。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
8[單選題] 當(dāng)文本框中的內(nèi)容發(fā)生改變時所觸發(fā)的事件是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.KeyUpB.ChangeC.LostFocus D.GotFocuso7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:文本框中內(nèi)容有變化時,觸發(fā)Change事件。故B選項正確。當(dāng)在文本框中輸人數(shù)據(jù),松開鍵盤時觸發(fā)它的KeyUp事件;文本框失去焦點觸發(fā)LostFocus事件:獲得焦點。觸發(fā)Got―1%eus事件0o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
9[單選題]下面程序的執(zhí)行結(jié)果是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
Private Sub Commandl―Click( )a=0o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
k=1Do While k<4o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
X=k+kk=k+1o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
Prim X;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
LoopEnd Subo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.1 4 27B.1 1 1C.1 4 9 D.0 0 0o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:本題主要考查算術(shù)運算符中的冪運算,在程序中x的值為k的k次方的a次方,k的值每次循環(huán)都加1,但a的值不變總為0,除0以外的任何數(shù)的0次方都是l,因此,在k的值變?yōu)?之前會輸出三個l。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
10[單選題] 設(shè)變量X的值是845,則下面語句的輸出是o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
Printx、100+(xMod100)10+xo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
Mod10o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.17B.548C.845D.485o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:整除運算(、)的結(jié)果是商的整數(shù)部分。例如,72表示整除,商為3.5,結(jié)果取整數(shù)部分3,不進(jìn)行四舍五入。如果參加整除的操作數(shù)是浮點數(shù),則先按四舍五人的原則將它們變成整數(shù),然后再執(zhí)行整除運算。例如,對于8.5、2,先將8.5變成9再進(jìn)行整除,商為3.5,結(jié)果為4。取余運算(MoD.是求兩個整數(shù)相除后的余數(shù)。如果參加取余運算的操作數(shù)是浮點數(shù),則先按四舍五人的原則將它們變成整數(shù),然后再執(zhí)行取余運算。例如,對于8.52.1,先將8.5變成9,2.1變成2,然后9除以2與1,因此取余結(jié)果為1。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
算術(shù)運算符的優(yōu)先級:先乘除,后加減;乘方優(yōu)先于乘除;函數(shù)優(yōu)先于乘方;Mod次于乘除而優(yōu)先于加減;括號最優(yōu)先本題中,x100結(jié)果為8,(xModl00)10結(jié)果為4,xModt0結(jié)果為5,所以輸出為l7,選項A.正確。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
計算機(jī)二級選擇題題庫 7
1.若有以下數(shù)組說明,則i=10;a[a[i]]元素數(shù)值是(C )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
int a[12]={1,4,7,10,2,5,8,11,3,6,9,12};o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A、10o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B、9o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C、6o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D、5o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
先算a[a[i]]內(nèi)層的a[i],由于i=10,因此a[i]即a[10].o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
a[10]對應(yīng)下面數(shù)組中的元素為9. 因此a[a[i]]即為a[9]o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
a[9]對應(yīng)下面數(shù)組中的元素為6. 因此a[9]即為6o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
2.若有說明:int a[][3]={{1,2,3},{4,5},{6,7}}; 則數(shù)組a的第一維的大小為: ( B )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A、2o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B、3o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C、4o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D、3 6 9o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
二維數(shù)組的一維大小,即指二維數(shù)組的行數(shù),在本題中,按行對二維數(shù)組賦值,因此內(nèi)層有幾個大括號,數(shù)組就有幾行o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
3.對二維數(shù)組的正確定義是(C )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
詳見教材P149~152,二維數(shù)組的定義、初始化o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
類型符 數(shù)組名 [常量表達(dá)式][常量表達(dá)式]o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
二維數(shù)組可以看做是矩陣o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
類型符是指數(shù)組中數(shù)組元素的類型;數(shù)組名要符合標(biāo)識符命名規(guī)則;第一個常量表達(dá)式是指數(shù)組的行數(shù);第二個常量表達(dá)式是指數(shù)組的列數(shù);常量表達(dá)式的值只能是整數(shù),不可以是變量,而且從1開始計數(shù)。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
一維數(shù)組初始化時可以省略數(shù)組長度o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
二維數(shù)組初始化時可以省略行數(shù),但不能省略列數(shù)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
選項A,B,都省略了列數(shù)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
選項D,不符合二維數(shù)組定義的一般形式,行、列常量表達(dá)式應(yīng)該放在不同的[]中o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A、int a[ ][ ]={1,2,3,4,5,6};o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B、int a[2] []={1,2,3,4,5,6};o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C、int a[ ] [3]={1,2,3,4,5,6};o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D、int a[2,3]={1,2,3,4,5,6};o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
4.已知int a[3][4];則對數(shù)組元素引用正確的是__C___o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A、a[2][4]o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B、a[1,3]o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C、a[2][0]o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D、a(2)(1)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
5.C語言中函數(shù)返回值的類型是由 A 決定的o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A、函數(shù)定義時指定的類型o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B、 return語句中的表達(dá)式類型o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C、 調(diào)用該函數(shù)時的實參的數(shù)據(jù)類型o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D、形參的數(shù)據(jù)類型o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
6. 在C語言中,函數(shù)的數(shù)據(jù)類型是指(A )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A、 函數(shù)返回值的數(shù)據(jù)類型o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B、 函數(shù)形參的數(shù)據(jù)類型o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C、 調(diào)用該函數(shù)時的實參的數(shù)據(jù)類型o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D、任意指定的數(shù)據(jù)類型o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
7.在函數(shù)調(diào)用時,以下說法正確的是( B )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A、函數(shù)調(diào)用后必須帶回返回值o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B、實際參數(shù)和形式參數(shù)可以同名o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C、函數(shù)間的數(shù)據(jù)傳遞不可以使用全局變量o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D、主調(diào)函數(shù)和被調(diào)函數(shù)總是在同一個文件里o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
8. 在C語言中,表示靜態(tài)存儲類別的關(guān)鍵字是: ( C )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A、 autoo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B、 registero7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C、statico7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D、externo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
9.未指定存儲類別的變量,其隱含的存儲類別為(A )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A、autoo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B、statico7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C、externo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D、registero7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
10. 若有以下說明語句:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
struct studento7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{ int num;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
char name[ ];o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
float score;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
}stu;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
則下面的敘述不正確的是: (D )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A、 struct是結(jié)構(gòu)體類型的關(guān)鍵字o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B、 struct student 是用戶定義的結(jié)構(gòu)體類型o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C、 num, score都是結(jié)構(gòu)體成員名o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D、 stu是用戶定義的結(jié)構(gòu)體類型名o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
11.若有以下說明語句:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
struct dateo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{ int year;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
int month;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
int day;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
}brithday;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
則下面的敘述不正確的是__C___.o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A、 struct是聲明結(jié)構(gòu)體類型時用的關(guān)鍵字o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B、 struct date 是用戶定義的'結(jié)構(gòu)體類型名o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C、 brithday是用戶定義的結(jié)構(gòu)體類型名o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D、year,day 都是結(jié)構(gòu)體成員名o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
12. 以下對結(jié)構(gòu)變量stul中成員age的非法引用是 Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
struct studento7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{ int age;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
int num;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
}stu1,*p;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
p=&stu1;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A、 stu1.ageo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B、 student.ageo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C、 p->ageo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D、(*p).ageo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
13.設(shè)有如下定義:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
struck sko7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{ int a;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
float b;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
}data;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
int *p;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
若要使P指向data中的a域,正確的賦值語句是 Co7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A、 p=&a;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B、 p=datA、a;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C、p=&datA、a;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D、*p=datA、a;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
14.設(shè)有以下說明語句:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
typedef struct stuo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{ int a;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
float b;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
} stutype;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
則下面敘述中錯誤的是( D )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A、struct是結(jié)構(gòu)類型的關(guān)鍵字o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B、struct stu是用戶定義的結(jié)構(gòu)類型o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C、a和b都是結(jié)構(gòu)成員名o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D、stutype是用戶定義的結(jié)構(gòu)體變量名o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
15.語句int *p;說明了 C 。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A、p是指向一維數(shù)組的指針o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B、p是指向函數(shù)的指針,該函數(shù)返回一int型數(shù)據(jù)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C、p是指向int型數(shù)據(jù)的指針o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D、p是函數(shù)名,該函數(shù)返回一指向int型數(shù)據(jù)的指針o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
16、以下語句的輸出結(jié)果是( D)。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
int a=-1,b=4,k;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
k=(+ +a<0)&&!(b - -<=0);o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
printf("%d,%d,%d",k,a,b);o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 1,0,4o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 1,0,3o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 0,0,3o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 0,0,4o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
17、下列程序的輸出結(jié)果是(D )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
char *p1="abcd", *p2="ABCD", str[50]="xyz";o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
strcpy(str+2,strcat(p1+2,p2+1));o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
printf("%s",str);o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. xyabcABo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. abcABzo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. ABabczo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. xycdBCDo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
18、執(zhí)行下面的程序后,a的值是(B )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
#define SQR(X) X*Xo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
main( )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{ int a=10,k=2,m=1;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
a/=SQR(k+m)/SQR(k+m);o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
printf("%d",a); }o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 10o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 1o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 9o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 0o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
19、設(shè)A為存放(短)整型的一維數(shù)組,如果A的首地址為P,那么A中第i 個元素的地址為( B)。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.P+i*2o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. P+(i-1)*2o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. P+(i-1)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. P+io7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
20、下列程序執(zhí)行后輸出的結(jié)果是( A)。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
int d=1;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
fun (int p)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{ int d=5;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
d + =p + +;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
printf("%d,",d); }o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
main( )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
{ int a=3;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
fun(a);o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
d + = a + +;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
printf("%d",d); }o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 8, 4o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 9, 6o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 9, 4o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 8, 5o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
21、表達(dá)式:10!=9的值是(D )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. trueo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 非零值o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 0o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 1o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
22、若有說明: int i,j=7, *p=&i;, 則與i=j; 等價的語句是( B)。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. i= *p;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. *p=*&j;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. i=&j;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. i=* *p;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
23、不能把字符串:Hello!賦給數(shù)組b的語句是( B)。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. char b[10]={’H’,’e’,’l’,’l’,’o’,’!’};o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. char b[10]; b="Hello!";o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. char b[10]; strcpy(b,"Hello!");o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.char b[10]="Hello!";o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
24、在C程序中有如下語句:char *func(int x,int y); 它是(C )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 對函數(shù)func的定義。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 對函數(shù)func的調(diào)用。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.對函數(shù)func的原型說明。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 不合法的。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
25、以下程序的輸出結(jié)果是( D)。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
char str[15]=”hello!”;o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
printf(“%d”,strlen(str));o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A. 15o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B. 14o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C. 7o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D. 6o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
26[單選題] 以下敘述中正確的是( )o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.用戶自己定義的函數(shù)只能調(diào)用庫函數(shù)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.實用的C語言源程序總是由一個或多個函數(shù)組成o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.不同函數(shù)的形式參數(shù)不能使用相同名稱的標(biāo)識符o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.在C語言的函數(shù)內(nèi)部,可以定義局部嵌套函數(shù)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:A選項中,”用戶自己定義的函數(shù)只能調(diào)用庫函數(shù)”描述是不正確的,也可以調(diào)用自定義函數(shù);C選項中,對于不同函數(shù)的形式參數(shù)可以使用相同名稱的標(biāo)識符;D選項中,關(guān)于函數(shù)的定義不可以嵌套,但函數(shù)的調(diào)用可以嵌套。因此B選項正確。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
27[單選題] 以下關(guān)于C語言數(shù)據(jù)類型使用的敘述中錯誤的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.若要處理如“人員信息”等含有不同類型的相關(guān)數(shù)據(jù),應(yīng)自定義結(jié)構(gòu)體類型o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.若要保存帶有多位小數(shù)的數(shù)據(jù),可使用雙精度類型o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.若只處理“真”和“假”兩種邏輯值,應(yīng)使用邏輯類型o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.整數(shù)類型表示的自然數(shù)是準(zhǔn)確無誤差的o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Co7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:C語言中沒有邏輯類型,所以c錯誤。若要保存帶有多位小數(shù)的數(shù)據(jù),可以用單精度類型也可以用雙精度類型。處理包含不同類型的相關(guān)數(shù)據(jù)可以定義為結(jié)構(gòu)體類型。整數(shù)類型可以無誤差的表示自然數(shù)。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
28[單選題] 下面選項中關(guān)于編譯預(yù)處理的敘述正確的是o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.預(yù)處理命令行必須使用分號結(jié)尾o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.凡是以#號開頭的行,都被稱為編譯預(yù)處理命令行o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.預(yù)處理命令行不能出現(xiàn)在程序的最后一行o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.預(yù)處理命令行的作用域是到最近的函數(shù)結(jié)束處o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:本題考查預(yù)編譯的預(yù)編譯處理命令行,預(yù)處理命令行不能以分號結(jié)尾,所以A選項錯誤,預(yù)處理命令行可以出現(xiàn)在程序的最后一行,預(yù)處理命令行作用域是整個文件。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
29[單選題] 有以下程序o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
程序的輸出結(jié)果是o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.0B.1C.9D.10o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:本題考查宏定義,宏定義只是做個簡單的替換。執(zhí)行SQR(k+m)/SQR(k+m)=k+m*k+m/k+m}k+m=15/2,a/=SQR(k+m)/SQR(k+1TI)的結(jié)果為1,選項B正確。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
30[單選題] 設(shè)--X樹共有150個結(jié)點,其中度為l的結(jié)點有l(wèi)0個,則該---X樹中的葉子結(jié)點數(shù)為( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.71B.70C.69D.不可能有這樣的二叉樹o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:在樹結(jié)構(gòu)中,一個結(jié)點所擁有的后件個數(shù)稱為該結(jié)點的度,所有結(jié)點中最大的度稱為樹的度。對任何一棵二叉樹,度為0的結(jié)點總是比度為2的結(jié)點多一個。如果有一棵二叉樹,結(jié)點總數(shù)為l50,假設(shè)度為0的結(jié)點個數(shù)為n,則有n+10+n一1=150,n=70.5,由于結(jié)點個數(shù)必須是整數(shù),所以不可能有題目中這樣的二叉樹。故選擇D選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
31[單選題] 有以下程序:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
程序運行后的輸出結(jié)果是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.2.3B.1,3C.1,4D.1,2o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:在f(int+P,int 4 q)函數(shù)中,執(zhí)行P=P+1是將P所對應(yīng)的地址加1,而0 q=+q+1是將q所指向的n的地址所對應(yīng)的值加1,所以m的得知所對應(yīng)的值沒有變,而n的值則為3了。因此B選項正確。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
32[單選題] 以下選項中,能用作用戶標(biāo)識符的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.-0-B.8-;8C.voidD.unsignedo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:C語言中標(biāo)識符由字母、下劃線、數(shù)字組成,且開頭必須是字母或下劃線。另外,關(guān)鍵字不能作為標(biāo)識符。8中以數(shù)字8開頭,所以錯誤。c與D中用的是關(guān)鍵字void與unsigned,所以錯誤。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
33[單選題] 以下敘述正確的是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.表達(dá)式sizeof(FILE*)==sizeof(int*)的值為真o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.文件指針的值是一個整數(shù),它的值一定小于文件字節(jié)數(shù)o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.文件指針的值是所指文件的當(dāng)前讀取位置o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.使用fscanf函數(shù)可以向任意類型的文件中寫入任意數(shù)量的字符o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
slzeof(FILE})=4,因為file?為指針,指針的大小4,sizeof(int?)=4,理由同前面。文件指針的值是地址,是一個16進(jìn)制的數(shù),它的值不一定小于文件字節(jié)數(shù),因此選項8錯誤。文件指針是所指文件的當(dāng)前讀取位置,而不是文件指針的值因此選項C錯誤。mgscanf(FILE-stream,constchar}format,[argument…]fmanf函數(shù)可以向任意類型的文件,寫入任意數(shù)量不能超過系統(tǒng)的緩沖區(qū),寫文件先寫入緩沖區(qū),最后一起寫入文件,因此選項D錯誤。答案為A選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
計算機(jī)二級選擇題題庫 8
1[單選題] 一個關(guān)系中的各條記錄( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.前后順序不能任意顛倒,要按輸入的順序排列o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.前后順序不能任意顛倒,要按關(guān)鍵字段值的順序排列o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.前后順序可以任意顛倒,但排列順序不同,統(tǒng)計處理的結(jié)果可能不同o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.前后順序可以任意顛倒,不影響數(shù)據(jù)的實際含義o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Do7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析: 一個關(guān)系就是一張二維表,每個關(guān)系有一個關(guān)系名。在關(guān)系模型中對關(guān)系有一定的要求,關(guān)系必須具有以下特點:關(guān)系必須規(guī)范化,表中不能再包含表;在同一個關(guān)系中不能出現(xiàn)完全相同的屬性(列),即不允許有相同的字段名;關(guān)系中不允許有完全相同的元組(行),即不允許有相同的記錄;在一個關(guān)系中行的次序無關(guān)緊要,可任意交換兩行的位置;在一個關(guān)系中列的次序無關(guān)緊要,可任意交換兩列的位置。本題D為正確選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
2[單選題] 在軟件開發(fā)中,需求分析階段可以使用的工具是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.N-S圖 B.DFD圖 C.PAD圖 D.程序流程圖o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:在需求分析階段可以使用的工具有數(shù)據(jù)流圖(DFD圖),數(shù)據(jù)字典(DD),判定樹與判定表,所以選擇B)。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
3[單選題] 一棵二叉樹共有25個結(jié)點,其中5個是葉子結(jié)點,則度為1的結(jié)點數(shù)為( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.16B.10C.6 D.4o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:根據(jù)-y.樹的性質(zhì)3:在任意一課二叉樹中,度為0的葉子結(jié)點總是比度為2的結(jié)點多一個,所以本題中度為2的結(jié)點是5-1=4個,所以度為l的結(jié)點的個數(shù)是25-5-4=16個。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
4[簡答題]在考生文件夾下完成如下基本操作:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
1.通過SQLINSERT語句插入元組(”p7”,”PN7”,1020)到“零件信息”表(注意不要重復(fù)執(zhí)行插入操作),并將相應(yīng)的SQL語句存儲在文件one.pr9中。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
2.通過SQLDELETE語句從“零件信息”表中刪除單價小于600的所有記錄,并將相應(yīng)的SQL語句存儲在文件tw0.pr9中。一o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
3.通過SQLUPDATE語句將“零件信息”表中零件號為“p4”的零件的單價更改為l090,并將相應(yīng)的SQL語句存儲在文件three.pr9中。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
4.打開菜單文件mymenu.Innx,然后生成可執(zhí)行的菜單程序mymenu.mpr。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【考點分析】本大題主要考查的知識點是:利用SQL語句對表進(jìn)行插入、刪除、修改等操作,為菜單生成可執(zhí)行的菜單程序。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【解題思路】對于第l、2,3小題,需先在命令窗口中完成正確的SQL語句的編寫并執(zhí)行,然后檢查SQL語句的執(zhí)行結(jié)果,接下來新建題目要求的程序文件,最后將SQL語句復(fù)制到新建的程序文件中。生成可執(zhí)行的菜單程序需先打開菜單文件,然后執(zhí)行“菜單”菜單中的“生成”命令。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【操作步驟】o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(1)打開VisualFoxPr0,在命令窗口輸入“INSERTINTO零件信息VALUES(”p7“,”PN7”,l020)”,并按下回車鍵執(zhí)行語句。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
然后創(chuàng)建―個程序文件0ne.pr9,把代碼復(fù)制過去并保存。(2)在命令窗口輸入“DELETEFROM零件信息WHERE單價<600”,并按下回車鍵執(zhí)行語句。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
然后創(chuàng)建―個程序文件tw0.prg,把代碼復(fù)制過去并保存。(3)在命令窗口輸入“UPDATE零件信息SET單價=1090WHERE零件號=”p4””,并按下回車鍵執(zhí)行語句。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
然后創(chuàng)建一個程序文件three.pr9,把代碼復(fù)制過去并保存。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
(4)打開菜單mymenu.mnx后,選擇系統(tǒng)菜單中的“菜單”,然后選擇“生成”。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
【舉一反三】第1題的題型還出現(xiàn)手:第l3套一(4)、第89套一(3)、第l7套一(3)、第97套--(2)。第2題的題型還出現(xiàn)于:第89套一(2)、第97套一(4)。第3題的題型還出現(xiàn)于:第87套一(2)、第29套--(2)、第30套一-(4)、第94套一(4)、第97套一(3)。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
5[單選題] 與“SELECT*FROM學(xué)生INTO DBF A”等價的語句是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.SELECT*FROM學(xué)生INTO Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.SELECT*FROM學(xué)生INTO TABLE Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.SELECT*FROM學(xué)生TO TABLE Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.SELECT*FROM學(xué)生TO DBF Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Bo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:在SQL查詢語句的尾部添加、INTO DBFIo7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
TABLE<表名>可以將查詢的結(jié)果放入新生成的指定表中。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
INTO TABLE A等價于INTO DBF A,因此B)為正確選項。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
6[單選題] 在Visual FoxPro中,下面關(guān)于索引的正確描述是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.當(dāng)數(shù)據(jù)庫表建立索引以后,表中的記錄的物理順序?qū)⒈桓淖?span style="display:none">o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.索引的數(shù)據(jù)將與表的數(shù)據(jù)存儲在一個物理文件中o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.建立索引是創(chuàng)建一個索引文件,該文件包含有指向表記錄的指針o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.使用索引可以加快對表的更新操作o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Co7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:Visual FoxPro索引是由指針構(gòu)成的文件,這些指針邏輯上按照索引關(guān)鍵字值進(jìn)行排序。索引文件和表的'dbf文件分別存儲,并且不改變表中記錄的物理順序。實際上,創(chuàng)建索引是創(chuàng)建一個由指向.dbf文件記錄的指針構(gòu)成的文件。若要根據(jù)特定順序處理表記錄,可以選擇一個相應(yīng)的索引,使用索引還可以加速對表的查詢操作,但不會加快對表的更新操作。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
7[單選題] 在Visual FoxPro中,命令“INDEX ON姓名TO xm”的功能是( )。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
A.建立一個名為xm.idx的索引文件o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
B.建立一個名為xm.cdx的索引文件o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
C.在結(jié)構(gòu)索引文件中建立一個名為xm的索引o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
D.在非結(jié)構(gòu)索引文件中建立一個名為xm的索引o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考答案:Ao7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
參考解析:INDEX ON命令用于在程序中建立索引,執(zhí)行命令“INDEX ON姓名TO xm”之后可建立一個名為xm的索引文件,索引文件的擴(kuò)展名為.idx,故本題A選項正確。o7O萬博士范文網(wǎng)-您身邊的范文參考網(wǎng)站Vanbs.com
8[單選題] 設(shè)x=