二、编程题(共2题,每题15分,满分30分)
1、阅读下列函数说明和C代码,将应填入 处的字句写在答题纸的对应栏内。
[函数1.1说明]
函数int factors(int n)的功能是判断整数n(n>=2)是否为完全数。如果n是完全数,则函数返回0,否则返回-1。
所谓“完全数”是指整数n的所有因子(不包括n)之和等于n自身。例如28的因子为1、2、4、7、14,而28=1+2+4+7+14,因此28是“完全数”。
[函数1.1]
int factors(int n)
{
int i,s;
for(i=1,s=0;i<=n/2;i++)
if(n%i==0) (1) ;
if( (2) )return 0;
return -1;
}
[函数1.2说明]
函数int maxint(int a[], int k)的功能是用递归方法求指定数组中前k个元素的最大值,并作为函数值返回。
[函数1.2]
int maxint(int a[],int k)
{
int t;
if( (3) ) return (4) ;
t=maxint(a+1, (5) );
return (a[0]>t)?a[0]:t;
}
2、动物(Animals)中的猫(Cat)和狗(Dog)都有跑(Run)的动作。请运用多态技术展示猫跑和狗跑的动作。要求用C++代码实现。
三、英语题(满分10分)
1、选择题(共5题,每题1分,满分5分)
(1) is a device that converts images to digital format.
A. Copier B. Printer C. Scanner D. Display In Clanguage, a
(2) is a series of charactrs enclosed in double quotes.
A. matrix B. string C. program D. stream
(3) are those programs that help find the information you are trying to locate on the WWW.
A. Windows B. Search Engines C. Web Sites D. Web Pages
In C language, (4) are used to create variables and are grouped at the top of a gram block;
A. declarations B. dimensions C. comments D.descriptions
An (5) statement can perform a calculation and store the result in a variable so that it can be used later.
A. executable B.input C.output D. assignment
2、英译汉(共1题,满分5分)
The invention of the Web brought an extraordinary expansion of digital services to millions of amateur computer users, including color text and pages, formatted text, pictures, animations, video, and sound. In short, the Web makes nearly all the rich elements of human expression needed to establish a commercial marketplace available to nontechnical computer users worldwide.
四、日语附加题(满分10分)
1、选择题(共5题,每题1分,满分5分)
1. Log
A.ロツダ B. ロヅツク C. ログ D. ロツク
2. Byte
……
2、日译汉(共1题,满分5分)
……
2020年河北新闻网两学一做
时间:2023-09-18 07:0:242020年河北新闻网两学一做
时间:2023-09-15 11:0:59两学一做学习教育知
时间:2023-09-21 06:0:302020年开展两学一做学习教
时间:2023-09-19 21:0:30
工商银行招聘笔试题和面试题答案目2023-09-21 17:47:52
淘宝实习招聘笔试题和面试题答案2023-09-18 02:47:33
陕西国际商贸学院在重庆高考专业招生计划(人数+代码)2025-05-22 10:38:12
安徽建筑大学和新余学院哪个好 分数线排名对比2025-05-22 10:36:54
襄阳职业技术学院广西录取分数线及招生人数 附-2020最低位次排名2025-05-22 10:35:29
长江大学和新疆师范大学哪个好 分数线排名对比2025-05-22 10:34:16
锦州师范高等专科学校在辽宁高考专业招生计划(人数+代码)2025-05-22 10:32:49
山东高考排名在17550的考生能报什么大学(原创)2025-05-22 10:31:33
广州华立学院的英语专业分数线(附2020-最低分排名怎么样)2025-05-22 10:30:14
兰州石化职业技术大学的理化测试与质检技术专业分数线(附2020-最低分排名怎么样)2025-05-22 10:29:06
泉州师范学院和亳州学院哪个好 分数线排名对比2025-05-22 10:27:53
贵州医科大学在江西高考专业招生计划(人数+代码)2025-05-22 10:26:23
东莞城市学院和西安工商学院哪个好 分数线排名对比2025-05-22 10:24:51
山东海事职业学院的水路运输安全管理专业分数线(附2020-最低分排名怎么样)2025-05-22 10:23:44 


