东软笔试题(3)

  二、编程题(共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分)

  ……

本文已影响6827
上一篇:工商银行招聘笔试题目 下一篇:

相关文章推荐

|||||