問題詳情
38)以下程序的输出结果是int f(){ static int i=0;int s=1;s+=i; i++;return s; }main(){ int i,a=0;for(i=0;i<5;i++)a+=f();printf("%dn",A);}
(A)20
(B)24
(C)25
(D)15
(A)20
(B)24
(C)25
(D)15
參考答案
答案:D
難度:適中0.5
統計:A(0),B(0),C(0),D(0),E(0)
內容推薦
- 7 If it’s fine, we’ll go camping. Would you like to join us?Cathy: I’d like to, but the deadline
- 32)若有定义: char *st= "how are you "; ,下列程序段中正确的是(A)char a[11], *p; strcpy(p=a+1,&st[4])
- Claire had luggage an hour befor her plane left.(A)check (B)checking (C)to check (D)checked
- Some insects________the colour of their surroundings to protect themselves.(A)take in (B)take off
- 1)一、选择题在下列各题的A)、B)、C)、D)四个选项中,只有一个选项是正确的,请将正确的选项涂写在答题卡相应位置上,答在试卷上不得分。算法的空间复杂度是指(A)算法程序的长度 (B)算法
- 37)下列选项中错误的说明语句是(A)char a[]={′t′,′o′,′y′,′o′,′u′,′′}; (B)char a[]={"toyou"};(C)char a
- __________________all of them are strong candidates, only one will be chosen for the post.(A)Sinc
- —Will you read me a story ,Mummy?--OK.You________have one if you go to bed as soon as possible.(A
- 31)有下面程序段#include "stdio.h"#include "string.h"main(){ char a[3][20]={{"
- 35)有以下函数int aaa(char *s){ char *t=s;while(*t++);t--;return(t-s);}以下关于aaa函数的功能的叙述正确的是(A)求字符串s的长度
內容推薦
- 8Cathy: Yes, please. Can you suggest any good reference books?Tom : You may want to read Origins
- More highways have been built in China,___________it much easier for people to trave form one pla
- I’d like to start my own business –that’s I’d do if I had the money.(A)why (B)when (C)which (D)wh
- custom(A)measure (B)upstairs (C)respect (D)sugar
- 9Tom : Go to the Science Museum website, and you’ll find lots of up-to-date information.Cathy: G
- —We can give you a ride into town.--_________Thank you.(A)Yes,why not? (B)Oh,it would be my pleas
- -Would you get me a bar of chocolate from the kitchen,dear?- one?(A)Other (B)Every (C)Another (D)
- (A)standing (B)travelling (C)gathering (D)running
- The new stadium being built for the next Asian Games will be the present one。(A)as three times bi
- I__________through that bitter period without your generous help.(A)couldn’t have gone (B)didn’t
- (A)faraway (B)poor (C)different (D)ancient
- (A)unless (B)because (C)so (D)if
- 無一定雇主之按摩業者, 要參加勞工保險時, 可由那個單位代為申請 (1) 行政院勞工委員會 (2)內政部 (3) 按摩中心 (4) 按摩業職業工會。(A)4(B)3(C)1(D)2
- (A)them (B)anything (C)nothing (D)those
- (A)curious (B)worrying (C)dangerous (D)puzzling
- 13)下列选项可以正确表示字符型常量的是(A)′r′ (B)"a" (C)"897" (D)296
- (A)the villagers (B)his servants (C)the others (D)the rest
- (A)interest (B)concern (C)use (D)attraction
- (A)good (B)certain (C)true (D)strange
- (A)welcomed (B)met (C)taccepted (D)persuaded
- (A)could (B)might (C)should (D)must
- 15)设变量均已正确定义,若要通过scanf("%d%c%d%c",&a1,&c1,&a2,&c2);语句为变量a1和a2赋数值10和20,为变量c1和c2赋字符X和Y。
- 第二部分:阅读理解(共两节,满分40分)第一节(共15小题;每小题2分,满分30分)阅读些列四篇短文,从每小题后所给的A、B、C、D四个选项中,选出你最佳选项,并在答题卡上将该选项涂黑。46.
- 52. In which of the following aspects was Irene Cuire different from her mother?(A)Irene worked
- 17)在执行下述程序时,若从键盘输入6和8,则结果为main(){ int a,b,s;scanf("%d%d",&a,&B);s=aif(a<B) s=b; s*