网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
I had a sandwich before I played tennis, __ I'm very hungry now.
A. but
B. and
C. so
参考答案
更多 “ I had a sandwich before I played tennis, __ I'm very hungry now.A. butB. andC. so ” 相关考题
考题
I’ll give him your message___he comes back from lunch.
A. untilB. as soon asC. whileD. before
考题
I _____my breakfast at 8, but_____ I lunch yet. .A. had, haven't hadB. had, didn't haveC. have had, didn't have
考题
—Why didn't you go to the cinema yesterday?—I______, but my daughter returned from America the moment I was leaving.A. didB. wouldC. was going toD. had
考题
22、假设整型变量n,m,i已经声明和赋值,且大于n>2.有如下运算规则:如果n是素数,m=0;否则,m=n。如下程序中正确实现此运算的是?A.m=n; for(i=2;i<n;i++) if(n%i==0){ m=0;break; }B.m=0; for(i=2;i<n;i++) if(n%i==0){ m=n;break; }C.m=0; for(i=2;i<n;i++) if(n%i==0){ m=n;continue; }D.m=n; for(i=2;i<n;i++) if(n%i==0){ m=0;continue; }
考题
下面()仅输出m的大于1的最小因子。A.for (i =2; i<=m-1; i++) if (m % i == 0) { printf("%d is 最小因子n", i); break; }B.for (i =2; i<=m-1; i++) if (m % i == 0) { printf("%d is 最小因子n", i); continue; }C.for (i =2; i<=m-1; i++) if (m % i == 0) { printf("%d is 最小因子n", i); }D.i=2; while (m % i != 0) i++; printf("%d is 最小因子n", i);
考题
下面()是正确的判断素数程序(m>1)。A.j=0; for (i =2; i<=m-1; i++) if (m % i != 0) j++; if(j==m-2) printf(“%d是素数n", m);B.j=0; for (i =2; i<=m-1; i++) if (m % i == 0) j++; if(j==0) printf(“%d是素数n", m);C.flag=0; for (i =2; i<=m-1; i++) if (m % i == 0) flag=1; if(flag==0) printf(“%d是素数n", m);D.for (i =2; i<=m-1; i++) if (m % i == 0) i=m+2; if(i==m+3) printf(“%d是素数n", m);
考题
假设整型变量n,m,i已经声明和赋值,且大于n>2.有如下运算规则:如果n是素数,m=0;否则,m=n。如下程序中正确实现此运算的是?A.m=n; for(i=2;i<n;i++) if(n%i==0){ m=0;break; }B.m=0; for(i=2;i<n;i++) if(n%i==0){ m=n;break; }C.m=0; for(i=2;i<n;i++) if(n%i==0){ m=n;continue; }D.m=n; for(i=2;i<n;i++) if(n%i==0){ m=0;continue; }
热门标签
最新试卷