网站首页 实用文 书信 面试 实习 实习报告 职场 职责 励志 名言 热点
当前位置:人人简历网 > 面试 > 面试笔试

意法半导体笔试题目分享(软件测试)

栏目: 面试笔试 / 发布于: / 人气:1.85W
意法半导体笔试题目分享(软件测试)
A Test for The C Programming Language
  I. History
1. C was originally designed for and implemented on the (what) operating system on the DEC PDP-11, by (who) .
2. The most recently approved ANSI/ISO C standard was issued in (when) , and single line comments notation “//” is or isn’t a feature of C89.
  II. Syntax and Semantics 1. In a runtime C program, auto variables are stored in , static variables are stored in , and function parameters are stored in .
  a. stack b. heap c. neither stack nor heap
2. The statement “extern int x;” is a , and the keyword extern is used during .
  a. variable declaration b. variable definition c. compilation time d. runtime
3. There is a complicated declaration: void ( * signal (int, void (*)(int)) ) (int);If a statement “typedef void (*p) (int);” is given, please rewrite this complicated declaration.
4. The following code is a segment of C program.
  ..........
  void func(int *p)
  {...........}
  ..........
  main()
  {
  int num=0;
  .........
  func(&num);
  ........
  }
  ..........
Here, the function argument “&num” is passed .
 a. by value b. by reference
  III. Practice
  Create a tree, which has h (h>0) layers, and its each node has w (w>0) se complete the following incomplete solution.
  #include <stdlib.h>
  #include <string.h>
  struct tree{
  char info;
  p_sub; //link to sub-nodes};
  // allocate memory and initiate
  void dnode ( struct tree* tmp )
  {
  = malloc( sizeof (struct tree) );
  = 0x41;
  = NULL;
  }
  struct tree *dtree (struct tree* subtree, int height, int width)
  {
  int i;
  if ( !subtree ) //if necessary, allocte memory for subtree
  denode(subtree);
  if ( height == 1 )
  return subtree;
  else if ( height == 2 ) {
  struct tree *leaf = NULL;
  for ( i=0; i<width; i++ ) {
  denode ( );
  ;
  leaf = NULL;}
  return subtree;}
  else {
  for ( i=0; i<width; i++ ) {
  }
  return subtree;
  }
  }
  main()
  {
  .........
  struct tree *root = NULL;
热门搜索
实用的升学宴演讲稿汇总 太极拳比赛致辞 国小美术课教学工作总结 之握 安全生产月活动宣传总结通用 高一学生自我评价高一年级自我评价 提供融资相关信息服务合同 沂蒙山百丈崖导游词 生日的司仪主持词范文 实用的竞选文艺委员演讲稿 家庭教育的观后感 哈尔滨景点导游词 出柜 国小语文教师工作总结 2023童年主题优秀作文范文 餐饮营销方案方案模板锦集 云培训的心得体会优秀 Translate 工作计划分解 春分 小超市工作总结 洞头 开展的志愿活动总结 艾青诗选读书笔记九年级必读书目读后感 读流浪狗和流浪猫读后感 标准版离婚协议书范本最新版本离婚协议书范 幼儿园活动心得简短 办公室工作总结与个人总结精选 乡村振兴员述职报告 幼儿园小班教师年终述职报告小班幼儿老师述 会考的励志演讲稿 村卫生工作计划优秀 有关幼儿园小班的教学设计模板汇总 2023年思想汇报1500字推荐 最新医生辞职报告书大全 机械助理工程师工作总结范文 关于学生会副主席竞选演讲稿集锦 网店实训心得体会 《尼尔斯骑鹅旅行记》读后感尼尔斯骑鹅旅行 新员工体会心得 激励着我作文优质 《谈生命》教案 医院护理实习心得 国小教师职称评审个人的述职报告 中学生读书心得笔记范文 公司授权委托书 开拓创新之路——高效有趣的团队活动计划& 两端