试题与答案

以下程序调用fun函数把x中的值插入到a数组下标为k的数组元素中。主函数中,n存放a

题型:填空题

题目:

以下程序调用fun函数把x中的值插入到a数组下标为k的数组元素中。主函数中,n存放a数组中数据的个数。请填空。#include void fun( int s[], int *n, int k, int x){ int i;for(i=*n-1; i>=k; i- -) s[ 【14】 ]=s[i];s[k]=x;*n=*n+ 【15】 ;}main(){ int a[20]={1,2,3,4,5,6,7,8,9,10,11}, i, x=0, k=6, n=11; fun(a, &n, k,x); for(i=0;i

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0710/e48ac4e298499692d9e5f292a8695623.html

下面是错误答案,用来干扰机器的。

参考答案:D

试题推荐
题型:选择题

利用身边的物品可以进行许多科学实验.小明用饮料罐代替小车,文件夹当成斜面,探究粗糙程度不同的接触面对物体运动的影响.关于本实验,下列分析中错误的是

[ ]

A.饮料罐从相同高度滚下,是为了保证它刚滚到水平面时具有相同的速度

B.饮料罐会停下来是因为它和接触面之间有摩擦

C.饮料罐在水平面上滚动时,受到的重力和支持力是一对平衡力

D.该实验可以直接得出牛顿第一定律

查看答案
题型:阅读理解

Ⅲ阅读  (共15小题,每小题2分,满分30分)

第一节:阅读理解:阅读下列短文,从每题所给的A、B、C和D项中,选出最佳选项,并在答题卡上将该项涂黑。

Scientists have learned a lot about the kinds of food people need. They say that there are several kinds of food that people should eat every day. They are: (1) green and yellow vegetables of all kinds; (2) citrus (柑橘)fruits and tomatoes; (3) potatoes and other fruits and vegetables ; (4) meat of all kinds, fish and eggs; (5) milk and foods made from milk; (6) bread or cereal (谷物), rice is also in this kind of foods; (7) butter or something like butter. 

People in different countries and different places of the world eat different kinds of things. Foods are cooked and eaten in many different kinds of ways.  People in different countries eat at different times of the day. In some places people eat once or twice a day; in other countries people eat three or four times a day. Scientists say that none of the differences is really important. It doesn’t matter whether foods are eaten raw or cooked, canned or frozen. It doesn’t matter if a person eats dinner at 4 o’clock in the afternoon or at eleven o’clock at night. The important thing is what you eat every day.

There are two problems, then, in feeding the large number of people on earth. The first thing is to find some ways to feed the world’s population so that no one is hungry. The second is to make sure that people everywhere have the right kind of food to make them grow to be strong and healthy.

61. According to the scientists, which of the following groups of food is the healthiest for your lunch?

A. chicken, apples, cereal , cabbages.

B. potatoes, carrots, rice, bread.

C. oranges, bananas, fish, tomatoes

D. beef, pork, fish , milk

62. It is important for people to eat __________.

A. three times a day

B. dinner at twelve o’clock

C. cooked food all the day

D. something from each of the seven kinds of food every day.

63. People in different count ries and different places of the world________________.

A. have the right kinds of food to eat

B. cook their food in the same way

C. have their meals at the same time

D. eat food in different ways.

64. Which of the following is NOT true?

A. People in some places don’t have enough to eat.

B. There are too many people in the world.

C. One of the problems is that no one is hungry.

D. The scientists are trying to make people grow to be strong and healthy.

65. If there is paragraph 4, what do you think is going to be talked about?

A. When people eat their lunch.

B. What to do with the two problems.

C. How to cook food in different ways.

D. Why people eat different kinds of food. 

查看答案
微信公众账号搜索答案