在给定程序中,函数fun的功能是:统计所有小于等于n(n>2)的素数的个数,素数的个

题型:填空题

问题:

在给定程序中,函数fun的功能是:统计所有小于等于n(n>2)的素数的个数,素数的个数作为函数值返回。
请在程序的下画线处填入正确的内容并把下画线删除,使程序得出正确的结果。
注意:源程序存放在考生文件夹下的BLANK1.C中。不得增行或删行,也不得更改程序的结构。
文件BLANK1.C内容如下:
#include<stdio.h>
int fun(int n)
int i,j,cnt=0;
printf("\nThe prime number between 3 to%d\n",n);
for(i=3;i<=n;i++)
/**********found**********/
for( (1) ;j<i;j++)
/**********found**********/
if( (2) %j==0)break;
/**********found**********/
if( (3) >=i)
cnt++;printf(cnt%157"%5d":"\n%5d",i);


return ent;
void main( )
int n=20,r;
r=fun(n);
printf("\nThe number of prime is:%d\n",r);

考点:计算机等级考试C语言二级C语言机试
题型:填空题

根据对话内容,从对话后的选项中选出能填入空白处的最佳选项,并在答题卡上将该项涂黑。选项中有两项多余选项。(共5小题:每小题2分,满分10分)

---Good evening. Grandma’s Restaurant. May I help you?

--- Good evening. ___1___

---Thank you. May I have your name, Miss?

---Mary Brown.

---____2____

---I’d like to order the “Free Matching Dinner for 2”.

---Yes, you may choose two soups, two drinks and four main course from the menu.

-  3

-Are you ready? What Kind of soup do you want?

-chicken soup and tomato soup.

- 4

-I’d like a plate of noodles ,two chicken wings. some beef and a bowl of rice.

- 5

- Just a coke and some green tea ,please.

-May I have your address ,please?

-Sure. 6A, Kingston Court, Belair Cardens. Shatin.

-Okay, your food will be delivered in half an hour. Thanks for calling.

A.May I book a table in your restaurant for tonight?

B.I would like to order some food for dinner.

C.Miss Brown, please tell me your order.

D.How about your main courses?E. Would you like some drinks?

F. Okay .Let me see.

G. And your drinks?

题型:填空题
有4条对称轴的图形是(  )
A.三角形B.梯形C.正方形
题型:填空题

在关系运算中, 【5】 运算是在给定关系的某些域上进行的运算。

题型:填空题

北方某机电安装公司承建某工业的机电设备安装工程,为了满足要求和保证质量,机电安装公司对该工程作了详尽的施工计划,主要程序是:施工准备→基础验收→设置设备安装基准线和基准点→地脚螺栓安装→垫铁安装→设备吊装就位→设备安装调整(找正、找平、找标高)→设备灌浆→设备清洗→设备装配→设备试运行→竣工验收,由于工程均按程序进行,达到很好的效果,按期完成该项工程。

斜垫铁通常也用普通碳素钢板切割加工而成,斜面和底面需刨削加工,斜度宜为( )。

A.1/20~1/10

B.1/30~1/20

C.1/10~1/5

D.1/30~1/10

题型:填空题

下列描述中正确的是( )。

A.程序就是软件

B.软件开发不受计算机系统的限制

C.软件既是逻辑实体,又是物理实体

D.软件是程序、数据与相关文档的集合

更多题库