一、單項(xiàng)選擇題
1.下面四個選項(xiàng)中,均不是c語言關(guān)鍵字的選項(xiàng)是( A )。
A) define IF Type
B) getc char printf
C) include scanf case
D) while go pow
2.C語言中的標(biāo)識符只能由字母、數(shù)字和下劃線三種字符組成,且第一個字符(C)。
A) 必須為字母
B) 必須為下劃線
C) 必須為字母或下劃線
D) 可以是字母、數(shù)字和下劃線中任一種字符
3.下列四個選項(xiàng)中,均是C語言關(guān)鍵字的選項(xiàng)是( B )。
A) auto enum include
B) switchtypedefcontinue
C) signed union scanf
D) ifstruct type
4.下面四個選項(xiàng)中,均是不合法的用戶標(biāo)識符的選項(xiàng)是( C )。
A) AP_0 do
B) floatla0_A
C) b-agotoint
D) _123tempint
5.以下有4組用戶標(biāo)識符,其中合法的一組是(C)。
A) For-sub Case
B) 4dDO Size
C) f2_G3IFabc
D) WORDvoiddefine
6.下列選項(xiàng)中,合法的C語言關(guān)鍵字是( D )。
A) VAR
B) cher
C) integer
D) default
7.下面四個選項(xiàng)中,均是合法整型常量的選項(xiàng)是( A )。
A) 160 -0xffff011
B) -0xcdf 01a0xe
C) –01986012 0668
D) -0x48a 0x2e5 0xe
8.下面四個選項(xiàng)中,均是正確的八進(jìn)制數(shù)或十六進(jìn)制數(shù)的選項(xiàng)是( C )。
A) -100x8f-011
B) 0abc-017 0xc
C) 010 -0x11 0xf1
D) 0a12-0x123 -0xa
9.設(shè)C語言中,一個int型數(shù)據(jù)在內(nèi)存中占2個字節(jié),則unsigned int型數(shù)據(jù)的取值范圍為( C )。
A) 0~255
B) 0~32767
C) 0~65535
D) 0~2147483647
10.在C語言中,不正確的int類型的常數(shù)是( A )。
A)32768
B)0
C)037
D)0xAF(11101111=128+64+32+8+4+2+1)
1.下面四個選項(xiàng)中,均不是c語言關(guān)鍵字的選項(xiàng)是( A )。
A) define IF Type
B) getc char printf
C) include scanf case
D) while go pow
2.C語言中的標(biāo)識符只能由字母、數(shù)字和下劃線三種字符組成,且第一個字符(C)。
A) 必須為字母
B) 必須為下劃線
C) 必須為字母或下劃線
D) 可以是字母、數(shù)字和下劃線中任一種字符
3.下列四個選項(xiàng)中,均是C語言關(guān)鍵字的選項(xiàng)是( B )。
A) auto enum include
B) switchtypedefcontinue
C) signed union scanf
D) ifstruct type
4.下面四個選項(xiàng)中,均是不合法的用戶標(biāo)識符的選項(xiàng)是( C )。
A) AP_0 do
B) floatla0_A
C) b-agotoint
D) _123tempint
5.以下有4組用戶標(biāo)識符,其中合法的一組是(C)。
A) For-sub Case
B) 4dDO Size
C) f2_G3IFabc
D) WORDvoiddefine
6.下列選項(xiàng)中,合法的C語言關(guān)鍵字是( D )。
A) VAR
B) cher
C) integer
D) default
7.下面四個選項(xiàng)中,均是合法整型常量的選項(xiàng)是( A )。
A) 160 -0xffff011
B) -0xcdf 01a0xe
C) –01986012 0668
D) -0x48a 0x2e5 0xe
8.下面四個選項(xiàng)中,均是正確的八進(jìn)制數(shù)或十六進(jìn)制數(shù)的選項(xiàng)是( C )。
A) -100x8f-011
B) 0abc-017 0xc
C) 010 -0x11 0xf1
D) 0a12-0x123 -0xa
9.設(shè)C語言中,一個int型數(shù)據(jù)在內(nèi)存中占2個字節(jié),則unsigned int型數(shù)據(jù)的取值范圍為( C )。
A) 0~255
B) 0~32767
C) 0~65535
D) 0~2147483647
10.在C語言中,不正確的int類型的常數(shù)是( A )。
A)32768
B)0
C)037
D)0xAF(11101111=128+64+32+8+4+2+1)