绗?鍛?绋嬪簭璁捐涓嶤++姒傝堪

1.1 绋嬪簭璁捐鍜孋++闅忓爞娴嬮獙

1銆丆++鏄竴绉嶏紙 锛夎绠楁満璇█銆?br>    A銆侀潰鍚戣繃绋嬬殑
    B銆侀潰鍚戝璞$殑
    C銆佹暟鎹簱缂栫▼
    D銆佺綉缁滅紪绋?br>
1.2璁$畻鏈鸿瑷€鐨勫垎绫婚殢鍫傛祴楠?/strong>

1銆佺紪鍐機++绋嬪簭鐨勪竴鑸楠や緷娆℃槸锛?锛夈€?br>    A銆佺紪杈戙€佽皟璇曘€佺紪璇戙€佽繍琛?br>    B銆佺紪杈戙€佺紪璇戙€佽繛鎺ャ€佽繍琛?br>    C銆佺紪璇戙€佽皟璇曘€佺紪杈戙€佽繍
    D銆佺紪璇戙€佺紪杈戙€佽繛鎺ャ€佽繍琛?br>
1.3HelloWorld鍜岀紪绋嬬幆澧冮殢鍫傛祴楠?/strong>

1銆佷笅鍒楀摢琛岀▼搴忕殑浣滅敤鏄湪灞忓箷涓婃樉绀衡€淗ello world鈥濊繖鍙ヨ瘽銆?br>    A銆?include<iostream>
    B銆乽sing namespace std;
    C銆乧out<<" Hello world ";
    D銆乺eturn 0;

2銆丆++涓殑main()鍑芥暟鏈変笖鍙兘鏈変竴涓€?br>
3銆乵ain鍑芥暟鐨勪功鍐欎腑锛宮ain鍚庨潰绱ц窡涓€瀵瑰渾鎷彿锛岄噷闈㈠彲浠ヤ粈涔堥兘涓嶅啓锛屽啀鍚庨潰鏄竴瀵瑰ぇ鎷彿锛屽叾涓啓绋嬪簭銆?br>
1.4绋嬪簭閿欎簡鎬庝箞鍔為殢鍫傛祴楠?/strong>

1銆佸湪DEV-C++鐜涓嬬紪鍐欑▼搴忥紝濡備綍鐭ラ亾璇硶涓婃湁閿欙紵
    A銆佽繍琛屾椂鏄剧ず閿欒缁撴灉銆?br>    B銆佺紪璇戞椂鍦ㄢ€滅紪璇戝櫒鈥濈獥鍙f樉绀洪敊璇俊鎭€?br>    C銆佺紪璇戞椂鍦ㄢ€滆皟璇曗€濈獥鍙f樉绀洪敊璇俊鎭€?br>    D銆佺紪璇戞椂鍦ㄢ€滆祫婧愮獥鍙b€濇樉绀洪敊璇俊鎭€?br>
2銆佸浣曞揩閫熸壘鍒伴敊璇殑浣嶇疆锛?br>    A銆侀€愯闃呰绋嬪簭銆?br>    B銆侀€愯闃呰閿欒淇℃伅銆?br>    C銆佸拰涔︿笂鐨勭▼搴忛€愬瓧鏍稿銆?br>    D銆佸弻鍑荤紪璇戦敊璇俊鎭殑绗?琛岋紝鍏夋爣浼氬仠鐣欏湪鍙兘鍑洪敊鐨勮銆?br>
1.5瀹炰緥:鐢熸棩璐哄崱闅忓爞娴嬮獙

1銆佽鍦ㄧ▼搴忎腑鐢╝ddress琛ㄧず閫氫俊鍦板潃锛岃鏄庝负char address[100]; 鑻ユ兂杈撳叆璞?No.28, Xian Ning Xi Road"杩欐牱锛堝崟璇嶉棿鏈夌┖鏍硷級鐨勫湴鍧€锛屽簲璇ヤ娇鐢ㄤ笅鍒楀摢涓鍙ワ紵
    A銆乧in>>address;
    B銆乧in>>address(s,100);
    C銆乧in.getline(s,100);
    D銆乧in.getline(address,100);

1.6瀹炰緥:鍔犳硶璁$畻鍣ㄩ殢鍫傛祴楠?/strong>

1銆佽嫢鎯崇敤width鍜宧eight琛ㄧず灞忓箷鐨勫搴﹀拰楂樺害锛堝崟浣嶏細鍍忕礌锛屾暣鏁帮級锛屽湪C++涓娇鐢ㄤ笅鍒楀摢涓鍙ユ潵澹版槑锛?br>    A銆乮nt width, height;
    B銆乨ouble width, height;
    C銆乧har width, height;
    D銆乧har width[40], height[40];

1.7瀹炰緥:璁$畻瀛樻鏈伅闅忓爞娴嬮獙

1銆丆++涓娇鐢ㄦ暟瀛﹀嚱鏁帮紝闇€瑕佸寘鍚殑澶存枃浠舵槸( )銆?br>    A銆乮ostream
    B銆乧math
    C銆乶amespace
    D銆乵ain

1.8C++绋嬪簭鐨勫熀鏈绱犻殢鍫傛祴楠?/strong>

1銆丆++涓殑姣忎竴鏉¤鍙ュ悗闈㈤兘蹇呴』鍐欏垎鍙枫€?br>
2銆丆++涓娇鐢ㄥ彉閲忥紝蹇呴』鍏堝0鏄庯紝鍚庝娇鐢ㄣ€?br>
绗?鍛ㄥ崟鍏冩祴璇?/strong>

1銆佷笅鍒楀摢椤逛笉鏄疌++鐨勮鍙ワ紵
    A銆乧=a+b
    B銆乤;
    C銆乤+b;
    D銆乧=a+b;

2銆佽鏁村瀷鍙橀噺a,b,c宸茬粡澹版槑锛屼笅鍒楀摢椤硅鍙ョ殑椤哄簭鏄纭殑锛?br>    A銆乧in>>a>>b; c=a+b; cout<<c;
    B銆乧=a+b; cin>>a>>b; cout<<c;
    C銆乧out<<c; c=a+b; cin>>a>>b;
    D銆乧=a+b; cout<<c; cin>>a>>b;

3銆佷笅鍒楀摢涓鍙蜂笉鏄疌++鐨勫叧閿瓧锛?br>    A銆乨istance
    B銆乮nt
    C銆乽sing
    D銆乺eturn

4銆佷笅鍒楀摢涓笉鏄疌++鍚堟硶鐨勬爣璇嗙?
    A銆?w
    B銆?width
    C銆亃hao@xjtu
    D銆乮nt_stu
    E銆乢height
    F銆亀3
    G銆乢0101
    H銆乢2015

5銆丆++绋嬪簭涓璫out<<endl;鐨勪綔鐢ㄦ槸锛?锛夈€?br>    A銆佽〃绀烘崲琛岋紙杈撳嚭鎹㈣绗︼級銆?br>    B銆佽〃绀虹▼搴忕粨鏉熴€?br>    C銆佽〃绀鸿鍙ョ粨鏉熴€?br>    D銆佽〃绀鸿緭鍑虹粨鏉熴€?br>
6銆佽嫳鏂囧崟璇峵erminating鐨勫惈涔夋槸锛?锛夈€?br>    A銆佺粨鏉熴€佺粓姝?br>    B銆佸鏈?br>    C銆佹ā浠?br>    D銆佹崲琛?br>
7銆丆++涓彉閲忕殑鍚嶅瓧鍙兘鐢ㄤ竴涓瓧姣嶈〃绀恒€?br>
8銆佷竴琛岀▼搴忎腑锛屽鏋滆繛缁啓浜嗕袱涓垎鍙凤紝缂栬瘧鏃朵細鍑洪敊銆?br>
9銆丆++涓娇鐢ㄥ彉閲忥紝蹇呴』鍏堝0鏄庛€?br>
10銆丆++涓殑杈撳叆鍙互浣跨敤cin锛屼竴涓猚in鍙互杈撳叆澶氶」鏁版嵁锛屾瘡椤瑰墠闈㈠姞涓や釜澶т簬鍙枫€?br>
绗?鍛ㄧ紪绋嬩綔涓?/strong>

1銆?-1鎴戠埍C++

2銆?-2鏉ヨ嚜绯荤粺鐨勯棶鍊?br>
3銆?-3涔樻硶璁$畻鍣?br>
4銆?-4鍗曚綅鎹㈢畻

5銆?-5骞虫柟鏍硅绠楀櫒

绗?鍛?绠€鍗曚俊鎭殑琛ㄧず鍜屽熀鏈繍绠?/strong>

2.1鏁版嵁绫诲瀷闅忓爞娴嬮獙

1銆?2浣嶇郴缁熶腑锛孋++鐨刬nt鍨嬫暟鎹崰鐨勭┖闂翠竴鑸负_______瀛楄妭銆?br>    A銆?
    B銆?
    C銆?
    D銆?0

2.2甯搁噺鍜屽彉閲忛殢鍫傛祴楠?/strong>

1銆佷笅鍒楀摢涓槸C++璇█鐨勫悎娉曠殑瀛楃甯搁噺__________銆?br>    A銆?\0"
    B銆?054'
    C銆?\x89'
    D銆?\092'

2.3绠楁湳杩愮畻鍜岃嚜澧炶嚜鍑忚繍绠楅殢鍫傛祴楠?/strong>

1銆佽n=10锛宨=4锛屽垯鎵ц璧嬪€艰繍绠梟=n%(i-1)鍚庯紝n鐨勫€兼槸锛?锛夈€?br>    A銆?
    B銆?
    C銆?
    D銆?

2銆佽嚜澧炪€佽嚜鍑忚繍绠楀彲浠ョ敤浜庡彉閲忥紝涔熷彲浠ョ敤浜庡父閲忓拰琛ㄨ揪寮忋€?br>
2.4鍏崇郴杩愮畻闅忓爞娴嬮獙

1銆佷笅闈㈠摢涓€C++ 璇█琛ㄨ揪寮忎笉鑳芥纭〃绀烘暟瀛﹀叧绯籥锛渪鈮銆傞€夐」涓猴紙 锛夈€?br>    A銆乤<x&&x<=b
    B銆亁<=b&& a<x
    C銆?(a>=x)&&!(x>b)
    D銆乤<x<=b

2.5閫昏緫杩愮畻绗﹂殢鍫傛祴楠?/strong>

1銆佽嫢鏈塧=1锛宐=2锛屽垯琛ㄨ揪寮廰+1==b鐨勫€间负锛?锛夈€?br>    A銆?
    B銆?
    C銆?
    D銆?

2.6浣嶈繍绠楅殢鍫傛祴楠?/strong>

1銆佸湪浣嶈繍绠椾腑锛屾搷浣滄暟姣忓彸绉讳竴浣嶏紝鍏剁粨鏋滅浉褰撲簬__________銆?br>    A銆佹搷浣滄暟涔樹互2
    B銆佹搷浣滄暟闄や互2
    C銆佹搷浣滄暟涔樹互4
    D銆佹搷浣滄暟闄や互4

2.7鐗规畩杩愮畻绗︼紙璧嬪€艰繍绠楃銆佸瓧鑺傛暟杩愮畻绗︺€佹潯浠惰繍绠楃鍜岄€楀彿杩愮畻绗︼級闅忓爞娴嬮獙

1銆乶鐩繍绠楃鐨勫惈涔夋槸锛?锛夈€?br>    A銆佸n涓暟鎹繘琛屾搷浣?br>    B銆佸n涓暟鎹繘琛屽姞娉?br>    C銆佸n涓被鍨嬭繘琛屾暣鍚?br>    D銆佸n涓被鍨嬭繘琛岃浆鎹?br>
2銆佽嫢鏈塧=2锛宐=4锛宑=5锛屽垯鏉′欢琛ㄨ揪寮廰>b?a:b>c?a:c鐨勫€间负锛?锛夈€?br>    A銆?
    B銆?
    C銆?
    D銆?

3銆佷互涓嬮潪娉曠殑璧嬪€艰鍙ユ槸锛?锛夈€?br>    A銆乶=(i=2锛?+i);
    B銆乯++;
    C銆?+(i+1);
    D銆亁=j>0;

2.8娣峰悎杩愮畻鐨勭被鍨嬭浆鎹㈤殢鍫傛祴楠?/strong>

1銆佹湁濡備笅琛ㄨ揪寮?9/3*sqrt(4.0)/5锛屽垯璇ヨ〃杈惧紡鍊兼暟鎹被鍨嬩负锛?锛夈€?br>    A銆乮nt
    B銆乫loat
    C銆乨ouble
    D銆佷笉纭畾

绗?鍛ㄥ崟鍏冩祴璇?/strong>

1銆佽x锛寉锛寊涓烘暣鍨嬫暟锛屼笅鍒楀悇寮忎腑锛岃繍绠楃粨鏋滀笌x=y=24鐨勮〃杈惧紡鐩稿悓鐨勬槸____銆?br>    A銆亁=y=(z=8,4*6)
    B銆?x=(y=z=8,4*6)
    C銆亁=y=z=8, 4*6
    D銆亁- (y=z= 8),4*6

2銆丆++婧愮▼搴忎腑锛屼互涓嬭娉曚笉姝g‘鐨勬槸锛?锛夈€?br>    A銆佸彉閲忓0鏄庤鍙ヤ竴瀹氳缁欏彉閲忚祴鍒濆€?br>    B銆佸彉閲忓彲浠ラ殢鏃朵娇鐢紝涓嶉渶澹版槑锛屼篃涓嶉渶璇存槑鍏剁被鍨嬨€?br>    C銆侀€楀彿杩愮畻绗︾殑浼樺厛绾ф渶浣?br>    D銆丳ci鍜宲ci鏄袱涓笉鍚岀殑鏍囪瘑绗?br>    E銆佽〃杈惧紡1/4+1/4+1/4鐨勭粨鏋滀负0
    F銆佸彉閲忓繀椤诲厛澹版槑鎴栧畾涔夛紝鍚庝娇鐢ㄣ€?br>
3銆佽涓嬪垪鍙橀噺鍧囧凡姝g‘澹版槑涓篿nt锛屼笅鍒楅€夐」涓笉姝g‘鐨勮祴鍊艰〃杈惧紡鏄紙 锛夈€?br>    A銆乤=b+c=1
    B銆?+k
    C銆乶1 = n2 = n3
    D銆乲 = I == 1
    E銆乤=1,b=2,c=3,k=4

4銆佷笅鍒椾笉鍚堟硶鐨勫彉閲忓悕涓?br>    A銆乻t%udent
    B銆乻tu@xjtu
    C銆乤student
    D銆乻_student
    E銆亀ang13
    F銆乢cppclass

5銆佷笅鍒楀摢涓槸C++璇█鐨勫悎娉曠殑瀛楃甯搁噺__________銆?br>    A銆?\17'
    B銆?\017'
    C銆?c"
    D銆?\xAH'
    E銆?\092'
    F銆?\771'
    G銆?\01711'

6銆佸綋a=6,b=5鏃讹紝璇彞cout<<(a<=7 && a+b>8)<<endl;鐨勬墽琛岀粨鏋滀负____銆?br>    A銆?
    B銆?
    C銆乼rue
    D銆乫alse

7銆佽i=6锛宬=0涓嬪垪鍚勫紡涓紝杩愮畻缁撴灉涓簁=7鐨勮〃杈惧紡鏄紙 锛夈€?br>    A銆乲=++i+k;
    B銆乲=i+++k ;
    C銆乲=k+i++;
    D銆乲=++k+(++i);
    E銆乲=k+++i;

8銆佷笅鍒椾笉鍚堟硶鐨勫彉閲忓悕涓猴紙 锛夈€?br>    A銆?student
    B銆?student
    C銆?2name
    D銆乻tudent
    E銆乢student
    F銆乻tudent_name
    G銆乻tudent0

9銆佽〃杈惧紡19/4*sqrt(4.0)/5鐨勫€间负锛?锛夈€?br>    A銆?.6
    B銆?.8
    C銆?.9
    D銆?.2
    E銆?.0

10銆乮nt x=3,y=4,z=5;鍒欏€间负0鐨勮〃杈惧紡鏄痏__________銆?br>    A銆亁>y
    B銆亁<=y+1
    C銆亁!=y+z>y-z
    D銆亂%z>=y-z

11銆佽嫢x涓烘暣鍨嬪彉閲忥紝j涓哄疄鍨嬪彉閲忥紝褰撴墽琛寈=(int)j;璇彞鍚庯紝j涔熷彉涓烘暣鍨嬪彉閲忋€?br>
12銆佽嫢a涓篿nt鍨嬪彉閲忥紝宸插畾涔夛紝鍒?a=5+3)涔熸槸琛ㄨ揪寮忥紝鍏跺€间负8銆?br>
13銆佸鏋滃畾涔塱nt e=8锛沝ouble f=6.4锛実=8.9锛涳紝鍒欒〃杈惧紡 f+int(e/3*int(f+g)锛?)%4 鐨勫€间负锛?锛夈€?br>
14銆佽嫢int i=1锛宩=3锛宬锛沰=i/j锛屽垯k鐨勫崄杩涘埗鍊间负锛?锛夈€?br>
绗?鍛ㄧ紪绋嬩綔涓?/strong>

1銆佹俯搴﹁浆鎹?br>
2銆佽绠楁暟瀛﹀嚱鏁板紡鐨勫€?br>
3銆佹暟鎹殑绠€鍗曠粺璁?br>
4銆佹壘闆堕挶

5銆佸皬鍐欒浆澶у啓

绗?鍛?杩愮畻鐨勬祦绋嬫帶鍒?/strong>

3.1绋嬪簭娴佺▼鎺у埗闅忓爞娴嬮獙

1銆佺粨鏋勫寲绋嬪簭鐢变笁绉嶅熀鏈粨鏋勭粍鎴愶紝涓嶅寘鎷?br>    A銆侀『搴忕粨鏋?br>    B銆侀€夋嫨缁撴瀯
    C銆佹帶鍒剁粨鏋?br>    D銆佸惊鐜粨鏋?br>
3.2鍗曡矾鍜屽弻璺垎鏀殢鍫傛祴楠?/strong>

1銆佷笅鍒楄鍙ヤ腑閿欒鐨勬槸
    A銆乮f (a>b) cout<<a;
    B銆乮f (&&) a=m;
    C銆乮f (1) a=m; else a=n;
    D銆乮f (a>0); else a=n;

2銆佷笌鍒嗘敮璇彞鏈夊叧鐨勫叧閿瘝鏈塱f銆乪lse銆乻witch銆乧ase鍜宐reak

3.3澶氳矾鍒嗘敮闅忓爞娴嬮獙

1銆佽嫢鏈夊畾涔夆€渇loat w;int a,b;鈥濓紝鍒欏悎娉曠殑switch璇彞鏄?br>    A銆乻witch(w) { case 1.0: cout<<"1.0"; case 2.0: cout<<"2.0"; }
    B銆乻witch(a) { case 1 cout<<"1"; case 2 cout<<"2"; }
    C銆乻witch(b) { case 1: cout<<"1"; default: cout<<"default"; case 1+2: cout<<"3"; }
    D銆乻witch(a+b) { case 3: cout<<"3"; case 1+2: cout<<"1+2"; default: cout<<"default"; }

3.4宸茬煡娆℃暟寰幆闅忓爞娴嬮獙

1銆乫or寰幆璇彞鏄厛鎵ц寰幆浣撳唴鐨勮鍙ュ簭鍒楋紝鍚庡垽鏂潯浠惰〃杈惧紡銆?br>
3.5宸茬煡鏉′欢寰幆闅忓爞娴嬮獙

1銆佷笅鍒楃▼搴忔寰幆浜嗗嚑娆?int x=-9; while(++x){}
    A銆?
    B銆?
    C銆?0
    D銆佹棤闄?br>
绗?鍛ㄥ崟鍏冩祴璇?/strong>

1銆佸亣瀹氭墍鏈夊彉閲忓潎宸叉纭鏄庯紝涓嬪垪绋嬪簭娈佃繍琛屽悗锛寈鐨勫€兼槸( )銆?a=b=c=0锛?x=35锛?if (!a) x--锛?else if (b)锛?if (c) x=3锛?else x=4锛?br>    A銆?
    B銆?4
    C銆?5
    D銆?

2銆丆++璇█涓瓀hile寰幆鍜宒o...while寰幆鐨勪富瑕佸尯鍒槸锛?锛夈€?br>    A銆乨o...while鐨勫惊鐜綋鑷冲皯鏃犳潯浠舵墽琛屼竴娆?br>    B銆亀hile鐨勫惊鐜帶鍒舵潯浠舵瘮do...while鐨勫惊鐜帶鍒舵潯浠朵弗鏍?br>    C銆乨o...while鍏佽浠庡閮ㄨ浆鍒板惊鐜綋鍐?br>    D銆乨o...while鐨勫惊鐜綋涓嶈兘鏄鍚堣鍙?br>
3銆亀hile鍚庨潰鐨勨€滄潯浠惰〃杈惧紡鈥濅竴瀹氳鐢ㄤ竴瀵筥_____鎷捣鏉ャ€?br>    A銆佸渾鎷彿()
    B銆佹柟鎷彿[ ]
    C銆佽姳鎷彿{ }
    D銆佸弻寮曞彿 " "

4銆佹墽琛岃鍙ュ簭鍒楋細 int x=3锛?do { x-=2锛?cout<<x锛?}while(!(--x))锛?杈撳嚭缁撴灉鏄痏________銆?br>    A銆? -2
    B銆?
    C銆? 0
    D銆佹寰幆

5銆佸湪C++璇█涓紝鎵€璋撻€夋嫨缁撴瀯锛屽氨鏄寜鐓? )鏈夐€夋嫨鍦版墽琛岀▼搴忎腑鐨勮鍙ャ€?br>    A銆佺粰瀹氭潯浠?br>    B銆佺粰瀹氭暟鍊?br>    C銆佺粰瀹氱鍙?br>    D銆佺粰瀹氱▼搴?br>
6銆?.鍦–++璇█涓紟琛ㄧず涓€鏉¤鍙ョ粨鏉熺殑鏍囧彿鏄痏_________銆?br>    A銆?
    B銆亇
    C銆?
    D銆?/

7銆佷笅鍒楃▼搴忔鐨勮緭鍑烘槸( )銆?int a=2, b=-1, c=2锛?if(a<b) if(b<c) c=0锛?else c+=1锛?cout<<c<<endl锛?br>    A銆?
    B銆?
    C銆?
    D銆?

8銆佸綋鍦ㄧ▼搴忎腑鎵ц鍒癱ontinue璇彞鏃讹紝灏嗙粨鏉熸墍鍦ㄥ惊鐜鍙ヤ腑寰幆浣撶殑涓€娆℃墽琛屻€?br>
9銆佸綋鍦ㄧ▼搴忎腑鎵ц鍒癰reak璇彞鏃讹紝灏嗙粨鏉熸湰灞傚惊鐜被璇彞鎴杝witch璇彞鐨勬墽琛屻€?br>
10銆佺敤{}鎷捣鏉ョ殑璇彞鍙鍚堣鍙ャ€?br>
绗?鍛ㄧ紪绋嬩綔涓?/strong>

1銆?-1鎵撳嵃3涓浉閭诲瓧姣?br>
2銆?-2姝屽敱澶ц禌閫夋墜鎴愮哗璁$畻

3銆?-3鐚村瓙鍚冩

4銆?-4鎼爾闂

5銆?-5缇庡垎鎵鹃挶

绗?鍛?澶嶆潅淇℃伅鐨勮〃杈句笌澶勭悊

4.1涓€缁存暟缁勯殢鍫傛祴楠?/strong>

1銆佸紩鐢ㄤ竴涓暟缁勫厓绱犳椂锛屾暟缁勫厓绱犵殑涓嬫爣琛ㄨ揪寮忕殑绫诲瀷
    A銆佸繀椤绘槸鏁村瀷甯搁噺
    B銆佸繀椤绘槸鏁村瀷琛ㄨ揪寮?br>    C銆佸繀椤绘槸鏁村瀷甯搁噺鎴栨暣鍨嬭〃杈惧紡
    D銆佸彲浠ユ槸浠讳綍绫诲瀷鐨勮〃杈惧紡

2銆佸畾涔変竴缁存暟缁勬椂锛屽彲浠ヤ笉鍐欐暟缁勯暱搴?br>
3銆佷竴缁存暟缁勭殑涓嬫爣浠?寮€濮?br>
4.2浜岀淮鏁扮粍锛堥€夊锛夐殢鍫傛祴楠?/strong>

1銆佽嫢鏈夎鏄?int a[3][4]=;鍒欎笅闈㈡纭殑鍙欒堪鏄?br>    A銆佸彧鏈夊厓绱燼[0][0]鍙緱鍒板垵鍊?
    B銆佹璇存槑璇彞涓嶆纭?br>    C銆佹暟缁刟涓悇鍏冪礌閮藉彲寰楀埌鍒濆€硷紝浣嗗叾鍊间笉涓€瀹氫负0
    D銆佹暟缁刟涓瘡涓厓绱犲潎鍙緱鍒板垵鍊?

2銆佷笅闈㈠叧浜庝簩缁存暟缁勭殑璇存硶閿欒鐨勬槸
    A銆佸悓琛岀殑鏁版嵁鍦ㄥ唴瀛樹腑杩炵画瀛樻斁銆?br>    B銆佸鍏ㄩ儴鏁扮粍鍏冪礌閮借祴鍒濆€兼椂锛屽彲浠ヤ笉鎸囧畾鏁扮粍绗簩缁寸殑闀垮害銆?br>    C銆佷笉鑳藉皢浜岀淮鏁扮粍浣滀负涓€涓暣浣撹緭鍏ヤ笌杈撳嚭銆?br>    D銆佸皢浜岀淮鏁扮粍鐪嬩綔鏄竴缁存暟缁勬椂锛岃涓€缁存暟缁勭殑姣忎釜鍏冪礌鏈韩鍙堟槸涓€涓竴缁存暟缁勩€?br>
4.3缁撴瀯浣擄紙閫夊锛夐殢鍫傛祴楠?/strong>

1銆佸湪璇存槑涓€涓粨鏋勪綋鍙橀噺鏃讹紝绯荤粺鍒嗛厤缁欏畠鐨勫瓨鍌ㄧ┖闂存槸
    A銆佽缁撴瀯浣撲腑绗竴涓垚鍛樻墍闇€鐨勫瓨鍌ㄧ┖闂?br>    B銆佽缁撴瀯浣撲腑鏈€鍚庝竴涓垚鍛樻墍闇€鐨勫瓨鍌ㄧ┖闂?br>    C銆佽缁撴瀯浣撲腑鍗犵敤鏈€澶х┖闂寸殑鎴愬憳鎵€闇€鐨勫瓨鍌ㄧ┖闂?br>    D銆佽缁撴瀯浣撲腑鎵€鏈夋垚鍛樻墍闇€瀛樺偍绌洪棿鐨勬€诲拰

4.4鏋氫妇(瀹炰緥涓夎壊鐞冪粍鍚?闅忓爞娴嬮獙

1銆佷竴涓暣鏁拌兘鐩存帴璧嬪€肩粰鏋氫妇鍙橀噺

绗?鍛ㄥ崟鍏冩祴璇?/strong>

1銆佸凡瀹氫箟涓€涓暟缁刬nt array[10]锛屽垯瀵规鏁扮粍姝g‘鐨勫紩鐢ㄦ槸
    A銆乧out<<array[10];
    B銆乧out<<array(0);
    C銆乮nt b;b=array[0]+array;
    D銆乧out<<array[5+4];

2銆佷互涓嬮€夐」涓笉鑳芥纭祴鍊肩殑鏄?br>    A銆乧har s1[10];s1=鈥漜best鈥?
    B銆乧har s2[]={鈥榗鈥? 鈥檅鈥? 鈥檈鈥? 鈥檚鈥? 鈥檛鈥檥;
    C銆乧har s3[10] =鈥漜best鈥?
    D銆乧har s4[7] ={"cbestn"};

3銆佽鏈夋暟缁勫畾涔夛細char array[]锛?China";锛屽垯鏁扮粍array鎵€鍗犵殑绌洪棿涓?br>    A銆?涓瓧鑺?br>    B銆?涓瓧鑺?br>    C銆?涓瓧鑺?br>    D銆?涓瓧鑺?br>
4銆佸湪涓嬮潰鐨勪竴缁存暟缁勫畾涔変腑锛屽摢涓€涓湁璇硶閿欒
    A銆乮nt a[]={1,2,3};
    B銆乮nt a[10]=;
    C銆乮nt a[];
    D銆乮nt a[5];

5銆佸凡鐭ユ灇涓剧被鍨嬪畾涔夎鍙ヤ负锛?enum Token { NAME, NUMBER, PLUS=5, MINUS, PRINT=10 }; 鍒欎笅鍒楀彊杩颁腑閿欒鐨勬槸
    A銆佹灇涓惧父閲廚AME鐨勫€间负1
    B銆佹灇涓惧父閲廙INUS鐨勫€间负6
    C銆佹灇涓惧父閲廚UMBER鐨勫€间负1
    D銆佹灇涓惧父閲廝RINT鐨勫€间负10

6銆佸亣瀹氬惊鐜綋涓换鎰忎竴涓暟缁勫厓绱犵敤str[i]琛ㄧず锛屼互涓嬪摢涓〃杈惧紡鍙互鍒ゆ柇杩欎釜鍏冪礌鏄惁鏄ぇ鍐欏瓧姣?br>    A銆乻tr[i] >= 'Z' && str[i] <= 'A'
    B銆乻tr[i] <= 'Z' && str[i] >= 'A'
    C銆乻tr[i] <= 'Z' || str[i] >= 'A'
    D銆?A' <= str[i] <= 'Z'

7銆佷笅闈㈢▼搴忕殑杩愯缁撴灉鏄?#include<iostream > using namespace std; int main() { int a[8]={25,48,32,85,64,18,48,29}; int max,min; max=min=a[0]; for(int i=0; i<8; i++) { if(max<a[i]) max=a[i]; if(min>a[i]) min=a[i]; } cout<<"max:"<<max<<endl; cout<<"min:"<<min<<endl; return 0; }
    A銆乵ax:85 min:18
    B銆乵ax:48 min:25
    C銆?5 18
    D銆乵ax:85min:18

8銆佺幇鏈夋暣鍨嬫暟缁刬nt a[]={1,2,3,4,5}锛涘垯a[5]=5

9銆佷竴缁存暟缁勭殑涓嬫爣浠?寮€濮?br>
10銆佸凡鐭ユ暟缁刢瀹氫箟涓簂ong c[10];鍒檆鐨勫厓绱犱釜鏁版槸_______銆?br>
11銆佸凡鐭ユ暟缁刢瀹氫箟涓簂ong c[10];鍒檆鐨勬渶澶т笅鏍囨槸_________銆?br>
绗?鍛ㄧ紪绋嬩綔涓?/strong>

1銆佹伜鎾掑姞瀵?br>
2銆佹槦鏈熻浆鎹?br>
绗?鍛?闂鐨勬ā鍧楀寲姹傝В

5.1 妯″潡鍖栫▼搴忚璁¢殢鍫傛祴楠?/strong>

1銆佸叧浜嶤++鍑芥暟鐨勮娉曞摢涓槸涓嶆纭殑锛?br>    A銆佷娇鐢ㄥ嚱鏁板彲浠ラ檷浣庣▼搴忕殑澶嶆潅绋嬪害
    B銆佷竴涓狢++绋嬪簭鍙互涓嶄娇鐢ㄥ嚱鏁?br>    C銆佸嚱鏁板繀椤绘湁鍑芥暟鍚?br>    D銆佸嚱鏁板彲浠ヤ娇寰楄蒋浠剁殑寮€鍙戝拰缁存姢鏇村鏄?br>
5.2 鍑芥暟鐨勫畾涔夐殢鍫傛祴楠?/strong>

1銆佸叧浜庡嚱鏁扮殑瀹氫箟涓嶆纭殑鏄摢椤癸紵
    A銆佸嚱鏁板彲浠ユ病鏈夎繑鍥炲€?br>    B銆佸嚱鏁板彲浠ユ病鏈夊弬鏁?br>    C銆佸嚱鏁颁綋鍐欏湪涓€瀵瑰ぇ鎷彿涓紝褰撳嚱鏁颁綋鍙湁涓€琛岃鍙ユ椂锛屽ぇ鎷彿鍙互鐪佺暐
    D銆佸嚱鏁扮殑褰㈠弬鏄眬閮ㄥ彉閲忥紝鍙兘鍦ㄥ嚱鏁颁腑浣跨敤

5.3 鍑芥暟鐨勫0鏄庨殢鍫傛祴楠?/strong>

1銆佸叧浜庣敤鎴疯嚜瀹氫箟鍑芥暟鐨勪娇鐢紝涓嬪垪鍝釜璇存硶鏄纭殑锛?br>    A銆佸嚱鏁板湪璋冪敤鍓嶅繀椤诲厛瀹氫箟
    B銆佸嚱鏁板湪浣跨敤鍓嶅繀椤诲厛澹版槑
    C銆佸嚱鏁板湪浣跨敤鍓嶅繀椤诲厛瀹氫箟鎴栧0鏄?br>    D銆佹湁浜嗗嚱鏁扮殑瀹氫箟锛屽彲浠ヤ笉澹版槑

5.4 鍑芥暟鐨勮皟鐢ㄦ牸寮忛殢鍫傛祴楠?/strong>

1銆佸叧浜庡嚱鏁扮殑璋冪敤锛屼笅鍒楀摢椤硅娉曟槸姝g‘鐨勶紵
    A銆佸嚱鏁扮殑褰㈠弬鍜屽疄鍙傛槸閫氳繃鍙橀噺鐨勫悕瀛楃粨鍚堢殑锛屾墍浠ラ『搴忎笉瑕佹眰涓€鑷达紝浣嗕釜鏁板繀椤讳竴鑷淬€?br>    B銆佸嚱鏁扮殑瀹炲弬鍙互鏄父閲忋€佸彉閲忔垨琛ㄨ揪寮忋€?br>    C銆佸鏋滃嚱鏁扮殑瀹炲弬鏄彉閲忥紝鍓嶉潰涔熷繀椤诲啓鍑虹被鍨嬪悕銆?br>    D銆佸嚱鏁扮殑璋冪敤鍙兘鍑虹幇鍦ㄨ〃杈惧紡涓紝涓嶈兘鍗曠嫭鍔犲垎鍙锋瀯鎴愯鍙ャ€?br>
5.5 鍙傛暟鐨勪紶閫掓柟寮忛殢鍫傛祴楠?/strong>

1銆佸叧浜庡嚱鏁拌皟鐢ㄧ殑鍊间紶閫掞紝涓嬪垪鍝」鏄纭殑锛?br>    A銆佸€间紶閫掔殑浼犺緭鏂瑰悜鏄崟鍚戠殑锛屼粠涓昏皟鍑芥暟鍒拌璋冨嚱鏁般€?br>    B銆佸€间紶閫掔殑浼犺緭鏂瑰悜鏄崟鍚戠殑锛屼粠琚皟鍑芥暟鍒颁富璋冨嚱鏁般€?br>    C銆佸€间紶閫掔殑鏁版嵁浼犺緭鏂瑰悜鏄弻鍚戠殑銆?br>    D銆佸€间紶閫掓椂锛屽疄鍙傚拰褰㈠弬浣跨敤鐩稿悓鐨勫瓨鍌ㄧ┖闂淬€?br>
5.5 鍙傛暟鐨勪紶閫掓柟寮忛殢鍫傛祴楠?/strong>

1銆佸叧浜庡嚱鏁拌皟鐢ㄧ殑寮曠敤浼犻€掞紝涓嬪垪鍝」鏄纭殑锛?br>    A銆佸紩鐢ㄤ紶閫掔殑浼犺緭鏂瑰悜鏄崟鍚戠殑锛屼粠涓昏皟鍑芥暟鍒拌璋冨嚱鏁般€?br>    B銆佸紩鐢ㄤ紶閫掔殑浼犺緭鏂瑰悜鏄崟鍚戠殑锛屼粠琚皟鍑芥暟鍒颁富璋冨嚱鏁般€?br>    C銆佸紩鐢ㄤ紶閫掔殑瀹炲弬鍜屽舰鍙備娇鐢ㄧ浉鍚岀殑鍙橀噺鍚嶃€?br>    D銆佸紩鐢ㄤ紶閫掓椂锛屽疄鍙傚拰褰㈠弬浣跨敤鐩稿悓鐨勫瓨鍌ㄧ┖闂淬€?br>
5.6 涓哄舰鍙傛寚瀹氶粯璁ゅ€奸殢鍫傛祴楠?/strong>

1銆丆++涓叧浜庢湁榛樿鍊肩殑褰㈠弬锛屾纭殑鎻忚堪鏄? )銆?br>    A銆佽缃粯璁ゅ舰鍙傚€兼椂锛屽彲浠ュ湪鍑芥暟鐨勫0鏄庡拰瀹氫箟涓悓鏃惰缃粯璁ゅ€笺€?br>    B銆佸彧鑳藉湪鍑芥暟瀹氫箟鏃惰缃粯璁ゅ舰鍙傚€笺€?br>    C銆佸簲璇ヤ粠鍙宠竟鐨勫舰鍙傚紑濮嬩緷娆″悜宸﹁缃粯璁ゅ舰鍙傚€笺€?br>    D銆佹墍鏈夊弬鏁板繀椤诲叏閮ㄨ缃粯璁ゅ€笺€?br>
5.7 鏁扮粍鍚嶄綔涓哄嚱鏁扮殑鍙傛暟闅忓爞娴嬮獙

1銆佷富鍑芥暟涓湁澹版槑璇彞 int a[100], n=5; 涓嬪垪鍝粍瀹炲弬鍜屽舰鍙傜殑瀵瑰簲鏄纭殑锛?br>    A銆乫(a,n); int f(int a, int n);
    B銆乫(a[100], n); int f(int a[], int n);
    C銆乫(a, n); int f(int a[], int n);
    D銆乫(a[100], n); int f(int a[100], int n);

5.8 缁撴瀯浣撳彉閲忎綔涓哄嚱鏁扮殑鍙傛暟锛堥€夊锛夐殢鍫傛祴楠?/strong>

1銆佹湁缁撴瀯浣揝TU濡備笅锛?struct STU{ char name[20]; char number[10]; int score; }; stu鏄疭TU绫诲瀷鐨勫彉閲忋€?涓嬪垪瀹炲弬鍜屽舰鍙傜殑缁撳悎鍝」鏄纭殑锛?br>    A銆乫( stu ); void f(STU zhang[] ) ;
    B銆乫(stu.name); void f(STU zhang);
    C銆乫(stu.name); void f(STU zhang.name);
    D銆乫(stu.name); void f(char name[20]);

绗?鍛ㄥ崟鍏冩祴璇?/strong>

1銆佸亣瀹氬嚱鏁板畾涔変负锛?void fx(int n, double x ){ 鈥?} 閭d箞锛屾纭殑璋冪敤璇彞鏄痏____銆?br>    A銆乫x(x, n); //x,n鏄凡瀹氫箟鐨刬nt,double鍙橀噺
    B銆乫x(int y, double m);
    C銆乲=fx(10,19.8);
    D銆乿oid fx(n, x);

2銆佸湪涓€涓狢++绋嬪簭涓紝main鍑芥暟_____銆?br>    A銆佸拰鏅€氬嚱鏁颁竴鏍凤紝鍙互鍦ㄤ唬鐮佷富浣撶殑浠讳綍浣嶇疆鍑虹幇銆?br>    B銆佸繀椤诲嚭鐜板湪鍥哄畾浣嶇疆
    C銆佸繀椤诲嚭鐜板湪鎵€鏈夋櫘閫氬嚱鏁颁箣鍚?br>    D銆佸繀椤诲嚭鐜板湪鎵€鏈夋櫘閫氬嚱鏁颁箣鍓?br>
3銆佸畾涔夊嚱鏁扮殑鐩殑鏄?br>    A銆佹彁楂樼▼搴忕殑鍙鎬?br>    B銆佹彁楂樼▼搴忕殑鎵ц鏁堢巼
    C銆佸噺灏戠▼搴忕殑绡囧箙
    D銆佸噺灏戠▼搴忔枃浠跺崰鐢ㄧ殑鍐呭瓨绌洪棿

4銆佷互涓嬪摢涓嚱鏁板0鏄庢槸姝g‘鐨勶紵
    A銆乿oid play(int a, int b)锛?br>    B銆乿oid play(a:Integer, b:Integer)锛?br>    C銆乿oid play(int a, b) 锛?br>    D銆丼ub play(a as integer, b as integer)锛?br>
5銆佸嚱鏁扮殑杩斿洖鍊肩被鍨嬫槸______鍐冲畾鐨勩€?br>    A銆佺敱瀹氫箟鍑芥暟鏃舵墍鎸囧畾鐨勮繑鍥炲€肩被鍨?br>    B銆佺敱璋冪敤璇ュ嚱鏁扮殑涓昏皟鍑芥暟绫诲瀷
    C銆佺敱return璇彞涓殑琛ㄨ揪寮忕被鍨?br>    D銆佸湪璋冪敤鍑芥暟鏃朵复鏃?br>
6銆佸亣瀹氬嚱鏁板畾涔変负锛?void fun(char ch, float x ){ 鈥?} 閭d箞锛屾纭殑璋冪敤璇彞鏄?br>    A銆乫un(32, 32);
    B銆乫un("abc", 3.0);
    C銆乫un('65', 2.8);
    D銆乼=fun('D', 16.5);

7銆佺▼搴忎腑鐨勫叾浠栧嚱鏁板彲浠ヨ皟鐢ㄤ富鍑芥暟銆?br>
8銆佷竴涓▼搴忔湁涓斿彧鏈変竴涓富鍑芥暟銆?br>
9銆佸嚱鏁板0鏄庡氨鏄嚱鏁板畾涔夈€?br>
10銆丆++绋嬪簭鎬绘槸浠庢渶鍏堝畾涔夌殑鍑芥暟寮€濮嬫墽琛屻€?br>
绗?鍛ㄧ紪绋嬩綔涓?/strong>

1銆佺紪鍐欏瓧绗︿覆鍙嶈浆鍑芥暟mystrrev

2銆佺紪鍐欎竴缁勬眰鏁扮粍涓渶澶ф渶灏忓厓绱犵殑鍑芥暟

3銆佺紪鍐欏嚱鏁板垽鏂竴涓暣鏁版槸鍚︿负绱犳暟

4銆佺紪鍐欏嚱鏁板幓闄ゅ瓧绗︿覆涓寘鍚殑闈炲瓧姣嶅瓧绗?涓嶅寘鎷┖鏍?锛屽苟灏嗗皬鍐欏瓧姣嶈浆鎹㈡垚澶у啓瀛楁瘝

5銆佺紪鍐欏嚱鏁拌绠椾竴涓嫳鏂囧彞瀛愪腑鐨勫崟璇嶄釜鏁?br>
绗?鍛?闂鐨勬ā鍧楀寲姹傝В锛?锛夆€斺€旂壒娈婂嚱鏁?/strong>

6.1 閫掑綊鍑芥暟闅忓爞娴嬮獙

1銆侀€掑綊鍑芥暟鏄紙 锛夈€?br>    A銆佷娇鐢ㄤ簡閫掓帹鍏紡鐨勫嚱鏁?br>    B銆佺洿鎺ユ垨闂存帴璋冪敤鑷繁鐨勫嚱鏁?br>    C銆佷娇鐢ㄤ簡鏃犻檺寰幆鐨勫嚱鏁?br>    D銆佸叿鏈夎繑鍥炲€肩殑鍑芥暟

6.2 鍐呰仈鍑芥暟闅忓爞娴嬮獙

1銆佸唴鑱斿嚱鏁版槸锛?锛夈€?br>    A銆佸湪鍑芥暟涓畾涔夌殑鍑芥暟
    B銆佸畾涔夋垨澹版槑鏃讹紝鍦ㄨ繑鍥炲€肩被鍨嬪墠浣跨敤浜哻onst鍏抽敭瀛楃殑鍑芥暟浜?br>    C銆佸畾涔夋垨澹版槑鏃讹紝鍦ㄨ繑鍥炲€肩被鍨嬪墠浣跨敤浜唖tatic鍏抽敭瀛楃殑鍑芥暟浜?br>    D銆佸畾涔夋垨澹版槑鏃讹紝鍦ㄨ繑鍥炲€肩被鍨嬪墠浣跨敤浜唅nline鍏抽敭瀛楃殑鍑芥暟

6.3 鍑芥暟閲嶈浇闅忓爞娴嬮獙

1銆佹湁鍑芥暟鐨勫0鏄?void f(int a[],int n); 涓嬪垪鍝釜鍑芥暟鐨勫0鏄庝笉鑳芥瀯鎴愯鍑芥暟鐨勯噸杞姐€?br>    A銆乮nt f(int a[],int n);
    B銆乿oid f(int a[]);
    C銆乮nt f(int a, int b, int c);
    D銆乿oid f(char a[],int n);

2銆佸叧浜庡嚱鏁扮殑閲嶈浇锛屼笅鍒楀摢涓娉曟槸姝g‘鐨勶紵
    A銆佸嚱鏁板悕鐩稿悓鐨勫嚱鏁版瀯鎴愰噸杞?br>    B銆佸弬鏁颁釜鏁颁笉鍚岀殑鍑芥暟鏋勬垚閲嶈浇
    C銆佸弬鏁扮被鍨嬩笉鍚岀殑鍑芥暟鏋勬垚閲嶈浇
    D銆佸嚱鏁板悕鐩稿悓锛岃€屽弬鏁扮殑涓暟鎴栧弬鏁扮殑绫诲瀷涓嶅悓鐨勫嚱鏁版瀯鎴愰噸杞?br>
6.4 鍙橀噺鐨勪綔鐢ㄥ煙鍜屽瓨鍌ㄧ被鍨嬮殢鍫傛祴楠?/strong>

1銆佷笅鍒楃▼搴忕殑鎵ц缁撴灉鏄紙 锛夈€?int f(int &a) { int b=0锛泂tatic int c=3; b++; c++锛?return (a+b+c); } int main() { int a=2,i; for(i=0;i<3;i++) cout<<f(a)锛?}
    A銆?7 7 7
    B銆? 8 9
    C銆? 9 11
    D銆? 10 13

绗?鍛ㄥ崟鍏冩祴璇?/strong>

1銆佸亣瀹氬凡缁忓畾涔変簡涓€涓湁杩斿洖鍊肩殑鍑芥暟锛岄偅涔堣鍑芥暟璋冪敤涓嶅彲浠ュ仛鐨勬槸________
    A銆佷綔涓轰竴涓嚱鏁扮殑褰㈠弬
    B銆佷綔涓轰竴涓嚱鏁扮殑瀹炲弬
    C銆佸嚭鐜板湪琛ㄨ揪寮忎腑
    D銆佷綔涓虹嫭绔嬬殑璇彞瀛樺湪

2銆佸紩鍏ュ唴鑱斿嚱鏁扮殑鐩殑鏄负浜哶_____銆?br>    A銆佹彁楂樺嚱鏁拌皟鐢ㄧ殑鏁堢巼
    B銆佽妭鐪佸唴瀛樼┖闂?br>    C銆佹柟渚垮彉閲忕殑浣跨敤
    D銆佹墿澶у眬閮ㄥ彉閲忕殑浣跨敤鑼冨洿

3銆佷笅鍒楄娉曚腑涓嶆纭殑鏄細
    A銆佸嚱鏁板繀椤绘湁杩斿洖鍊?br>    B銆佸嚱鏁板€兼槸鐢眗eturn璇彞杩斿洖缁欎富璋冨嚱鏁扮殑
    C銆乺eturn璇彞鍚庣殑鎷彿鍙鍙笉瑕?br>    D銆佸鏋滃嚱鏁版湁杩斿洖鍊硷紝閭d箞瀹冪殑绫诲瀷鏄‘瀹氱殑

4銆佸湪涓€涓▼搴忎腑锛屽鏋滃嚱鏁癴A璋冪敤浜嗗嚱鏁?fB锛屽嚱鏁癴B鍙堣皟鐢ㄤ簡鍑芥暟fA锛岄偅涔坃_____
    A銆佺О涓哄嚱鏁扮殑闂存帴閫掑綊璋冪敤
    B銆佺О涓哄嚱鏁扮殑鐩存帴閫掑綊璋冪敤
    C銆佺О涓哄嚱鏁扮殑寰幆璋冪敤
    D銆佽繖鏍疯皟鐢ㄦ柟寮忔槸涓嶅厑璁哥殑

5銆佺敱inline淇グ鐨勬槸______銆?br>    A銆佸唴鑱斿嚱鏁?br>    B銆佸鑱斿嚱鏁?br>    C銆佸畯瀹氫箟
    D銆佽皟鐢ㄥ嚱鏁板畾涔?br>
6銆佸綋缁欏嚱鏁扮殑鍙傛暟璁剧疆榛樿鍊兼椂锛屾纭殑璇存硶鏄痏___________銆?br>    A銆佽嫢缁欐煇涓€鍙傛暟璁剧疆浜嗛粯璁ゅ€硷紝閭d箞鍦ㄥ弬鏁拌〃涓叾鍚庢墍鏈夌殑鍙傛暟閮藉繀椤讳篃璁剧疆榛樿鍊?br>    B銆佽嫢缁欐煇涓€鍙傛暟璁剧疆浜嗛粯璁ゅ€硷紝閭d箞鍦ㄥ弬鏁拌〃涓叾鍓嶆墍鏈夌殑鍙傛暟閮藉繀椤讳篃璁剧疆榛樿鍊?br>    C銆佷换浣曟儏鍐典笅锛屽嚱鏁拌皟鐢ㄦ椂鍧囧彲涓嶅垪鍑哄凡璁剧疆榛樿鍊肩殑鍙傛暟
    D銆佺粰鍑芥暟鐨勫弬鏁拌缃粯璁ゅ€煎彲浠ユ彁楂樼▼搴忚繍琛屾晥鐜?br>
7銆佸叧浜嶤++鍑芥暟鐨勫彊杩颁腑锛屾纭殑鏄?br>    A銆佸嚱鏁板湪琚皟鐢ㄤ箣鍓嶅繀椤诲厛澹版槑鎴栧畾涔?br>    B銆佹瘡涓嚱鏁拌嚦灏戣鏈変竴涓弬鏁?br>    C銆佸嚱鏁颁笉鑳借嚜宸辫皟鐢ㄨ嚜宸?br>    D銆佹瘡涓嚱鏁伴兘蹇呴』杩斿洖涓€涓€?br>
8銆佷竴涓棶棰樼敤閫掑綊鏂规硶瑙e喅姣斾笉鐢ㄩ€掑綊杩愯鏁堢巼鏇撮珮銆?br>
9銆佸弬鏁颁釜鏁扮被鍨嬮兘鐩稿悓锛屼絾杩斿洖鍊肩被鍨嬩笉鍚岀殑涓や釜鍑芥暟鍙互鍚屽悕閲嶈浇銆?br>
10銆佸綋鍙橀噺瓒呭嚭瀹冪殑浣滅敤鍩熸椂灏变竴瀹氫細琚攢姣併€?br>
11銆佸疄鍙傜殑鏁版嵁绫诲瀷蹇呴』涓庡舰鍙傜殑鐩稿悓銆?br>
12銆佸綋闇€瑕佷粠鍑芥暟涓繑鍥炲涓€兼椂鍙互浣跨敤鍏ㄥ眬鍙橀噺銆?br>
绗?鍛ㄧ紪绋嬩綔涓?/strong>

1銆侀€掑綊鐚村瓙鎽樻

绗?鍛?鎸夊潃鎿嶄綔锛?锛夆€斺€旀寚閽堛€佸彉閲忓拰鍑芥暟

7.1 浠€涔堟槸鎸囬拡闅忓爞娴嬮獙

1銆丆++涓殑鎸囬拡鎸囩殑鏄紙 锛夈€?br>    A銆佸瓨鍌ㄥ崟鍏冪殑鍦板潃
    B銆佸瓨鍦ㄥ瓨鍌ㄥ崟鍏冧腑鏁版嵁
    C銆佸悕瀛楀彨pointer鐨勫彉閲?br>    D銆佸彉閲忓悕鐨勫埆绉?br>
7.2鎸囬拡鍜屽彉閲忕殑鍏崇郴闅忓爞娴嬮獙

1銆佽嫢鏈夊0鏄庤鍙?int a, *p=&a; 鍒?*p=2015; 鐨勬剰涔夋槸锛?锛夈€?br>    A銆佺粰鎸囬拡鍙橀噺p璧嬪€?br>    B銆佽缃寚閽堝彉閲弍鐨勫湴鍧€
    C銆佺浉褰撲簬p=p*2015;
    D銆佺浉褰撲簬a=2015;

2銆佷笅鍒楀摢鍙ユ槸鎸囬拡鍙橀噺鐨勫0鏄庯紵
    A銆乧har s;
    B銆乧har *p;
    C銆?p=&s锛?br>    D銆?p='a';

7.3鎸囬拡浣滀负鍑芥暟鐨勫弬鏁伴殢鍫傛祴楠?/strong>

1銆?褰撳嚱鏁扮殑褰㈠弬鏄寚鍚戞暣鍨嬫暟鐨勬寚閽堝彉閲忥紙濡俰nt *p锛夋椂锛屽嚱鏁扮殑瀹炲弬搴旀槸锛?锛夈€?br>    A銆佹暣鍨嬪彉閲?br>    B銆佹暣鍨嬪父閲?br>    C銆佹暣鍨嬭〃杈惧紡
    D銆佹暣鍨嬪彉閲忕殑鍦板潃

7.4杩斿洖鎸囬拡鐨勫嚱鏁帮紙閫夊锛夐殢鍫傛祴楠?/strong>

1銆佷竴涓嚱鏁帮紝濡傛灉杩斿洖鍊兼槸鎸囬拡 锛岄偅涔堣繖涓寚閽堝簲鎸囧悜锛?锛夈€?br>    A銆佷富璋冨嚱鏁颁腑鐨勫彉閲?br>    B銆佸嚱鏁颁腑鐨勫彉閲?br>    C銆佸嚱鏁颁腑鐨勬寚閽?br>    D銆佸嚱鏁扮殑褰㈠弬

7.5鎸囧悜鍑芥暟鐨勬寚閽堬紙閫夊锛夐殢鍫傛祴楠?/strong>

1銆佷笅鍒楀摢椤瑰0鏄庣殑鏄寚鍚戝嚱鏁扮殑鎸囬拡锛?br>    A銆乧har *p;
    B銆乧har a,char &p=a;
    C銆乧har (*p)(char *,char *);
    D銆乧har *p[10];

绗?鍛ㄥ崟鍏冩祴璇?/strong>

1銆佸湴鍧€鏄寚______銆?br>    A銆佸彉閲忔墍鍦ㄧ殑鍐呭瓨鍗曞厓缂栧彿
    B銆佸彉閲忕殑鍊?br>    C銆佸彉閲忕殑绫诲瀷
    D銆佸彉閲忔湰韬?br>
2銆佸紩鐢╛_____銆?br>    A銆佹槸鏌愬唴瀛樺尯鍩熺殑鍒悕
    B銆侀渶瑕佸垎閰嶅唴瀛樺尯鍩?br>    C銆佸彲浠ヤ负绌?br>    D銆佹寚鍚戜竴鍧楀唴瀛樺尯鍩?br>
3銆佹寚閽坃_____銆?br>    A銆佺殑鍐呭涓烘寚鍚戝唴瀛樼殑鍦板潃
    B銆佷笉鑳戒负绌?br>    C銆佹槸涓€鍧楀唴瀛樺尯鍩熺殑鍒悕
    D銆佺殑鍐呭涓嶅彲鍙?br>
4銆佹寚閽堝仛褰㈠弬鐨勫嚱鏁颁笉鑳藉仛鍒扮殑鏄痏___________
    A銆佸皢琚皟鐢ㄥ嚱鏁板唴閮ㄧ殑鍙橀噺鍦板潃浼犻€掑埌璋冪敤鍑芥暟銆?br>    B銆佸皢琚皟鐢ㄥ嚱鏁板唴閮ㄥ彉閲忕殑鍊奸€氳繃鍙傛暟浼犻€掑埌璋冪敤鍑芥暟銆?br>    C銆佸湪琚皟鐢ㄥ嚱鏁板唴閮ㄤ慨鏀硅皟鐢ㄥ嚱鏁颁腑鍙橀噺鐨勫€笺€?br>    D銆佸皢璋冪敤鍑芥暟涓彉閲忕殑鍊奸€氳繃鍙傛暟浼犻€掑埌琚皟鐢ㄥ嚱鏁般€?br>
5銆佸鏋滃畾涔塱nt a, *p=&a; 鍒欒〃杈惧紡______涓洪€昏緫鍋囧€笺€?br>    A銆?p= =&a
    B銆乸= =&*p
    C銆乤= =*&a
    D銆乸= =&a

6銆佽嫢鏈変互涓嬪畾涔夛紝鍒欒祴鍊兼纭殑鏄痏_____銆?int a, b, *p; float c, *q;
    A銆乸=NULL锛?br>    B銆乸=&c锛?br>    C銆乹=p锛?br>    D銆乹=&a锛?br>
7銆佸鏋渪鏄暣鍨嬪彉閲忥紝鍒欏悎娉曠殑褰㈠紡鏄痏_____銆?br>    A銆?&x
    B銆侊紗(x+5)
    C銆?x
    D銆?amp;*x

8銆佸鏋滀竴涓寚閽堝姞1锛屽疄闄呬笂鏄姞涓婁簡鎸囬拡鎵€鎸囧悜鐨勬暟鎹被鍨嬪ぇ灏忋€?br>
9銆佸彲浠ヤ氦鎹袱涓暟鐨勫嚱鏁板畾涔変负锛?void swap(int *p,int *q) { int *temp; *temp=*p; *p=*q; *q=*temp; }

10銆佹寚閽堝彲浠ラ€氳繃璧嬬粰涓嶅悓鐨勫父鏁板€兼潵鎸囧悜鍐呭瓨绌洪棿鐨勪换鎰忎綅缃€?br>
绗?鍛ㄧ紪绋嬩綔涓?/strong>

1銆佺紪鍐欏嚱鏁伴噸缃袱涓彉閲忕殑鍊?br>
2銆佺紪鍐欏嚱鏁板鏁扮粍涓殑鍏冪礌姹傚拰

3銆佹暟缁勬竻闆?br>
绗?鍛?鎸夊潃鎿嶄綔锛?锛夆€斺€旀寚閽堜笌鏁扮粍銆佸瓧绗︿覆銆佺粨鏋勪綋锛屽姩鎬佹暟缁?/strong>

8.1鏁扮粍涓庢寚閽堛€佹寚閽堢殑绠楁湳杩愮畻闅忓爞娴嬮獙

1銆佽鏁扮粍a鐨勯鍦板潃鏄?x28fe74锛屽垯涓嬪垪绋嬪簭鐨勬墽琛岀粨鏋滄槸锛?锛夈€?int a[10]={10,20,30}; int *p; p=a; p++; cout<<p<<endl;
    A銆?1
    B銆?0
    C銆?x28fe75
    D銆?x28fe78

8.2鎸囬拡鐨勫叧绯昏繍绠椼€侀€氳繃鎸囬拡璁块棶鏁扮粍鍏冪礌闅忓爞娴嬮獙

1銆乮nt a[10]={1,2,3,4,5,6,7,8}; int *p=a; 鍜宎[i]璧风殑浣滅敤涓嶅悓鐨勮〃杈惧紡鏄紙锛夈€?br>    A銆乸[i]
    B銆乸+i
    C銆?(p+i)
    D銆?(a+i)

8.3浜岀淮鏁扮粍涓庢寚閽?閫夊)闅忓爞娴嬮獙

1銆佽鏈変簩缁存暟缁刬nt a[3][4];鍜屾寚閽?int *p=&a[0][0]; 涓嬪垪鍝」鏄笌a[i][j]鐨勪綔鐢ㄧ浉鍚岀殑琛ㄧず娉?br>    A銆?(p+i+j)
    B銆?(p+i*4+j)
    C銆乸[i][j]
    D銆?(a+i*3+j)

8.4鎸囧悜涓€缁存暟缁勬寚閽堬紙琛屾寚閽堬級锛堥€夊锛夈€佸瓧绗︿覆鎸囬拡锛堝繀淇級闅忓爞娴嬮獙

1銆佽鏈変簩缁存暟缁刬nt A[3][4];涓嬪垪鍝」澹版槑鐨勬寚閽堝彲浠ヨ祴鍊糀銆?br>    A銆乮nt *p;
    B銆乮nt (*p)();
    C銆乮nt (*p)[4];
    D銆乮nt *p[4];

2銆佸0鏄庢寚鍚戝瓧绗︿覆棣栧厓绱犵殑鎸囬拡char *p="warrant"; 涓嬪垪鍝釜璇彞鐨勬墽琛屾槸涓嶆纭殑銆傦紙澶氶€夛級
    A銆乧out<<p;
    B銆乧out<<p[2];
    C銆乧in>>p;
    D銆乧in>>[2];

8.5 瀛楃鎸囬拡搴旂敤銆佹寚閽堟暟缁勶紙閫夊锛夐殢鍫傛祴楠?/strong>

1銆佹湁涓嬪垪澹版槑璇彞 char s[6][10]={"China's", "first", "football", "textbooks", "for","schools"}; char *p[5],(*q)[10],*r; 涓嬪垪鍝釜璧嬪€艰鍙ユ槸涓嶆纭殑锛?br>    A銆乸=s ;
    B銆乹=s ;
    C銆乺=&s[0][0] ;
    D銆乸[0]=s[0];

8.6缁撴瀯浣撲笌鎸囬拡锛堥€夊锛夐殢鍫傛祴楠?/strong>

1銆佹湁涓嬪垪琛ㄧず鎸夐挳鐨勭粨鏋勪綋鍜屽0鏄庤鍙?struct BUTTON{ int x,y; int width,height; char name[20]; }; struct BUTTON top[10],*p=top; 涓嬪垪鍝釜杈撳叆鈥滄寜閽€濆悕绉扮殑璇彞鏄纭殑锛燂紙澶氶€夐锛?br>    A銆乧in>>p.name;
    B銆乧in>>p->name;
    C銆乧in>>p[0]->name;
    D銆乧in>>p[0].name;

8.7鍔ㄦ€佹暟缁勶紙閫夊锛夐殢鍫傛祴楠?/strong>

1銆佹湁澹版槑璇彞 int *p,*q[10],(*r)[10]; int n=10; 涓嬪垪鍝釜鐢宠澶у皬涓簄鐨勪竴缁村姩鎬佹暟缁勭殑璇彞鏄纭殑锛?br>    A銆乸=new int(n);
    B銆乸=new int[n];
    C銆乹=new int[n];
    D銆乺=new int[n][10];

绗?鍛ㄥ崟鍏冩祴璇?/strong>

1銆佸鏋滃畾涔塱nt x[10]={1,2,3}, *m=x; 鍒欑粨鏋滀笉鑳借〃绀哄湴鍧€鐨勮〃杈惧紡鏄痏_____銆?br>    A銆?m
    B銆亁
    C銆?amp;x[0]
    D銆乵

2銆佸鏋滃畾涔塱nt a[10], *p=a ; 鍒欎笉涓巃[5]绛変环鐨勬槸______銆?br>    A銆乸+5
    B銆?(a+5)
    C銆?(p+5)
    D銆乸[5]

3銆佸鏋滃畾涔塱nt aa[10]={1,2,3,4,5,6,7,8,9,10},*p=aa;鍒欐暟鍊间负6鐨勮〃杈惧紡鏄痏_____銆?br>    A銆?p+=5
    B銆?p+6
    C銆?(p+6)
    D銆乸+5

4銆佸湪涓嬪垪鐨勫畾涔変腑锛岄敊璇殑鏄?br>    A銆乧har str[5]="china";
    B銆乧har *str="china";
    C銆乧har str[5]={ 'c', 'h', 'i', 'n', 'a'};
    D銆乧har str[]="china";

5銆佸亣瀹氫竴鏉″畾涔夎鍙ヤ负int a[10], x, *p=a;锛岃嫢瑕佹妸鏁扮粍a涓笅鏍囦负3鐨勫厓绱犲€艰祴缁檟锛屽垯涓嶆纭殑璇彞涓?br>    A銆亁=*p+3
    B銆亁=a[3];
    C銆亁=*(a+3);
    D銆亁=p[3];

6銆佸簲鐢ㄤ腑锛孋++涓殑瀛楃鎸囬拡鍦ㄥぇ澶氭暟鎯呭喌涓嬮兘鎸囩殑鏄竴涓瓧绗︿覆锛堝瓧绗︿覆鏁扮粍棣栧湴鍧€锛夈€?br>
7銆佸亣瀹歱鎸囧悜鐨勫瓧绗︿覆涓?string"锛屽垯cout<<p+3鐨勮緭鍑虹粨鏋滀负ing

绗?鍛ㄧ紪绋嬩綔涓?/strong>

1銆佸幓闄ゅ瓧绗︿覆棣栧熬澶氫綑鐨勭┖鏍?br>
绗?鍛?鏁版嵁鐨勬娊璞′笌灏佽鈥斺€旂被涓庡璞★紙1锛?/strong>

9.1 绫荤殑姒傚康闅忓爞娴嬮獙

1銆佷竴涓疄浣撲笌鍙︿竴涓疄浣撶殑涓嶅悓锛屽氨鍦ㄤ簬锛?锛夈€?br>    A銆佹煇涓壒寰佷笉鍚?br>    B銆佹煇涓姛鑳戒笉鍚?br>    C銆佺壒寰佹垨鍔熻兘鏈夋墍涓嶅悓
    D銆佸褰笉鍚?br>
2銆佺被鏄璞$殑闆嗗悎銆?br>
9.2 绫荤殑瀹氫箟闅忓爞娴嬮獙

1銆佸湪涓€涓被鐨勫畾涔夋牸寮忎腑锛岋紙 锛夈€?br>    A銆佸繀椤诲悓鏃跺寘鍚鏈夈€佸叕鏈夈€佷繚鎶ゆ垚鍛樼殑瀹氫箟
    B銆佸彧鑳藉皢鏁版嵁鎴愬憳瀹氫箟涓虹鏈夛紝鍑芥暟鎴愬憳瀹氫箟涓哄叕鏈?br>    C銆佹暟鎹垚鍛樹笉鑳藉畾涔変负淇濇姢鎴栧叕鏈夋垚鍛?br>    D銆佸湪public銆乸rivate銆乸rotected鍏抽敭瀛楀悗闈㈢揣璺熶竴涓啋鍙?br>
2銆佸湪绫荤殑瀹氫箟鏍煎紡涓紝鍑芥暟鎴愬憳鍙兘鍦ㄧ被澶栧畾涔夈€?br>
3銆佸湪绫荤殑瀹氫箟鏍煎紡涓紝鍦ㄧ被浣撴湯鍙?} 鍚庨潰鍙互娌℃湁鍒嗗彿銆?br>
9.3瀵硅薄鐨勫0鏄庝笌浣跨敤闅忓爞娴嬮獙

1銆佸湪绫诲锛岄€氳繃.杩愮畻绗﹀彲浠ヨ闂竴涓璞′腑鐨勶紙 锛夈€?br>    A銆佷繚鎶ゆ垚鍛?br>    B銆佺鏈夋垚鍛?br>    C銆佸叕鏈夋垚鍛?br>    D銆佷繚鎶ゅ拰绉佹湁鐨勫嚱鏁版垚鍛?br>
9.4 绫荤殑绉佹湁銆佸叕鏈変笌淇濇姢鎴愬憳闅忓爞娴嬮獙

1銆佹暟鎹垚鍛樺彧鑳藉畾涔変负绉佹湁锛屽嚱鏁版垚鍛樺彧鑳藉畾涔変负鍏湁銆?br>
9.5 鏃ユ湡绫荤殑璁捐闅忓爞娴嬮獙

1銆佹棩鏈熺被涓殑SetSystemDate()鍑芥暟鍙兘瀹氫箟涓虹鏈夋垚鍛樸€?br>
9.6 缁撴瀯鍖栧拰闈㈠悜瀵硅薄鐨勭▼搴忚璁℃€濇兂闅忓爞娴嬮獙

1銆侀潰鍚戝璞$▼搴忚璁℃柟娉?涓壒寰佷负锛氭娊璞°€佸皝瑁呫€佺户鎵垮拰澶氭€併€?br>
绗?鍛ㄥ崟鍏冩祴璇?/strong>

1銆佷笅鍒楁湁鍏崇被鐨勮娉曪紝涓嶆纭殑鏄?br>    A銆佸湪绫讳腑锛屽鏋滀笉浣滅壒鍒鏄庯紝鎵€鏈夌殑鎴愬憳鍧囦负鍏湁鎴愬憳
    B銆佺被鏄竴绉嶇敤鎴疯嚜瀹氫箟鐨勬暟鎹被鍨?br>    C銆佸彧鏈夌被涓殑鎴愬憳鍑芥暟鎴栫被鐨勫弸鍏冨嚱鏁版墠鑳藉瓨鍙栫被涓殑绉佹湁鏁版嵁
    D銆佸湪绫讳腑锛屽鏋滀笉浣滅壒鍒鏄庯紝鎵€鏈夌殑鏁版嵁鎴愬憳鍧囦负绉佹湁鏁版嵁鎴愬憳

2銆佹湁濡備笅涓や釜绫诲畾涔夛細 class AA{}; class BB { AA v1,*v2; BB v3; BB *v4; }; 鍏朵腑鏈変竴涓垚鍛樺彉閲忕殑瀹氫箟鏄敊璇殑锛岃繖涓彉閲忔槸
    A銆乿3
    B銆乿1
    C銆乿2
    D銆乿4

3銆佹湁鍏崇被鍜岀粨鏋勪綋鐨勫叧绯伙紝閿欒鐨勬槸______銆?br>    A銆佺被涓€鑸彧鏈夊嚱鏁版柟娉曪紝閫氬父涓嶄細鍖呭惈鏁版嵁鎴愬憳
    B銆佺粨鏋勪綋鐨勬垚鍛橀粯璁ら兘鏄叕寮€鐨?br>    C銆佺被鐨勬垚鍛橀粯璁ら兘鏄鏈夌殑
    D銆佺粨鏋勪綋涓€鑸彧鏈夋暟鎹垚鍛橈紝閫氬父涓嶄細鍔犲叆鍑芥暟鏂规硶

4銆佹寜鐓у父鐞嗭紝涓嬪垪鍝釜姒傚康鍙互鐞嗚В涓哄璞¤€屼笉鏄被锛?br>    A銆佽タ瀹変氦閫氬ぇ瀛?br>    B銆?85宸ョ▼澶у
    C銆佸浗闄呯煡鍚嶅搴?br>    D銆佽璐濆皵濂栬幏寰楄€?br>
5銆佽鏈変互涓嬬被鍜屽璞$殑瀹氫箟: class A { public: int k; }; A x1,x2,*p1,*p2; 鍒欎笅闈㈤拡瀵规垚鍛樺彉閲弅鐨勫紩鐢紝姝g‘鐨勬槸
    A銆亁2.k=2;
    B銆亁1->k=1;
    C銆乸1.k=3;
    D銆?*p2)->k=4;

6銆佷笅闈㈡湁鍏崇被涓庡璞$殑璇存硶涓紝閿欒鐨勬槸________銆?br>    A銆佷竴涓被鍙兘鏈変竴涓璞?br>    B銆佸璞℃槸绫荤殑瀹炰緥
    C銆佷竴涓璞′笉鑳藉悓鏃跺睘浜庡涓病鏈夊叧绯荤殑鐙珛鐨勭被
    D銆佺被鍜屽璞$殑鍏崇郴涓庢暟鎹被鍨嬪拰鍙橀噺鐨勫叧绯荤浉浼?br>
7銆佽璁$被鏃跺簲璇ュ敖閲忚璁″畬澶囷紝灏嗘墍鏈夎兘鎯冲埌鐨勫睘鎬ф柟娉曞叏閮ㄥ啓鍏ュ0鏄庛€?br>
8銆佷互涓嬬被鐨勫0鏄庢槸瀹屽叏姝g‘鐨勩€?class mobile { private: char mynumber[11]; //鏈轰富鐨勭數璇濆彿鐮?public锛?void init(char number[11]=鈥?000000000鈥? //闅愬紡瀹氫箟鐨勫唴鑱斿嚱鏁?void dial(); //鎷ㄦ墦鐢佃瘽鐨勫嚱鏁板0鏄?void answer(char othernumber[11]); //鎺ュ惉鐢佃瘽鐨勫嚱鏁板0鏄?void hangup(); //鎸傛柇鐢佃瘽鐨勫嚱鏁板0鏄?}

9銆佽娉曚笂锛屼竴涓被涓嶈兘灏嗚嚜韬殑鎵€鏈夋垚鍛樺畾涔変负绉佹湁鐨勩€?br>
10銆佺被鐨勬垚鍛樺嚱鏁伴兘蹇呴』璁炬垚鍏湁鐨勶紝浠ヤ究澶栫晫璋冪敤銆?br>
绗?鍛ㄧ紪绋嬩綔涓?/strong>

1銆佽璁erson绫?br>
2銆佽璁og绫?br>
鑰冭瘯娴嬭瘯锛堥潪缂栫▼閮ㄥ垎锛?/strong>

鍦ㄧ嚎鑰冭瘯娴嬭瘯锛堝瑙傞锛?/strong>

1銆佷互涓嬬鍙蜂笉搴斿綋鍑虹幇鍦ㄦ爣璇嗙涓殑鏄?br>    A銆佺┖鏍?br>    B銆?鍙?br>    C銆佹嫭鍙?br>    D銆佷笅鍒掔嚎
    E銆佸瓧姣?br>    F銆佹暟瀛?br>
2銆佽浣挎寚閽堝彉閲弍 鎸囧悜涓€缁存暟缁凙 鐨勭1 涓厓绱狅紝姝g‘鐨勮〃杈惧紡鏄紙 锛?br>    A銆乸=A 鎴杙=&A[0]
    B銆乸=&A 鎴杙=&A[0]
    C銆乸=&A 鎴杙=A[0]
    D銆乸=A 鎴杙=A[0]
    E銆乸=A[] 鎴杙=&A[0]

3銆佷互涓嬫暟缁勭殑瀹氫箟姝g‘鐨勬槸
    A銆乮nt a[6];
    B銆乮nt a[];
    C銆乮nt a(6);
    D銆乮nt a();

4銆佸凡鐭ュ瓧绗?A'鐨凙SCII鐮佷负65锛寉鐨勭被鍨嬫槸int鍒欐墽琛寉='A'+2;鍚庯紝y鐨勫€兼槸
    A銆?7
    B銆?
    C銆?C'
    D銆?52

5銆佷互涓嬭娉曟纭殑鏄?br>    A銆佺▼搴忔€绘槸浠庝富鍑芥暟锛坢ain鍑芥暟锛夊紑濮嬫墽琛?br>    B銆佺▼搴忔€绘槸浠庝綅缃渶鍓嶇殑涓€涓嚱鏁板紑濮嬫墽琛?br>    C銆佺▼搴忓紑濮嬫墽琛屾椂锛屼粠鍝釜鍑芥暟寮€濮嬫墽琛屽畬鍏ㄩ殢鏈?br>    D銆佺▼搴忎腑鍙互鍖呭惈澶氫釜涓诲嚱鏁帮紙main鍑芥暟锛?br>    E銆佷富鍑芥暟鍙互璋冪敤鍏朵粬鍑芥暟锛屽叾浠栧嚱鏁颁篃鍙互璋冪敤涓诲嚱鏁?br>    F銆佷富鍑芥暟蹇呴』鏀惧湪鍏朵粬鍑芥暟鍚庨潰瀹氫箟
    G銆佷竴涓狢++绋嬪簭鑷冲皯瑕佹湁涓€涓富鍑芥暟

6銆佸湪C++璇█涓紟琛ㄧず涓€鏉¤鍙ョ粨鏉熺殑鏍囧彿鏄痏_________銆?br>    A銆?
    B銆亇
    C銆?/
    D銆併€?br>
7銆佽涓嬪垪鍙橀噺鍧囧凡姝g‘澹版槑涓篿nt锛屼笅鍒楅€夐」涓笉姝g‘鐨勮祴鍊艰〃杈惧紡鏄紙 锛夈€?br>    A銆乤=b+c=1
    B銆?+k
    C銆乶1 = n2 = n3
    D銆乲 = I == 1
    E銆乤=1,b=2,c=3,k=4

8銆佷互涓嬪摢浜涙槸鍩烘湰鎺у埗缁撴瀯锛堟敞鎰忔湰棰樹负澶氶€夛級
    A銆侀『搴?br>    B銆侀€夋嫨
    C銆佸惊鐜?br>    D銆佽烦杞?br>
9銆佸湪绫荤殑澹版槑涓紝鍙互閫氳繃锛?锛夈€侊紙 锛夊拰protected 绛夊叧閿瓧鏉ユ寚瀹氱被鎴愬憳鐨勮闂帶鍒舵柟娉曘€?br>    A銆乸rivate
    B銆乸ublic
    C銆乮nline
    D銆乨efine

10銆佸彲浠ョ敤 \\ 娉ㄩ噴涓€琛岃鍙?br>
11銆丆++ 璇█涓璪reak 璇彞鍜宑ontinue 璇彞鐨勫尯鍒湪浜庯細break 璇彞鏄粓姝㈡湰娆″惊鐜紝continue璇彞鏄粨鏉熸墍鏈夊惊鐜?br>
12銆佹病鏈夋嫭鍙锋椂锛宔lse涓庡叾鏈€杩戠殑涓€涓湭閰嶅鐨刬f閰嶅

13銆佸亣瀹歺 鏄竴涓€昏緫閲忥紝鍒?x&&!x)||0 鐨勫€间负

14銆佸亣瀹歺 鍜寉 涓烘暣鍨嬶紝鍏跺€煎垎鍒负16 鍜?锛屽垯x%y 鐨勫€间负

15銆佸凡鐭ユ暟缁刢瀹氫箟涓簂ong c[10];鍒檆鐨勫厓绱犱釜鏁版槸

鑰冭瘯娴嬭瘯缂栫▼

缂栫▼鑰冭瘯娴嬭瘯

1銆佽緭鍏ョ煩褰㈢殑瀹藉拰楂橈紝璇风紪鍐欒绠楀叾鍛ㄩ暱鍜岄潰绉殑绋嬪簭銆?br>
2銆佺紪鍐欑▼搴忓垽鏂竴涓暣鏁版槸鍚︿负绱犳暟

绗?0鍛?鏁版嵁鐨勬娊璞″拰灏佽鈥斺€旂被锛?锛夆€斺€旀瀯閫犲嚱鏁般€佹瀽鏋勫嚱鏁板拰鎸囧悜瀵硅薄鐨勬寚閽?/strong>

10.1 鏋勯€犲嚱鏁扮殑瀹氫箟闅忓爞娴嬮獙

1銆佷笅闈㈠叧浜庢瀯閫犲嚱鏁扮殑鍙欒堪锛屾纭殑鏄紙 锛夈€?br>    A銆佹瀯閫犲嚱鏁颁笉鑳介噸杞?br>    B銆佹瀯閫犲嚱鏁板彧鑳藉畾涔変负鏃犲弬鍑芥暟
    C銆佹瀯閫犲嚱鏁板彧鑳藉畾涔変负鏈夊弬鍑芥暟
    D銆佹瀯閫犲嚱鏁拌兘閲嶈浇

2銆佹瀯閫犲嚱鏁板悕蹇呴』涓庣被鍚嶇浉鍚屻€?br>
10.2 閲嶈浇鏋勯€犲嚱鏁伴殢鍫傛祴楠?/strong>

1銆佹瀯閫犲嚱鏁扮敱绯荤粺鑷姩璋冪敤杩愯銆?br>
10.3 鏋愭瀯鍑芥暟鐨勫畾涔夐殢鍫傛祴楠?/strong>

1銆佷笅闈㈠叧浜庢瀽鏋勫嚱鏁扮殑鍙欒堪锛屾纭殑鏄紙 锛夈€?br>    A銆佹瀽鏋勫嚱鏁板繀椤绘槸鏃犲弬鍑芥暟
    B銆佹瀽鏋勫嚱鏁板彲浠ユ槸鏈夊弬鍑芥暟
    C銆佹瀽鏋勫嚱鏁拌兘澶熻繑鍥炲嚱鏁板€?br>    D銆佹瀽鏋勫嚱鏁颁笉鏄郴缁熻嚜鍔ㄨ皟鐢?br>
2銆佹瀽鏋勫嚱鏁板悕涓庣被鍚嶇浉鍚屻€?br>
10.7 瀵硅薄涓庢寚閽堬紙閫夊锛夐殢鍫傛祴楠?/strong>

1銆乸鏄寚鍚慞ERSON绫诲璞$殑鎸囬拡锛屽垯閫氳繃p璁块棶鍏湁鎴愬憳鍑芥暟show()鐨勬柟娉曟槸銆?br>    A銆乸.show();
    B銆乸->show();
    C銆?*p).show();
    D銆?*p)->show();

10.8 this鎸囬拡锛堥€夊锛夐殢鍫傛祴楠?/strong>

1銆乼his鎸囬拡闇€瑕佷簨鍏堝0鏄庯紝鎵嶈兘浣跨敤銆?br>
绗?0鍛ㄥ崟鍏冩祴璇?/strong>

1銆佷互涓嬫湁鍏虫瀽鏋勫嚱鏁扮殑鍙欒堪锛屼笉姝g‘鐨勬槸___________.
    A銆佹瀽鏋勫嚱鏁板拰鏋勯€犲嚱鏁颁竴鏍峰彲浠ユ湁褰㈠弬
    B銆佸湪涓€涓被鍙兘瀹氫箟涓€涓瀽鏋勫嚱鏁?br>    C銆佹瀽鏋勫嚱鏁颁笉鍏佽鐢ㄨ繑鍥炲€?br>    D銆佹瀽鏋勫嚱鏁板悕鍓嶅繀椤诲啝鏈夌鍙封€渵鈥?br>    E銆佹瀽鏋勫嚱鏁板彲浠ラ噸杞?br>    F銆佹瀽鏋勫嚱鏁颁笉鑳介噸杞?br>
2銆佸缓绔嬩竴涓被瀵硅薄鏃讹紝绯荤粺蹇呯劧浼氳皟鐢?br>    A銆佹瀯閫犲嚱鏁?br>    B銆佹瀽鏋勫嚱鏁?br>    C銆侀潤鎬佸嚱鏁?br>    D銆佸唴鑱斿嚱鏁?br>
3銆佷笅鍒楀叧浜庢瀯閫犲嚱鏁拌娉曚笉姝g‘鐨勬槸__________
    A銆佹瀯閫犲嚱鏁板繀椤绘湁杩斿洖鍊?br>    B銆佹瀯閫犲嚱鏁板繀椤讳笌绫诲悓鍚?br>    C銆佸湪鏋勯€犲嚱鏁颁腑鍙互瀵圭被涓殑鎴愬憳杩涜鍒濆鍖?br>    D銆佹瀯閫犲嚱鏁板彲浠ョ渷鐣ヤ笉鍐?br>
4銆佹瀯閫犲嚱鏁扮殑鍑芥暟鍚嶈姹傛槸___________.
    A銆佸拰绫诲悓鍚?br>    B銆佸彲浠ヤ换鎰忓彇鍚嶏紝鍙绗﹀悎鏍囪瘑绗﹁鑼?br>    C銆佸繀椤绘槸__init___
    D銆佸繀椤绘槸construct
    E銆佸叾涓殑瀛楁瘝蹇呴』鏄ぇ鍐?br>
5銆佷娇鐢ㄥ璞℃寚閽堟潵鍔ㄦ€佺敓鎴愬璞℃椂涓嶄細璋冪敤鏋勯€犲嚱鏁般€?br>
6銆佷竴涓被鐨勬瀯閫犲嚱鏁板拰鏋愭瀯鍑芥暟閮藉彲浠ユ湁澶氱褰㈠紡銆?br>
7銆佸鏋滄病鏈夋樉寮忓畾涔夋瀯閫犲嚱鏁帮紙鍖呮嫭鎷疯礉鏋勯€犲嚱鏁帮級锛孋++缂栬瘧鍣ㄥ氨闅愬紡瀹氫箟涓€涓粯璁ょ殑銆?br>
绗?0鍛ㄧ紪绋嬩綔涓?/strong>

1銆佽璁″甫鏋勯€犲嚱鏁扮殑Dog绫?br>
绗?1鍛?鍙栧叾绮惧崕 鍙戞尌浼樺娍鈥斺€旂户鎵匡紙閫夊锛?/strong>

11.1鍏锋湁琛岃蛋鍚鍔熻兘鐨勨€滀汉鈥濈被鐨勮璁¢殢鍫傛祴楠?/strong>

1銆佽棰戜腑person绫荤殑鏋愭瀯鍑芥暟浣撻噷鐨刣elete璇彞鍙互鐪佺暐銆?br>
11.4鍩虹被涓庢淳鐢熺被闅忓爞娴嬮獙

1銆佷笅鍒楀彊杩版纭殑鏄紙 锛夈€?br>    A銆佸熀绫绘槸涓€绫荤壒娈婂畾涔夌殑绫?br>    B銆佹淳鐢熺被鍙兘浠庝竴涓熀绫荤户鎵?br>    C銆佹淳鐢熺被涓繀椤诲畾涔夋瀯閫犲嚱鏁?br>    D銆佹淳鐢熺被鐨勬垚鍛樺嚱鏁板彲浠ュ拰鍩虹被鐨勬垚鍛樺嚱鏁板悓鍚?br>
2銆佸湪娲剧敓绫荤殑绫讳綋涓紝鍙兘瀹氫箟鏂板鐨勬暟鎹垚鍛樺拰鏂板鐨勫嚱鏁版垚鍛樸€?br>
11.5缁ф壙鏂瑰紡闅忓爞娴嬮獙

1銆佸彲浠ュ湪绫诲鐢╝.x鐨勫舰寮忚闂淳鐢熺被瀵硅薄a鐨勫熀绫绘垚鍛榵锛屽叾涓瓁鏄紙 锛夈€?br>    A銆佺鏈夌户鎵跨殑鍏敤鎴愬憳
    B銆佸叕鐢ㄧ户鎵跨殑绉佹湁鎴愬憳
    C銆佸叕鐢ㄧ户鎵跨殑淇濇姢鎴愬憳
    D銆佸叕鐢ㄧ户鎵跨殑鍏敤鎴愬憳

2銆佸湪娲剧敓绫荤殑瀹氫箟涓紝鏃犺閲囩敤涓夌缁ф壙鏂瑰紡浠讳綍涓€绉嶏紝閮芥棤娉曠洿鎺ヨ闂熀绫讳腑鐨勭鏈夋垚鍛樸€?br>
11.6娲剧敓绫荤殑鏋勯€犲嚱鏁颁笌鏋愭瀯鍑芥暟闅忓爞娴嬮獙

1銆佹湁鍩虹被濡備笅锛?class BASE{ private: int x,y; public: BASE(int x,int y){this->x=x;this->y=y;} void set(int x1,int y1) { x=x1; y=y1; } ... }; 璁綝ERIV涓築ASE鐨勫叕鏈夋淳鐢熺被锛屽垯涓嬪垪鍝釜DERIV鐨勬瀯閫犲嚱鏁板鍩虹被鎴愬憳鐨勫垵濮嬪寲鏄纭殑锛?br>    A銆丏ERIV( int x, int y ) { BASE(x , y) ; ... }
    B銆丏ERIV( int x1, int y1 ){ x=x1; y=y1; ... }
    C銆丏ERIV( int x, int y ) : BASE( x , y ) { ... }
    D銆丏ERIV( int x, int y ) {set(x1,y1); ...}

2銆佹淳鐢熺被鐨勬瀽鏋勫嚱鏁扮殑鎵ц杩囩▼鎭板ソ涓庢瀯閫犲嚱鏁扮殑鎵ц杩囩▼鐩稿弽銆?br>
11.7浠庣偣鍒板渾鍐嶅埌鍦嗘煴浣撶殑娲剧敓绫昏璁¢殢鍫傛祴楠?/strong>

1銆佹湰渚嬩腑锛屽湪鐐圭被銆佸渾绫汇€佸渾鏌变綋绫讳腑澧炲姞鏋愭瀯鍑芥暟瀹氫箟锛屽鏋滄瀽鏋勫嚱鏁颁綋閲屼负绌猴紙鏃犱换浣曡鍙ワ級锛屽垯涓嶅奖鍝嶇▼搴忕殑杩愯缁撴灉銆?br>
2銆佹湰瑙嗛涓殑渚嬮涓紝濡傛灉灏嗙偣绫汇€佸渾绫汇€佸渾鏌变綋绫讳腑鐨勭鏈夋垚鍛橀兘鏀逛负淇濇姢鎴愬憳锛屽垯涓嶅奖鍝嶇▼搴忔纭繍琛屻€?br>
11.8浠嶶鐩樺埌MP3鐨勬淳鐢熺被璁捐闅忓爞娴嬮獙

1銆佹湰瑙嗛鐨勪緥棰樹腑锛屽皢MP3绫诲叕鏈夌户鎵縐鐩樼被鏀逛负淇濇姢缁ф壙锛岀▼搴忚繍琛岀粨鏋滅浉鍚屻€?br>
绗?2鍛?缁熶竴鎺ュ彛 涓嶅悓瀹炵幇鈥斺€斿鎬佹€э紙閫夊锛?/strong>

12.1澶氭€佺殑姒傚康闅忓爞娴嬮獙

1銆佺紪璇戞椂澶氭€佷富瑕佹寚杩愮畻绗﹂噸杞戒笌鍑芥暟閲嶈浇锛岃€岃繍琛屾椂澶氭€佷富瑕佹寚铏氬嚱鏁般€?br>
12.2娲剧敓绫诲璞℃浛鎹㈠熀绫诲璞¢殢鍫傛祴楠?/strong>

1銆佹湁鍩虹被SHAPE锛屾淳鐢熺被CIRCLE锛屽0鏄庡涓嬪彉閲忥細 SHAPE shape1,*p1; CIRCLE circle1,*q1; 涓嬪垪鍝簺椤规槸鈥滄淳鐢熺被瀵硅薄鏇挎崲鍩虹被瀵硅薄鈥濄€?br>    A銆乸1=&circle1;
    B銆乹1=&shape1;
    C銆乻hape1=circle1;
    D銆乧ircle1=shape1;

12.3铏氬嚱鏁伴殢鍫傛祴楠?/strong>

1銆佷笅鍒楀彊杩版纭殑鏄紙 锛夈€?br>    A銆佽櫄鍑芥暟鍙兘瀹氫箟鎴愭棤鍙傚嚱鏁?br>    B銆佽櫄鍑芥暟涓嶈兘鏈夎繑鍥炲€?br>    C銆佽兘瀹氫箟铏氭瀯閫犲嚱鏁?br>    D銆丄銆丅銆丆閮戒笉瀵?br>
2銆佸叧浜庤櫄鍑芥暟鐨勬弿杩颁腑锛屾纭殑鏄紙 锛夈€?br>    A銆佽櫄鍑芥暟鏄竴涓潤鎬佹垚鍛樺嚱鏁?br>    B銆佽櫄鍑芥暟鏄竴涓潪鎴愬憳鍑芥暟
    C銆佽鏄庤櫄鍑芥暟鐨剉irtual锛屽嵆鍙互鍑虹幇鍦ㄧ被鍐呭嚱鏁拌鏄庢椂锛屼篃鍙互鍑虹幇鍦ㄧ被澶栧嚱鏁板畾涔夋椂銆?br>    D銆佹淳鐢熺被鐨勮櫄鍑芥暟涓庡熀绫讳腑瀵瑰簲鐨勮櫄鍑芥暟鍏锋湁鐩稿悓鐨勫弬鏁颁釜鏁板拰绫诲瀷

12.4鎶借薄绫婚殢鍫傛祴楠?/strong>

1銆佷互涓嬶紙 锛夋垚鍛樺嚱鏁拌〃绀虹函铏氬嚱鏁般€?br>    A銆乿irtual int vf(int);
    B銆乿oid vf(int)=0;
    C銆乿irtual void vf()=0;
    D銆乿irtual void vf(int) { };

2銆佷笅鍒楁弿杩颁腑锛岋紙 锛夋槸鎶借薄绫荤殑鐗瑰緛銆?br>    A銆佽鏄庢湁铏氬嚱鏁?br>    B銆佽鏄庢湁绾櫄鍑芥暟
    C銆佹湁鍏朵粬绫荤殑瀵硅薄浣滄暟鎹垚鍛?br>    D銆佹湁鎸囬拡浣滄暟鎹垚鍛?br>
12.5杩愮畻绗︾殑閲嶈浇闅忓爞娴嬮獙

1銆佽鏈夊鏁扮被COMPLEX锛屽湪澶嶆暟绫讳腑閲嶈浇涔樻硶杩愮畻绗︺€?涓嬪垪鍝」鏄繍绠楃閲嶈浇鐨勬纭殑澹版槑鏍煎紡锛?br>    A銆丆OMPLEX *(COMPLEX c1, COMPLEX c2);
    B銆丆OMPLEX * (COMPLEX c2);
    C銆丆OMPLEX operator * (COMPLEX c1, COMPLEX c2);
    D銆丆OMPLEX operator * (COMPLEX c2);

鍦ㄧ嚎閮ㄥ垎鑰冭瘯闈炵紪绋嬮閮ㄥ垎

瀹㈣棰?/strong>

1銆佸亣瀹欰涓轰竴涓被锛宖涓鸿绫诲叕鏈夌殑鏃犲弬鍑芥暟锛宎涓鸿绫荤殑涓€涓璞°€傚垯璋冪敤瀵硅薄鐨勬垚鍛樺嚱鏁癴锛屼笅鍒楁牸寮忎腑姝g‘鐨勬槸锛堬級銆?br>    A銆乤.f()
    B銆丄.f()
    C銆丄->f
    D銆乤->f

2銆佸鏋淏ank鏄竴涓被锛宨nterest()鏄绫荤殑涓€涓垚鍛樺嚱鏁般€傝嫢璇ユ垚鍛樺嚱鏁板湪绫诲畾涔変綋澶栧畾涔夛紝鍒欏嚱鏁板ご涓猴紙锛夈€?br>    A銆乨ouble Bank::interest()
    B銆乨ouble Bank:interest()
    C銆丅ank::double interest()
    D銆丅ank:double interest()

3銆佷笅鍒楄娉曚腑閿欒鐨勬槸锛堬級銆?br>    A銆佺被鍜屽璞$殑鍏崇郴鐩镐技浜庢暟鎹被鍨嬪拰鍙橀噺鐨勫叧绯汇€?br>    B銆佸湪瀹氫箟绫绘椂锛屽鏋滀笉浣跨敤private銆乸ublic鎴杙rotected璁惧畾鎴愬憳鐨勮闂帶鍒讹紝鍒欓粯璁や负private銆?br>    C銆佸彲浠ョ敤涓€涓璞$粰鍙︿竴涓悓绫荤殑瀵硅薄璧嬪€笺€?br>    D銆佷竴涓被鍙兘鏈変竴涓璞°€?br>
4銆佷笅鍒楁弿杩颁腑锛岄敊璇竴椤规槸锛堬級銆?br>    A銆佹瀽鏋勫嚱鏁扮殑鍚嶅瓧鏄被鍚嶅墠鍔犫€渵鈥濄€?br>    B銆佹瀯閫犲嚱鏁版槸鍦ㄥ缓绔嬩竴涓璞℃椂鑷姩璋冪敤鐨勩€?br>    C銆佹瀽鏋勫嚱鏁版病鏈夎繑鍥炲€笺€?br>    D銆佸璞′笉鑳戒綔涓哄嚱鏁扮殑鍙傛暟銆?br>
5銆佸鏋滄湁锛?class Person { char name[100]; int age; char sex ; public: Person() { } Person(char *, int, char) { } Person(char *, int) { } }; 鍒欏0鏄嶱erson绫诲瀷鐨勫璞℃椂锛屼笅鍒楅€夐」閿欒鐨勬槸锛堬級銆?br>    A銆丳erson p1 ;
    B銆丳erson p2("lisi",20,'m') ;
    C銆丳erson p3("Mike",34) ;
    D銆丳erson p4("Mary") ;

6銆佸鏋滄湁涓嬮潰鐨勭▼搴忥細 class A { int x ; int y ; public: A(int a,int b) { x = a ; y = b ; } A(A &a) { x = a.x *1000 ; y = a.y *1000 ; } void display() { cout << x << "," << y ; } } ; A a1(2,5); A a2(a1) ; a2.display() ; 鍒欒绋嬪簭鐨勬樉绀鸿緭鍑烘槸锛堬級銆?br>    A銆?000,5000
    B銆?000,2000
    C銆?,5
    D銆?,2

7銆佷互涓嬪摢涓€椤逛笉灞炰簬閫夋嫨缁撴瀯鐨勮鍙?br>    A銆乮f璇彞
    B銆佹潯浠惰繍绠楃
    C銆乫or璇彞
    D銆乻witch璇彞

8銆佸叧浜巌f璇彞锛屼互涓嬭〃杈撅紝鍝竴鏉℃槸閿欒鐨勶紵
    A銆乮f锛堣〃杈惧紡锛夊悗闈笉鑳藉姞鍒嗗彿
    B銆佽〃杈惧紡鐨勫€奸潪0锛屽氨鍙互褰撲綔鐪熷€兼潵澶勭悊
    C銆佸彲浠ユ湁else涔熷彲浠ユ病鏈?br>    D銆乮f璇彞涓嶅彲浠ュ祵濂椾娇鐢?br>
9銆佸叧浜庢潯浠惰繍绠楃锛屼互涓嬪摢涓€椤规弿杩版槸閿欒鐨勶紵
    A銆佹槸涓€涓笁鐩繍绠楃
    B銆佺粨鍚堟柟鍚戞槸鑷彸鍚戝乏
    C銆佷笁涓繍绠楀璞$己涓€涓嶅彲
    D銆佹浛浠f else锛屼娇绋嬪簭鏇村姞鐩磋

10銆佸叧浜巗witch璇彞锛屼互涓嬪摢涓€椤规弿杩版槸閿欒鐨勶紵
    A銆佸父鐢ㄤ簬澶勭悊澶氬垎鏀€夋嫨
    B銆乧ase鍚庨潰鐨勫父閲忕被鍨嬪繀椤讳笌switch涓殑琛ㄨ揪寮忕被鍨嬪尮閰?br>    C銆乧ase鍜宒efault鍑虹幇鐨勬搴忎笉褰卞搷绋嬪簭杩愯鐨勭粨鏋?br>    D銆佹瘡涓猚ase鐨勬渶鍚庡繀椤诲姞鍏reak鍛戒护

11銆佸叧浜庣畻娉曠殑琛ㄧず鏂规硶锛屼互涓嬪摢涓€椤规槸姝g‘鐨勶紵
    A銆佽嚜鐒惰瑷€鏁堢巼楂?br>    B銆佹祦绋嬪浘涓嶄骇鐢熸涔?br>    C銆佷吉浠g爜鏈夋爣鍑嗙殑涔﹀啓鏍煎紡
    D銆佹祦绋嬪浘涓敤鐭╁舰琛ㄧず鍒ゆ柇

12銆佷互涓嬪摢涓€椤逛笉鏄畻娉曞湪鐢熸椿涓殑瀹炰緥锛?br>    A銆佹槬鏅氱殑鑺傜洰鍗?br>    B銆佸浼氱殑閲囪喘娓呭崟
    C銆佸帹甯堢殑鑿滆氨
    D銆佸鐢熺殑璇剧▼琛?br>
13銆佹祦绋嬪浘涓紝浣跨敤浠€涔堝浘褰㈣〃绀哄垽鏂紵
    A銆佺煩褰?br>    B銆佸渾瑙掔煩褰?br>    C銆佸钩琛屽洓杈瑰舰
    D銆佽彵褰?br>
14銆佽a銆乧涓篿nt鍨嬪彉閲忥紝鍒檃=(c=5, c+5, c/2)鐨勫€间负
    A銆?
    B銆?
    C銆?
    D銆?0

15銆乮nt x=3,y=4,z=5;鍒欏€间负0鐨勮〃杈惧紡鏄?br>    A銆亁!=y+z>y-z
    B銆亁<=y+1
    C銆亂%z>=y-z
    D銆亁>y
    E銆?x&&y)==(x||z)
    F銆?(x>y)+(x!=z)||(x+y)&&(y-z)

16銆佷互涓嬭繍绠楃涓紭鍏堢骇鏈€浣庣殑涓?br>    A銆?amp;
    B銆?
    C銆?
    D銆?=

17銆乧har w; long long x; float y; double z; 鍒欒〃杈惧紡w*x+z-y鐨勭粨鏋滀负
    A銆乫loat绫诲瀷
    B銆乧har绫诲瀷
    C銆乮nt绫诲瀷
    D銆乨ouble绫诲瀷

18銆佽嫢x涓篿nt鍨嬪彉閲忥紝鍒欐墽琛屼笅鍒楄鍙?x=5; x+=x-=x*x; 鍚巟鐨勫€间负
    A銆?40
    B銆?60
    C銆?5
    D銆?20

19銆佽嫢w=1锛寈=2锛寉=3锛寊=4锛屽垯鏉′欢琛ㄨ揪寮弜<x?w:y<z?w:y鐨勭粨鏋滀负
    A銆?
    B銆?
    C銆?
    D銆?

20銆佷互涓嬭〃绀簗x|<5鐨勫悎娉曡〃杈惧紡涓?br>    A銆亁<5||x>-5
    B銆?5<x<5
    C銆亁>5||x<-5
    D銆亁>-5&&x<5

21銆乧har s='\077'; 鍒檚涓寘鍚? )涓瓧绗︺€?br>    A銆?
    B銆?
    C銆?
    D銆?
    E銆?

22銆丆++鏄湪浠€涔堣瑷€鍩虹涓婂彂灞曡捣鏉ョ殑
    A銆乥asic璇█
    B銆乧璇█
    C銆乯ava璇█
    D銆乸ascal璇█
    E銆乧#璇█

23銆丆++璇█灞炰簬涓嬮潰鍝绫诲瀷鐨勮绠楁満璇█:
    A銆佹満鍣ㄨ瑷€
    B銆佹眹缂栬瑷€
    C銆佹敮鎸侀潰鍚戝璞$殑楂樼骇璇█
    D銆侀潰鍚戠綉缁滅殑楂樼骇璇█
    E銆佺炕璇戝瀷璇█

24銆佽绠楁満鑳界洿鎺ユ墽琛岀殑绋嬪簭璇█鏄?
    A銆佹眹缂栬瑷€
    B銆侀珮绾ц瑷€
    C銆佺粨鏋勫寲璇█
    D銆佹満鍣ㄨ瑷€
    E銆佽嚜鐒惰瑷€

25銆佺紪鍐欒繍琛屼竴涓猚++绋嬪簭鐨勫嚑涓楠や緷娆℃槸锛?br>    A銆佺紪璇?缂栬緫 杩愯 杩炴帴
    B銆佺紪杈?杩愯 杩炴帴 缂栬瘧
    C銆佺紪杈?缂栬瘧 杩炴帴 杩愯
    D銆佺紪杈?璋冭瘯 杩炴帴 杩愯

26銆佷笅鍒楀摢椤逛笉鏄疌++鐨勮鍙ワ紵
    A銆乤+b;
    B銆乧=a+b
    C銆乤;
    D銆乧=a+b;

27銆佽鏁村瀷鍙橀噺a,b,c宸茬粡澹版槑锛屼笅鍒楀摢椤硅鍙ョ殑椤哄簭鏄纭殑
    A銆乧=a+b; cin>>a>>b; cout<<c;
    B銆乧out<<c; c=a+b; cin>>a>>b;
    C銆乧in>>a>>b; c=a+b; cout<<c;
    D銆乧=a+b; cout<<c; cin>>a>>b;

28銆佷笅鍒楀摢涓嫳鏂囪瘝璇笉鏄疌++鐨勫叧閿瓧锛?br>    A銆乮nt
    B銆乨istance
    C銆乺eturn
    D銆乻truct
    E銆乫lag

29銆佷笅鍒楀摢涓笉鏄疌++鍚堟硶鐨勬爣璇嗙?
    A銆亀3
    B銆乢0101
    C銆乢height
    D銆?w
    E銆丂5
    F銆乄@

30銆丆++璇█涓瓀hile寰幆鍜宒o...while寰幆鐨勪富瑕佸尯鍒槸锛堬級
    A銆乨o...while鐨勫惊鐜綋涓嶈兘鏄鍚堣鍙?br>    B銆乨o...while鍏佽浠庡閮ㄨ浆鍒板惊鐜綋鍐?br>    C銆乨o...while鐨勫惊鐜綋鑷冲皯鏃犳潯浠舵墽琛屼竴娆?br>    D銆亀hile鐨勫惊鐜帶鍒舵潯浠舵瘮do...while鐨勫惊鐜帶鍒舵潯浠朵弗鏍?br>
31銆亀hile鍚庨潰鐨勨€滄潯浠惰〃杈惧紡鈥濅竴瀹氳鐢ㄤ竴瀵? )鎷捣鏉?br>    A銆佹柟鎷彿[ ]
    B銆佽姳鎷彿{ }
    C銆佸弻寮曞彿 " "
    D銆佸渾鎷彿()

32銆佹墽琛岃鍙ュ簭鍒楋細 int x=3锛?do { x-=2锛?cout<<x锛?}while(!(--x))锛?杈撳嚭缁撴灉鏄紙 锛?br>    A銆佹寰幆
    B銆?
    C銆? -2
    D銆? 0

33銆佸湪寰幆璇彞鈥漟or(inti =0;i<n;i++) cout<<i*i<<鈥?鈥?鈥濅腑锛屽惊鐜綋鎵ц鐨勬鏁颁负锛堬級
    A銆?
    B銆乶-1
    C銆乶
    D銆乶+1

34銆?. 鎵ц涓嬪垪璇彞搴忓垪鏃讹紝鑻ラ敭鐩樿緭鍏?锛屽垯灞忓箷鏄剧ず锛?锛?int n; cin>>n; switch(n) { case 1: case 2: cout<<'1'; case 3: case 4:cout<<'2'; break; default:cout<<'3'; }
    A銆?
    B銆?
    C銆?
    D銆?2

35銆?. 鏈夊涓嬬▼搴忔锛?int x=1, a=0,b=0; switch(x) { case 0: b++; case 1: a++;break; case 2:a++;b++; } cout<<鈥漚=鈥?lt;<a<<鈥?b=鈥?lt;<b; 璇ョ▼搴忔鐨勮緭鍑虹粨鏋滄槸锛?锛?br>    A銆乤=2,b=1
    B銆乤=1,b=1
    C銆乤=1,b=0
    D銆乤=2,b=2

36銆佷互涓嬩笉灞炰簬C++鐨勫惊鐜粨鏋勫叧閿瘝鐨勬槸锛?锛?br>    A銆乮f
    B銆乫or
    C銆乨o while
    D銆亀hile

37銆?. 濡傛灉k涓烘暣鏁帮紝鍒檞hile寰幆鎵ц鐨勬鏁版槸锛?锛?k=10; while(k=0) k=k-1;
    A銆?0
    B銆?
    C銆佷竴娆¢兘涓嶆墽琛?br>    D銆佹棤闄愭

38銆佷笅鍒楄娉曢敊璇殑鏄紙 锛夈€?br>    A銆佹暟缁勫悕鍏跺疄鏄暟缁勫湪鍐呭瓨涓殑棣栧湴鍧€
    B銆佹暟缁勫垵濮嬪寲鏃讹紝鑻ョ粰瀹氬厓绱犱釜鏁板皯浜庢暟缁勫厓绱狅紝澶氫綑鏁扮粍鍏冪礌鑷姩鍒濆鍖栦负鏈€鍚庝竴涓粰 瀹氬厓绱犲€?br>    C銆佷竴涓暟缁勫彧鍏佽瀛樺偍鍚岀绫诲瀷鐨勬暟鎹?br>    D銆佸綋鏁扮粍鍚嶄綔涓哄弬鏁拌浼犻€掔粰鏌愪釜鍑芥暟鏃讹紝鍘熸暟缁勪腑鍏冪礌鐨勫€煎彲鑳借淇敼

39銆佸湪瀹氫箟涓€缁存暟缁?a 鐨勫悓鏃讹紝缁欐暟缁?a 鎵€鏈夊厓绱犺祴鍒濆€?1锛屾纭殑璇彞鏄紙 锛夈€?br>    A銆乮nt a[5]={1};
    B銆乮nt a[5]={1,1,1,1,1};
    C銆乮nt a[5]=1;
    D銆乮nt a[5]={5*1};

40銆佽〃杈惧紡 5%2 鐨勭粨鏋滄槸锛?锛夈€?br>    A銆?.5
    B銆?
    C銆?
    D銆?

41銆佸喅瀹?C++ 璇█涓嚱鏁扮殑杩斿洖鍊肩被鍨嬬殑鏄紙 锛夈€?br>    A銆乺eturn 璇彞涓殑琛ㄨ揪寮忕被鍨?br>    B銆佽皟鐢ㄨ鍑芥暟鏃剁郴缁熼殢鏈轰骇鐢熺殑绫诲瀷
    C銆佽皟鐢ㄨ鍑芥暟鏃朵富璋冪敤鍑芥暟鐨勭被鍨?br>    D銆佸湪瀹氫箟璇ュ嚱鏁版椂鎵€鎸囧畾鐨勬暟鎹被鍨?br>
42銆佸凡鐭モ€渋nt a[10];鈥濓紝鍒欏 a 鏁扮粍鍏冪礌鐨勬纭紩鐢ㄦ槸锛?锛夈€?br>    A銆乤[10]
    B銆乤[0]
    C銆乤(5)
    D銆乤[3.5]

43銆佸湪寰幆璇彞鈥渇or(int i=0;i<n;i++) cout<<i*i<<鈥欌€? 鈥濅腑锛屽惊鐜綋鎵ц鐨勬鏁颁负锛?锛夈€?br>    A銆?
    B銆乶-1
    C銆乶
    D銆乶+1

44銆佽嫢 x 鍜?y 閮芥槸鏁村瀷锛屼互涓嬭〃杈惧紡 涓嶈兘姝g‘琛ㄧず鏁板鍏崇郴 |x-y|<10 鐨勬槸锛?锛夈€?br>    A銆乤bs(x-y)<10
    B銆亁-y>-10&&x-y<10
    C銆?x-y)<-10||!(y-x)>10
    D銆?x-y)*(x-y)<100

45銆佸湪涓嬪垪璇彞閫夐」涓紝锛?锛変笉 鑳戒氦鎹㈠彉閲?a 鍜?b 鐨勫€笺€?br>    A銆乤=b; b=a;
    B銆乤=a+b; b=a-b; a=a鈥揵;
    C銆乼=a; a=b; b=t;
    D銆乼=b; b=a; a=t锛?br>
46銆丆++绋嬪簭鐨勬墽琛屾€绘槸浠庡摢閲屽紑濮嬶紵
    A銆佷粠main( )鍑芥暟寮€濮嬫墽琛岋紱
    B銆佷粠鐢ㄦ埛鎸囧畾鐨勫嚱鏁板紑濮嬫墽琛岋紱
    C銆佷粠鏁翠釜绋嬪簭涓殑绗竴涓嚱鏁板紑濮嬫墽琛岋紱
    D銆佷粠绯荤粺涓殑搴撳嚱鏁板紑濮嬫墽琛岋紱

47銆丆璇█涓嚱鏁拌繑鍥炲€肩殑绫诲瀷鏄敱锛?锛夊喅瀹氥€?br>    A銆佸畾涔夊嚱鏁版椂鎵€鎸囧畾鐨勫嚱鏁扮被鍨嬶紱
    B銆佽皟鐢ㄥ嚱鏁扮殑涓昏皟鍑芥暟绫诲瀷锛?br>    C銆佽皟鐢ㄥ嚱鏁版椂涓存椂瀹氫箟锛?br>    D銆乺eturn璇彞涓殑琛ㄨ揪寮忕殑绫诲瀷锛?br>
48銆丆++涓殑鍑芥暟涔嬮棿鐨勮皟鐢ㄥ叧绯讳负锛?br>    A銆侀櫎main( )鍑芥暟澶栵紝鍏朵粬鍑芥暟鏃㈠彲浠ョ洿鎺ラ€掑綊璋冪敤涔熷彲浠ラ棿鎺ラ€掑綊璋冪敤锛?br>    B銆佸叾浠栧嚱鏁板彲浠ラ€氳繃闂存帴鏂瑰紡璋冪敤main( )鍑芥暟锛?br>    C銆乵ain( )鍑芥暟鍙互闂存帴閫掑綊璋冪敤鑷繁锛?br>    D銆侀櫎main( )鍑芥暟澶栵紝鍏朵粬鍑芥暟涓嶅厑璁哥洿鎺ラ€掑綊璋冪敤鎴栭棿鎺ラ€掑綊璋冪敤锛?br>
49銆佸畾涔夊嚱鏁版椂鐨勫舰鍙傛湰璐ㄦ槸
    A銆佸眬閮ㄥ彉閲?br>    B銆佸叏灞€鍙橀噺
    C銆侀潤鎬佸彉閲?br>    D銆佺鏈夊彉閲?br>    E銆佸叕鏈夊彉閲?br>    F銆佸姩鎬佸彉閲?br>
50銆佷粈涔堟牱鐨勫嚱鏁伴€傚悎琚0鏄庝负鍐呯疆鍑芥暟锛?br>    A銆佽妯¤緝灏忚€屽張琚绻佽皟鐢ㄧ殑绠€鍗曞嚱鏁帮紱
    B銆佽妯¤緝澶ц€屼笖琚皟鐢ㄦ鏁版瘮杈冮绻佺殑澶嶅埗鍑芥暟锛?br>    C銆佸唴鍚惊鐜垨switch绛夊鏉傝鍙ョ殑鍑芥暟锛?br>    D銆佸惈鏈夊鏉傝鍙ュ苟琚绻佽皟鐢ㄧ殑鍑芥暟锛?br>
51銆佸鏈夊嚱鏁板畾涔夊涓嬶紝鍒欏嚱鏁拌繑鍥炲€肩殑绫诲瀷涓猴細 int count(int n) { float s; 鈥︹€?return锛坰锛夛紱 }
    A銆乫loat
    B銆乮nt
    C銆乨ouble
    D銆佷笉纭畾
    E銆乧har

52銆佸湪涓€涓狢++绋嬪簭鏂囦欢涓鏋滃畾涔変簡涓や釜max鍑芥暟锛屽垎鍒负锛歩nt max (int a锛宨nt b, int c)鍜宒ouble max (double a锛宒ouble b锛宒ouble c);濡傜▼搴忎腑鏈夊彉閲忓畾涔塱nt a,b,c; 鍒欏彂鐢熷嚱鏁拌皟鐢╩ax锛坅,b,c锛夛紱鏃讹紝灏嗕細
    A銆佸彂鐢熼敊璇?br>    B銆佽皟鐢ㄤ换鎰忎竴涓?br>    C銆佷袱涓嚱鏁伴兘瑕佽皟鐢?br>    D銆佽皟鐢╥nt max (int a锛宨nt b, int c)

53銆佹暟缁勫悕浣滀负鍑芥暟鍙傛暟鍙互鏄互涓嬪摢绉嶆儏鍐?br>    A銆佹暟缁勫悕鏃㈠彲浠ヤ綔涓哄疄鍙備篃鍙互浣滀负褰㈠弬锛屾暟缁勭被鍨嬪簲涓€鑷淬€?br>    B銆佹暟缁勫悕鍙兘鍋氬疄鍙傦紝涓嶈兘鍋氬舰鍙傘€?br>    C銆佹暟缁勫悕鍙兘鍋氬舰鍙傦紝涓嶈兘鍋氬疄鍙傘€?br>    D銆佹暟缁勫悕涓嶈兘浣滀负鍑芥暟鍙傛暟鍑虹幇銆?br>
54銆佸凡鐭ユ暟缁刬nt array[6], 鍙敤浠ヤ笅鍝褰㈠紡琛ㄧず璇ユ暟缁勭殑棣栧湴鍧€
    A銆乤rray[0]
    B銆乤rray
    C銆?amp;array[0]
    D銆?amp;array
    E銆乤rray[6]

55銆佽鏈夋暟缁勫畾涔変负锛歝har str[]="I Love China";锛屽垯鏁扮粍str鎵€鍗犵殑绌洪棿涓?br>    A銆?0涓瓧鑺?br>    B銆?1涓瓧鑺?br>    C銆?2涓瓧鑺?br>    D銆?3涓瓧鑺?br>    E銆?4涓瓧鑺?br>
56銆佷笅闈㈢殑涓€缁存暟缁勫畾涔変腑锛屽摢涓€涓槸閿欑殑
    A銆乮nt array[]={4,5,6};
    B銆乮nt array[5]={4,5,6};
    C銆乮nt array[];
    D銆乧har str[]="apple";
    E銆乻tring array= 鈥渂anana鈥?

57銆佽嫢鏁扮粍瀹氫箟涓篿nt a[5]={1,3,5};鍒欎笅鍒楀摢涓〃杈惧紡鏄纭殑
    A銆乤++;
    B銆乤[3]=0;
    C銆乤[5]=0;
    D銆乤[2]=5;
    E銆乤=1;

58銆佸鏋滃凡瀹氫箟浜哸鍜宐涓や釜瀛楃鍨嬮暱搴︾浉鍚岀殑鏁扮粍锛屼笖b宸茶鍒濆鍖栵紝閭d箞浠ヤ笅琛ㄨ揪寮忓摢涓槸閿欒鐨?br>    A銆乤[0]=b[0];
    B銆乤=b;
    C銆乧in>>a;
    D銆乧out<<b;
    E銆乧out<<b[0];

59銆佽嫢瀹氫箟浜嗗瓧绗﹀瀷鏁扮粍 char str[ ]= 鈥淗a\0ppy\0鈥?鍒欎笅鍒楃殑鎻忚堪姝g‘鐨勬槸
    A銆佹暟缁勯暱搴︿负5
    B銆佹暟缁勫崰鐨勭┖闂存暟涓?涓瓧鑺?br>    C銆乧out<<str锛涜鍙ヨ緭鍑虹殑鏄疕appy
    D銆佹暟缁勫崰鐨勭┖闂存暟涓?涓瓧鑺?br>    E銆乧out<<str锛涜鍙ヨ緭鍑虹殑鏄疕a

60銆佷笅鍒楄鍙ヤ笉鑳芥纭祴鍊肩殑鏄?br>    A銆乧har a1[]= 鈥渉appy\r鈥?
    B銆乧har a2[7]= {鈥榟鈥? 鈥榓鈥? 鈥榩鈥? 鈥榩鈥? 鈥榶鈥檥;
    C銆乧har a3[10]; a3= 鈥渉appy鈥?
    D銆乧har a4[10]= 鈥渉appy\r鈥?
    E銆乧har a0[8],a5[]= 鈥渉appy\r鈥?a0=a5;

61銆佸亣瀹氬惊鐜綋涓换鎰忎竴涓暟缁勫厓绱犵敤str[i]琛ㄧず锛屼互涓嬪摢涓〃杈惧紡鍙互鍒ゆ柇杩欎釜鍏冪礌鏄惁鏄皬鍐欏瓧姣?br>    A銆乻tr[i] <= 'z' || str[i] >= 'a'
    B銆乻tr[i] >= 鈥榸鈥?amp;& str[i] <= 'a'
    C銆?a' <= str[i] <= 'z'
    D銆乻tr[i] <= 'z' && str[i] >= 'a'

62銆佸鏁扮粍int a[6]={2,3,4}; char b[7]= 鈥渉appy鈥?鐨勬搷浣滄纭殑鏄?br>    A銆乧in>>a;
    B銆乧in>>b;
    C銆乧out<<a;
    D銆乧out<<b;
    E銆乧out<<b[7];
    F銆乧out<<a[6];

63銆佸湪涓嬪垪瀵瑰瓧绗︿覆鐨勫畾涔変腑锛岄敊璇殑鏄紙 锛?br>    A銆乧har str[10]= 鈥砐inJiang鈥?
    B銆乧har *str=鈥砐inJiang鈥?
    C銆乧har str[9]={ 'X', 'i', 'n', 'J', 'i','a','n','g','!','\0'};
    D銆乧har str[]=鈥砐inJiang鈥?
    E銆乧har str[6]=鈥砪hina鈥?

64銆佹湁璇存槑int s[2]={0,1},*p=s;鍒欎笅鍒楅敊璇殑C++璇彞鏄紙 锛?br>    A銆乻=s+1;
    B銆乸=p+1;
    C銆?p++;
    D銆?*p)++;
    E銆乸=p+2;

65銆佷娇鎸囬拡鍙橀噺q鎸囧悜涓€缁存暟缁凚鐨勭1涓厓绱狅紝姝g‘鐨勮〃杈惧紡鏄紙 锛?br>    A銆乹=&B 鎴杚=&B[0]
    B銆乹=B鎴杚=&B[0]
    C銆乹=&B鎴杚=B[0]
    D銆乹=B鎴杚=B[0]

66銆佸亣瀹氭寚閽堝彉閲弍鎸囧悜鐨勫瓧绗︿覆涓?'string''锛屽垯cout<<p+1鐨勮緭鍑虹粨鏋滀负锛?锛?br>    A銆乼ring
    B銆乺ing
    C銆乮ng
    D銆乼
    E銆乺
    F銆乮

67銆佸凡鐭ユ湁瀹氫箟鈥渋nt a[3]={0,1,2},*p=a锛?q=&a[2];鈥濆垯q-p鐨勫€兼槸锛?锛?br>    A銆?
    B銆?
    C銆?
    D銆?

68銆佽嫢瀹氫箟 int a[10]="shandong"; int *p=a; 鍒?(p+2)鏄灏? )
    A銆乭
    B銆乤
    C銆乤[2]鐨勫湴鍧€
    D銆乻
    E銆乤[1]

69銆佷互涓嬪摢涓畾涔夋寚閽堝彉閲忕殑鏂规硶鏄纭殑( 锛?br>    A銆乮nt a, *b; b=&a;
    B銆乮nt *b; b=1024;
    C銆乮nt a, *b; *b=a;
    D銆乮nt a, *b; b=a;

70銆佸鏋渪鏄瓧绗﹀瀷鍙橀噺锛屽垯涓嬮潰鍚堟硶鐨勮〃杈惧紡鏄? )銆?br>    A銆侊紗(x+1)
    B銆?x
    C銆?&x
    D銆?amp;*x

71銆佸彲浠ユ帶鍒跺绫绘垚鍛樼殑璁块棶锛屽湪瀹氫箟绫绘椂浣跨敤涓嬪垪鍏抽敭瀛楋紙 锛夈€?br>    A銆乸rivate
    B銆乸ublic
    C銆乸rotected
    D銆乻izeof
    E銆乸rice

72銆佸鏋淓mployee鏄竴涓被锛宲ayroll()鏄绫荤殑涓€涓嚱鏁帮紝骞朵笖鏈?Employee e2,*ptr; ptr = &e2; 鍒欒皟鐢ㄦ垚鍛樺嚱鏁皃ayroll()鏃讹紝涓嬪垪鏍煎紡姝g‘鐨勬槸锛堬級銆?br>    A銆乪2.payroll()
    B銆乸tr->payroll()
    C銆乪2->payroll()
    D銆乸tr.payroll()
    E銆乸.payroll

73銆佷互涓嬪摢浜涙槸甯歌鐨勭畻娉曡〃绀烘柟娉曪紵
    A銆佽嚜鐒惰瑷€
    B銆佹祦绋嬪浘
    C銆丯-S鍥?br>    D銆佷吉浠g爜
    E銆佺紪绋嬭瑷€

74銆佺粨鏋勫寲绋嬪簭璁捐璇█涓紝浣跨敤鍝笁绉嶅熀鏈粨鏋勭粍缁囪绠楁満绋嬪簭涓殑璇彞锛?br>    A銆侀『搴忕粨鏋?br>    B銆佸祵濂楃粨鏋?br>    C銆侀€夋嫨缁撴瀯
    D銆佸惊鐜粨鏋?br>    E銆佽烦杞粨鏋?br>
75銆佷笅鍒椾笉鍚堟硶鐨勫彉閲忓悕涓?br>    A銆乤student
    B銆乻_student
    C銆亀ang13
    D銆乻t%udent
    E銆佄?br>    F銆?66student
    G銆乥reak
    H銆乢student
    I銆丆HAR

76銆佽涓嬪垪鍙橀噺鍧囧凡姝g‘澹版槑涓篿nt绫诲瀷锛屼笅鍒楅€夐」涓笉姝g‘鐨勮祴鍊艰〃杈惧紡鏄?br>    A銆乤=b+c=1
    B銆乲 = I == 1
    C銆乶1 = n2 = n3
    D銆乤+=b
    E銆乤!=b
    F銆?+a++
    G銆?+(a++)
    H銆?a++
    I銆乮+++j

77銆佷竴涓嚱鏁扮敱浠ヤ笅鍝嚑閮ㄥ垎缁勬垚?
    A銆佸嚱鏁伴閮?br>    B銆佸ご鏂囦欢
    C銆侀澶勭悊閮ㄥ垎
    D銆佸嚱鏁颁綋
    E銆乵ain 鍑芥暟

78銆佸嚱鏁颁綋鐢变互涓嬪摢鍑犻儴鍒嗙粍鎴?br>    A銆佺敱涓€瀵硅姳鎷彿鈥渰}鈥濈晫瀹?br>    B銆佸彉閲忕殑澹版槑
    C銆佸畬鎴愬嚱鏁板姛鑳界殑鍙墽琛岃鍙?br>    D銆佸嚱鏁扮殑澹版槑
    E銆佸嚱鏁板悕

79銆佷娇鐢–++璇█缂栫▼锛屼笅闈㈢殑鎻忚堪涓嶆纭殑鏄紙 锛?br>    A銆乨o-while璇彞鏋勬垚鐨勫惊鐜紝褰搘hile璇彞涓殑琛ㄨ揪寮忓€奸潪闆舵椂缁撴潫寰幆
    B銆乨o-while璇彞鏋勬垚鐨勫惊鐜繀椤荤敤break璇彞鎵嶈兘閫€鍑?br>    C銆佷笉鑳戒娇鐢╠o-while璇彞鏋勬垚鐨勫惊鐜?br>    D銆乨o-while璇彞鏋勬垚鐨勫惊鐜紝褰搘hile璇彞涓殑琛ㄨ揪寮忓€间负闆舵椂缁撴潫寰幆

80銆佷互涓嬫弿杩颁腑涓嶆纭殑鏄紙 锛?br>    A銆乧ontinue璇彞鐨勪綔鐢ㄦ槸缁撴潫鏁翠釜寰幆浣撶殑鎵ц
    B銆佸彧鑳藉湪寰幆浣撳唴鍜宻witch璇彞浣撳唴浣跨敤break璇彞
    C銆佸彧鑳藉湪寰幆浣撳唴浣跨敤break鎴朿ontinue璇彞
    D銆佷粠澶氬眰寰幆宓屽涓€€鍑烘椂锛屽彧鑳戒娇鐢╣oto璇彞

81銆佷笅鍒楄〃杈惧紡涓彲浠ヤ綔涓烘爣璇嗙鐨勬槸锛?锛夈€?br>    A銆乹lut_2016
    B銆乢abc
    C銆乺eturn
    D銆亁yz@QLUT

82銆佸湪涓嬮潰鐨勪竴缁存暟缁勫畾涔変腑锛屾病鏈夎娉曢敊璇殑鏄紙 锛夈€?br>    A銆乮nt a[]={1,2,3};
    B銆乮nt a[10]=1;
    C銆乮nt a[];
    D銆乮nt a[5];

83銆佸嚱鏁拌皟鐢ㄦ椂锛屽舰鍙傚拰瀹炲弬鍙互鏄笅闈㈠摢鍑犵鎯呭喌锛?br>    A銆佸舰鍙傛槸鏁扮粍鍚嶏紝瀹炲弬涔熸槸鏁扮粍鍚嶏紱
    B銆佸疄鍙傛槸鏁扮粍鍚嶏紝褰㈠弬鏄寚閽堝彉閲忥紱
    C銆佸疄鍙傛槸鎸囬拡鍙橀噺锛屽舰鍙傛槸鏁扮粍鍚嶏紱
    D銆佸疄鍙傛槸瀛楃涓插悕锛屽舰鍙傛槸鎸囬拡鍙橀噺锛?br>    E銆佸疄鍙傛槸鏁村瀷鍙橀噺鍚嶏紝褰㈠弬鏄暣鍨嬫暟缁勫悕锛?br>
84銆佷笅闈㈠摢绉嶆儏鍐典笅鍙互瀹炵幇鍑芥暟鐨勯噸杞斤紵
    A銆佸嚱鏁扮殑鍙傛暟涓暟涓嶅悓锛?br>    B銆佸嚱鏁扮殑鍙傛暟绫诲瀷涓嶅悓锛?br>    C銆佸嚱鏁扮殑杩斿洖鍊肩被鍨嬩笉鍚岋紱
    D銆佸嚱鏁颁腑鎵ц鐨勬寚浠や笉鍚岋紱
    E銆佸嚱鏁扮殑鍚嶇О涓嶅悓锛?br>
85銆佸畾涔変袱涓彉閲忥紝string s1, s2= 鈥渁pple鈥?涓嬪垪璇彞琛ㄨ揪姝g‘鐨勬槸
    A銆乻1=s2;
    B銆乻2[1]=a;
    C銆乻2[5]=e;
    D銆乻1[1]= s2[4];

86銆佸鏋滃畾涔塱nt a, *p=&a; 鍒欒〃杈惧紡( )涓洪€昏緫鍋囧€笺€?br>    A銆乸= =&*p
    B銆?p= =&a
    C銆乤= =&*a
    D銆乤= =*&a

87銆佽嫢鏈変互涓嬪畾涔夛紝鍒欒祴鍊兼纭殑鏄? )銆?int a, b, *p; float c, *q;
    A銆乹=&c锛?br>    B銆乹=&a锛?br>    C銆乸=&c锛?br>    D銆乸=&a;
    E銆乤=&b;

88銆佷竴涓被鐨勬瀯閫犲嚱鏁板彲浠ヨ閲嶈浇锛屾瀽鏋勫嚱鏁颁笉鑳借閲嶈浇銆?br>
89銆佺被鍖呭惈鏁版嵁鍜屽嚱鏁般€?br>
90銆乻witch璇彞涓紝default濡傛灉鏄渶鍚庝竴椤癸紝鍚庨潰鍙互涓嶅姞break鍛戒护锛屼笉褰卞搷绋嬪簭鐨勬墽琛屻€?br>
91銆佽〃杈惧紡(x=4*5, x*5)涓嶅悎娉曘€?br>
92銆佽嫢a涓篿nt鍨嬪彉閲忥紝宸插畾涔夛紝鍒?a=5+3)涔熸槸琛ㄨ揪寮忥紝鍏跺€间负8銆?br>
93銆丆++鏍囪瘑绗︾殑棣栧瓧姣嶅彲浠ユ槸鏁板瓧

94銆丆++绋嬪簭浠巑ain鍑芥暟寮€濮嬫墽琛岋紝涔熻窡闅弇ain鍑芥暟鐨勭粨鏉熻€岀粨鏉?br>
95銆佸綋鍦ㄧ▼搴忎腑鎵ц鍒癱ontinue璇彞鏃讹紝灏嗙粨鏉熸墍鍦ㄥ惊鐜鍙ヤ腑寰幆浣撶殑涓€娆℃墽琛屻€?br>
96銆佸綋鍦ㄧ▼搴忎腑鎵ц鍒癰reak璇彞鏃讹紝灏嗙粨鏉熸湰灞傚惊鐜被璇彞鎴杝witch璇彞鐨勬墽琛屻€?br>
97銆佲€淐HINA鈥濆湪鍐呭瓨涓崰鎹殑瀛樺偍绌洪棿鏄?5 涓瓧鑺傘€?br>
98銆丆++ 琛ㄨ揪寮?5/8 鍜?5.0/8 鐨勫€兼槸鐩哥瓑鐨勶紝涓旈兘涓?double 鍨嬨€?br>
99銆佸甫榛樿鍙傛暟鐨勫嚱鏁颁篃鍙互琚噸杞?br>
100銆佸湪C++涓紝濡傛灉鍑芥暟褰㈠弬鏄暟缁勫悕锛屽垯鍑芥暟琚皟鐢ㄦ椂瑕佸紑杈熶竴涓柊鐨勪笌瀹炲弬鍚屾牱澶у皬鐨勬暟缁勭┖闂存潵鎺ュ彈瀹炲弬鏁扮粍浼犻€掕繃鏉ョ殑鏁扮粍鍏冪礌鍊笺€?br>
101銆佽嫢int i=5; 鍒檌nt a[i];鐨勫啓娉曟槸瀵圭殑

102銆佹暣鍨嬫暟缁勫彲浠ョ敤鏁扮粍鍚嶆潵璋冪敤鏁翠釜鏁扮粍

103銆佽嫢鏌愬嚱鏁扮殑褰㈠紡鍙傛暟鏄寚閽堝彉閲忥紝鍒欒繖涓嚱鏁拌璋冪敤鏃剁浉搴斿疄闄呭弬鏁板彧鑳芥槸鏁扮粍鍚嶃€?br>
104銆佹寚閽堝彉閲忓氨鏄笓闂ㄧ敤鏉ュ瓨鏀惧湴鍧€鐨勫彉閲忋€?br>
105銆丳roduct绫荤殑鏋愭瀯鍑芥暟鐨勫悕瀛楁槸____________銆?br>
106銆佺被鐨刜_______鎴愬憳鍙兘琚墍灞炵被鐨勬垚鍛樺嚱鏁拌闂紝涓嶈兘琚绫讳互澶栫殑鍏跺畠鍑芥暟璁块棶銆?br>
107銆佷负瑙e喅涓€涓棶棰樿€岄噰鍙栫殑鏂规硶鍜屾楠わ紝绉颁负( )銆?br>
108銆佺畻娉曞垎涓猴紙 锛夌畻娉曞拰闈炴暟鍊煎瀷绠楁硶銆?br>
109銆佸亣瀹歺鏄竴涓€昏緫閲忥紝鍒?x&&!x)||0鐨勫€间负

110銆乮nt a=3, b; 鍒欒〃杈惧紡(int)(a+7.5)%3+(b=4)鐨勫€间负

111銆佷娇鐢ㄤ簡搴撳嚱鏁扮殑C++婧愮▼搴忚鎴愪负鍙墽琛岀▼搴忚渚濇缁忚繃缂栬瘧銆乢_____涓ゆ銆?br>
112銆佸嚱鏁?int maxNumber(float a, float b) { return a>b?a:b; } 璋冪敤濡備笅 cout << maxNumber(2.1, 3.5); 鍒欒緭鍑虹粨鏋滀负

113銆佺粨鏋勫寲绋嬪簭璁捐鐨勪笁绉嶅熀鏈粨鏋勪负椤哄簭缁撴瀯銆侀€夋嫨缁撴瀯鍜岋紙 锛?br>
114銆?. for(;;)璇彞鐩稿綋浜巜hile锛?锛?br>
115銆佸凡鐭ユ暟缁?a 瀹氫箟涓衡€渋nt a[6];鈥濆垯 鏁扮粍 a 鐨勫厓绱犵殑鏈€澶т笅鏍囨槸

116銆乻trlen("qlu") 鐨勮繑鍥炵粨鏋滀负

117銆佸嚱鏁拌皟鐢ㄦ椂锛岀敤鏁扮粍鍚嶄綔涓哄嚱鏁扮殑褰㈠弬鍜屽疄鍙傦紝浼犻€掔殑鏄疄鍙傛暟缁勭殑_________

118銆佸綋鍑芥暟鐨勫弬鏁颁釜鏁扮浉鍚屽苟涓斿嚱鏁颁綋鐩稿悓锛屽弬鏁扮被鍨嬩笉鍚屾椂锛屽彲浠ュ畾涔塤________鏉ヤ唬鏇垮畾涔夊涓嚱鏁般€?br>
119銆佸瓧绗︽暟缁刢har str[]={"Computer"};鐨勯暱搴︿负 銆?br>
120銆佸瓧绗︽暟缁刢har str[]={"Computing"};鎵€鍗犵殑鍐呭瓨绌洪棿涓?涓瓧鑺傘€?br>
121銆佸凡鐭ユ湁瀹氫箟鈥渋nt m, a[]={1,2,3}, *p=a;鈥濓紝鍦ㄦ墽琛屸€渕=*p++;鈥濆悗锛宮鐨勫€兼槸_______銆?br>
122銆佸凡鐭ユ湁瀹氫箟鈥渋nt a[]={1,2,3}, *p=a;鈥濆垯涓巔[0]瀹屽叏绛変环鐨勬暟缁勫厓绱犵殑鍊兼槸_________銆?br>
鍦ㄧ嚎閮ㄥ垎鑰冭瘯缂栫▼棰橀儴鍒?/strong>

姝e紡鑰冭瘯缂栫▼棰橀儴鍒?/strong>

1銆佺紪鍐欑▼搴忚緭鍑鸿鍙?br>
2銆佹帓搴?br>
3銆佹眰涓€缁勬暟涓兘琚?鎴?鏁撮櫎鐨勬暟鐨勪釜鏁?br>