试题与答案

阅读以下函数说明和C语言函数,将应填入 (n) 处的字句写在对应栏内。 [说明1]

题型:填空题

题目:

阅读以下函数说明和C语言函数,将应填入 (n) 处的字句写在对应栏内。
[说明1]
函数int function(int a)的功能是判断指定的正整数是否为素数,若是,返回1,否则返回0。
[C函数1]
int function(int a)
{ int yes,i;
i=2;yes=1;
while(i<=a/2 && (1) ){
if( (2) ) yes=0;
i++;
}
return yes;
}
[说明2]
函数int deleteARR(int*arr,intn)的功能是指定的有序数组压缩成各元素互不相同的有序数组,即相同数只保留一个,多余的被删除。函数返回值是互不相同的元素个数。
[C函数2]
int deleteARR(int*arr,int n)
{ int k,j;
k=0;j=1;
while(j<n){
if( (3) )
(4) =arr[j];
j++;
}
return (5) ;
}

答案:

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

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

参考答案:A解析:上市公司存在下列情形之一的,不得公开发行证券:①本次发行申请文件有虚假记载、误导性陈述或重大遗漏;②擅自改变前次公开发行证券募集资金的用途而未作纠正;③上市公司最近12个月内受到过证...

试题推荐
题型:阅读理解

Social customs and the ways of behaving change. Things that were considered impolite many years ago are acceptable . Just a few years ago, it was considered to be impolite behavior for a man to smoke on the street . No man who thought of himself as being a gentleman would make fool of himself by smoking when a lady was in the room.

Customs are also different from country to country. Does a man walk on the left or on the right of a woman in your country? Or doesn’t it matter? What about table manners?

The Americans and the British not only speak the same language but also share a large number of social customs. For example, in both America and England people shake hands when they meet each other for the first time. Also, most Englishmen will open a door for a wonman or offer their seat to a woman , and so will most Americans. Promptness is important both in England and in America. That is , if a dinner invitation is for 6 o'clock , the dinner guest either arrives close to that time or calls up to explain his delay.

The important thing to remember about social customs is not to do anything that might make other people feel uncomfortable especially if they are your guests. There is an old story about a man who gave a very formal dinner party. When the food was served, one of the guests started to eat his peas with a knife. The other guests were amused or greatly surprised , but the host calmly picked up his knife and began eating in the same way. I t would have been bad manners to make his guest feel foolish or uncomfortable.

小题1:The underlined phrase” make fool of himself” in the first passage means____

A.make himself strong

B.make himself rich

C.make himself comfortable

D.cause himself to seem like a fool小题2:According to the passage , the American and British _____

A.don’t speak the same language

B.don’t have social custom in common

C.do share a lot of social customs

D.do have the exactly same social customs小题3:If a dinner invitation is for six o’clock , the guest is supposed to arrive at ____ six

A.nearly a minute or two later than

B.a quarter to

C.a quarter to

D.much later than小题4:The last example in the passage shows____

A.The correct way to use a knife at table

B.that it is good manners not to make your guests feel foolish or uncomfortable

C.that social customs and ways of behaving change too fast

D.promptness is important both in England and in America小题5:Which of the following do you think is the best title for this passage?

A.Social Customs and Customs

B.Social Life

C.American and British Customs

D.Promptness is Important

查看答案
题型:单项选择题

以下关于软件生命周期的叙述不正确的是()

A.软件生命周期包括以下几个阶段:项目规划、需求定义和需求分析、软件设计、程序编码、软件测试、运行维护

B.程序编码阶段是将软件设计的结果转换成计算机可运行的程序代码。为了保证程序的可读性、易维护性和提高程序的运行效率,可以通过在该阶段中制定统一并符合标准的编写规范来使编程人员程序设计规范化

C.软件设计阶段主要根据需求分析的结果,对整个软件系统进行设计,如系统框架设计、数据库设计等

D.需求分析阶段对软件需要实现的各个功能进行详细分析。软件需求一旦确定,在整个软件开发过程中就不能再变化,这样才能保证软件开发的稳定性,并控制风险

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