无限增值系统应用开发工程师笔试题

时间:2020-12-15 09:17:44 笔试题目 我要投稿

无限增值系统应用开发工程师笔试题

  选择题

无限增值系统应用开发工程师笔试题

  1:设int型变量x有初始值3,则表达式x++*5/10的值是

  A.0

  B.1

  C.2

  D.3

  2:C语言的长整型数值在计算机中占用的字节个数是

  A.1

  B.2

  C.3

  D.4

  3:main()

  { int x,y;

  x=y=1;

  y=++x;

  printf( ″ %d,%d ″ ,x,y);

  }

  程序运行结果为

  A.2,2

  B.1,2

  C.2,1

  D.1,1

  4:设有变量说明语句int a=1,b=0;

  则执行以下程序段的输出结果为( )。

  switch (a)

  {

  case 1:

  switch (b)

  {

  case 0:printf("**0**");break;

  case 1:printf("**1**");break;

  }

  case 2:printf("**2**");break;

  }

  printf(" ");

  A.**0**

  B.**0****2**

  C.**0****1****2**

  D.有语法错误

  5:C 语句“ x*=y+2 ;”还可以写作

  A.x=x*y+2;

  B.x=2+y*x;

  C.x=x*(y+2);

  D.x=y+2*x;

  6:设 int m1=5,m2=3;表达式m1>m2?m1=1:m2=-1运算后,m1和m2的值分别是

  A.1和-1

  B.1和3

  C.5和-1

  D.5和3

  7:执行语句for(i=1;i++<4);后i的值是

  A.3

  B.4

  C.5

  D.不确定

  8:设enum color {purple, black, red, white} d;, 若将d赋值为枚举常量red,则正确的是

  A.d=(enum color)2;

  B.d=(enum color)3;

  C.d=″red″;

  D.d=color;

  9:在C语言中,有值函数的数据类型是指

  A.函数形式参数的数据类型

  B.函数返回值的数据类型

  C.调用该函数时的实参的数据类型

  D.任意指定的数据类型

  10:设char ch,str[4],*strp;,则正确的赋值语句是

  A.ch=″MBA″;

  B.str=″MBA″;

  C.strp=″MBA″;

  D.*strp=″MBA″;

  11:C语言程序编译时,程序中的'注释部分

  A.参加编译,并会出现在目标程序中

  B.参加编译,但不会出现在目标程序中

  C.不参加编译,但会出现在目标程序中

  D.不参加编译,也不会出现在目标程序中

  12:下列标识符中,不是C语言保留字的是

  A.char

  B.while

  C.min

  D.default

  13:不正确的标识符是

  A._a2

  B.2ai

  C.a2_i

  D.INt

  14:对语句“ int a [ 10 ] ,*p=a; ”,下列表述中哪一个是正确的

  A.*p 被赋初值为 a 数组的首地址

  B.*p 被赋初值为数组元素 a [ 0 ]的地址

  C.p 被赋初值为数组元素 a [ 1 ]的地址

  D.p 被赋初值为数组元素 a [ 0 ]的地址

  15:数据 - 324 在二进制文件和文本文件中所占的字节数分别是

  A.2 , 2

  B.2 , 4

  C.4 , 2

  D.4 , 4

  简答题

  16:类的静态成员和非静态成员有何区别?

  17:Consider the following code:

  #include

  #include

  int main(int argc, char *argv[]) {

  int i = 1;

  char buf[4];

  strcpy(buf, "AAAA");

  printf("%d ", i);

  return 0;

  }

  a) When compiled and executed on x86, why does this program usually not output what the programmer intended?

  b) Name several ways in which the security problem that causes this program not to output what the programmer intended can be prevented WITHOUT changing the code.

  18:#include

  void main()

  { int a[5] ={2,4,6,9,12},b[6] ={2,3,4,6,8,9};

  for(int i=0;i<5;i++)

  for(int j=0;j<6;j++)

  if(*(a+i)==*(b+j) printf( ″ %d ″ ,*(a+i));

  printf( ″ n ″ );

  } 输出结果: _______

  19:Write a function escape(s,t) that converts characters like newline and tab into visible escape sequences like and as it copies the string t to s . Use a switch . Write a function for the other direction as well, converting escape sequences into the real characters.

  20:一个文本文件有多行,每行为一个URL。请编写代码,统计出URL中的文件名及出现次数。

  a) 文件名不包括域名、路径和URL参数,例如http://www.ourday.cn/bbs/forumdisplay.php?fid=18中的文件名是forumdisplay。

  b) 部分URL可能没有文件名,例如http://www.ourday.cn/,这类统计为“空文件名”。

  c) 出现在不同URL中的相同文件名视为同一文件名,例如http://www.ourday.cn/index.php和ftp://ftp.ourday.cn/index.php为同一文件名

  文件内容示例如下:

  http://www.ourday.cn/bbs/redirect.php?tid=480&goto=lastpost#lastpost

  http://www.ourday.cn/index.php

  ftp://ftp.ourday.cn/index.php

  http://www.ourday.cn/bbs/index.php?k=8

  http://www.ourday.cn/bbs/forumdisplay.php?fid=16

  http://www.ourday.cn/bbs/viewthread.php?tid=444&extra=page%3D1

  http://www.ourday.cn/

  http://www.ourday.com.cn/

  21:两种不同的方法计算unsigned x有多少1 bits,如x=3,为0000 0011,有2个1

  22:阅读下列程序段,简述其主要功能。

  #include

  void main()

  {

  FILE*fpd1, *fpd2;

  char ch;

  fpd1=fopen(“d1.dat”,“r”) ;

  fpd2=fopen(“d2.dat”,“w”) ;

  while(fscanf(fpd1,“%c”,&ch)!=EOF)

  if (ch>='A'&& ch <='Z' ‖ ch>='a'&& ch<='z')

  fprintf(fpd2,“%c”,ch);

  fclose(fpd1);

  fclose(fpd);

  }

  23:Apartment在COM中有什么用?为什么要引入?

  24:找出字符串A中包含的字符可以进行的所有不同组合。例如:abccd中,ab,ac,bc,cc,abd等都是可能的组合。

  25:无符号整数乘法,乘数为32bit,结果为64bit

  提示:32bit整数分解为16bit相乘

  void Multiply( DWORD dwFirst, DWORD dwSecond, DWORD& dwHigh, DWORD& dwLower );

【无限增值系统应用开发工程师笔试题】相关文章:

应用系统开发工程师笔试题目12-16

嵌入式系统开发工程师认证考试试题08-13

2017嵌入式系统开发工程师考试模拟试题10-01

嵌入式系统的应用和开发10-06

2017年嵌入式系统开发工程师考试试题08-11

系统开发工程师求职简历模板04-11

Java开发工程师上机笔试题12-17

软件开发工程师笔试题12-13

C语言开发工程师选择试题11-23

java开发工程师模拟试题201708-20