- 首頁|
- 網(wǎng)校|
- 焚題庫|
- APP |
- 微信公眾號(hào)
二、多項(xiàng)選擇題(本大題共5小題,每小題2分,共10分)
在每小題列出的五個(gè)備選項(xiàng)中至少有兩個(gè)是符合題目要求的,請(qǐng)將其選出并將“答題紙”的相應(yīng)代碼涂黑。錯(cuò)涂、多涂、少涂或未涂均無分。
21.若有int a=8,b=3;下面表達(dá)式值為2的有
A.a%b B.a/b
C.b>a?a--:--b D.a-a/b*b
E.a-a%b*b
22.下面循環(huán)將會(huì)產(chǎn)生死循環(huán)的有
A.while.(1); B.do{ }while(0);
C.do{ }while(I); D.for(k=1;k>-10;k++);
E.for(k= 1 ;k= 10;k++,k--);
23.關(guān)于變量的存儲(chǔ),下面說法正確的有
A.auto型變量存儲(chǔ)在動(dòng)態(tài)存儲(chǔ)區(qū)
B.static型變量存儲(chǔ)在靜態(tài)存儲(chǔ)區(qū)
C.static型變量是全局靜態(tài)變量
D.若定義的全局變量缺省存儲(chǔ)類別,則系統(tǒng)默認(rèn)是auto型
E.動(dòng)態(tài)存儲(chǔ)區(qū)的變量在退出函數(shù)時(shí)釋放所占的內(nèi)存單元
24.設(shè)有二維數(shù)組int a[4][3];下列表示數(shù)組元素a[0][2]地址的有
A.a[2] B.*a
C.*a+2 D.a[0]+2
E.&a[0][2]
25.下面關(guān)于結(jié)構(gòu)體定義正確的有
A.struct 1__ num
{ long unm ;struct l__num *next; }num 1, *pl;
pl=&num 1;
B. struct animal
{ char name[30],float weight, } rabbits;
C. struct star
{ int bh,char name[20], } my__star;
my__ star. name= " moon " ;
D. struct{ char x[20];char y[30];int u;}xl,yl;
E. struct food
{ int code ;char name[30];struct food *p;};
struct food *tail;