下列给定程序中,函数fun的功能是:把形参a所指数组中的奇数按原顺序依次存放到a[0

题型:问答题

问题:

下列给定程序中,函数fun的功能是:把形参a所指数组中的奇数按原顺序依次存放到a[0]、a[1]、a[2]…中,把偶数从数组中删除,奇数个数通过函数值返回。
例如,若a所指数组中的数据最初排列为:9,1,4,2,3,6,5,8,7,删除偶数后a所指数组中的数据为:9,4,3,5,7,返回值为5。
请在下划线处填入正确的内容并将下划线删除,使程序得出正确的结果。
注意:部分源程序给出如下。
不得增行或删行,也不得更改程序的结构!
试题程序:
#include<stdio.h>
#define N 9
int fun(int a[],int n)

int i,j;
j=0;
for(i=0;i<n;i++)
/********found********/
if(a[i]%2== (1) )

/********found********/
a[j]=a[i]= (2) ;

/********found********/
return (3) ;

main()
(int b[N]=(9,1,4,2,3,6,5,8,7),i,n;
printf("\nThe original data:\n");
for(i=0;i<N;i++)
printf("%4d",b[i]);
printf("\n");
n=fun(b,N);
printf("\nThe number of odd:%d\n",n);
printf("\nThe odd number:\n");
for(i=0;i<n;i++)
printf("%4d",b[i]);
printf("\n");

考点:计算机等级考试C语言二级C语言机试
题型:问答题
完型填空。
    Mark   1   home from school one day when he noticed a boy ahead of him. He had tripped and dropped
all of the books he was carrying,   2   two sweaters, a baseball bat and a glove. Mark knelt down and helped
the boy   3   the things.   4   they were going the same way, he offered to carry some things for the boy. As
they walked, Mark discovered   5   name was Bill. He loved video games, baseball and history, but he was
having trouble with some of his   6  . They arrived at Bill's home first. Mark   7   in for a Coke and to watch
some television. The afternoon   8   pleasantly with some laughs and small talk. Then Mark went home.
    They continued to see each other around school, had lunch together once or twice, then   9   graduated
from junior high school. They ended up in the same high school. Finally the long-awaited senior year came.
Three weeks before graduation, Bill asked Mark if they could talk. Bill reminded him of the day years ago
when they  10 . "Did you ever wonder  11  I was carrying so many things home that day?" asked Bill. "You
see, I cleaned out my locker because I didn't want to leave a mess for  12 . I had stored away some of my
mother's sleeping pills. I was going home to kill  13 . But after we spent some time together  14  and laughing,
I realized that if I had died, I would have missed so many good times. So you see, Mark, when you
picked up those books that day, you did  15 . You saved my life."
( )1. A. walks      
( )2. A. along with  
( )3. A. picking up  
( )4. A. Since       
( )5. A. he         
( )6. A. subject    
( )7. A. was inviting 
( )8. A. past         
( ) 9. A. they both    
( )10. A. had first met
( )11. A. why         
( )12. A. no one      
( )13. A. me         
( )14. A. talking     
( )15. A. lots of     
B. was walking  
B. along     
B. picked up   
B. Because of  
B. the boy    
B. subjects    
B. invited    
B. pasted     
B. both of they
B. were meeting  
B. when     
B. everyone   
B. I        
B. to talk    
B. many more   
C. walked     
C. along and  
C. pick up    
C. Before    
C. her      
C. lesson    
C. was invited  
C. passed    
C. them both 
C. would meet  
C. where    
C. anyone else    
C. myself    
C. talk      
C. a lot of   
D. walking      
D. together     
D. to pick      
D. After        
D. the boy's   
D. class        
D. had invited                   
D. pass by      
D. all of them  
D. met first    
D. that         
D. someone else 
D. my           
D. talked       
D. a lot more   
题型:问答题

截至2011年年底,我国国家级、省级美术馆全部向公众免费开放;全国所有公共图书馆、文化馆(站)实现无障碍、零门槛进入,公共空间设施场地全部免费开放,所提供的基本服务项目全部免费。2012年年底之前各级美术馆将全部向公众免费开放。这有利于 [ ]

①满足人民群众的精神文化需要②传播和普及各种文化思想③实现经济效益与社会效益的统一④保障人民的基本文化权益

A.①②

B.①④

C.②③

D.③④

题型:问答题

病历摘要:患儿,女,6个月,体重8kg。呕吐、腹泻、伴发热3天,呕吐物为胃内容物,非喷射状,大便为黄绿色水样便,无粘液及脓血,10余次/日,每次量多,尿量明显减少。查体:体温39.2℃,脉搏120次/分,面色苍白,精神萎糜,前囟和眼窝深凹陷,皮肤弹性极差,双肺未见异常,心音低钝,心率不齐,四肢发凉。

若患儿存在重度脱水,作为首诊医生,首先应予的处理是()

A.予160ml生理盐水扩容

B.予160ml2/3张液扩容

C.总液量不超过500ml,以免发生心力衰竭

D.可视周围循环情况,重复扩容

E.若第一次扩容后,周围循环仍未改善,则予胶体液扩容

F.扩容总量在8~12小时内静脉给入

G.扩容总量在30~60min内快速静脉滴入

H.第一次扩容后,周围循环仍未改善,予240ml生理盐水扩容

题型:问答题

自动堆垛机改进的主要内容是什么?

题型:问答题

由大革命失败到土地革命战争兴起的历史转折点是( )

A.南昌起义

B.秋收起义

C.八七会议

D.党的六大

更多题库