【计算机类职业资格】上机应试指导及答案解析.doc

上传人:lawfemale396 文档编号:1322368 上传时间:2019-10-17 格式:DOC 页数:5 大小:51KB
下载 相关 举报
【计算机类职业资格】上机应试指导及答案解析.doc_第1页
第1页 / 共5页
【计算机类职业资格】上机应试指导及答案解析.doc_第2页
第2页 / 共5页
【计算机类职业资格】上机应试指导及答案解析.doc_第3页
第3页 / 共5页
【计算机类职业资格】上机应试指导及答案解析.doc_第4页
第4页 / 共5页
【计算机类职业资格】上机应试指导及答案解析.doc_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

1、上机应试指导及答案解析(总分:18.00,做题时间:90 分钟)一、B填空题/B(总题数:3,分数:6.00)1.给定的程序中,fun 函数的功能是:将 M行 N列的矩阵中的数据,按行的顺序依次放在一维数组中,一维数组中的元素的个数存放在形参 n所指的存储单元中。 请在程序的下划线处填写正确的内容,使程序得到正确的结果。 void fun(int(*S)10,int*b,int*n,int mm,int nn) int i,j; for(i=0;imm;s+,i+) for(j=0;jU (1) /U;j+) U (2) /U; U(3) /U main() int w1010=11,12,1

2、3,14,21,22,23,24,31,32,33,34,i,j; int a100=0,n=0: printf(“The matrix:/n“); for(i=0;i3;i+) for(j=0;j4;j+) printf(“%3d“,wij);printf(“/n“); fun(w,a,/n“); for(i=0;in;i+) printf(“%3d”,ai;printf(“/n/n“); NONO();严本函数与考生答题无关,考生不得改动,否则后果自负。*/ (分数:2.00)填空项 1:_2.给定的程序中,fun 函数的功能是:将 s所指字符串中除了下标为偶数,同时 ASCH值为偶数的字

3、符除外,其余的全部删除;串中剩余字符所形成的一个新串放在 t所指的数组中。如:若 s所指字符串中的内容为:”desktop12345“,t 所指字符串中的内容为:“dtp24“。 请在程序的下划线处填写正确的内容,使程序得到正确的结果。 #inClUde conio.h #include stdio.h #include string.h void fun (Char *s,char t) int i,j; for(i=0,j=0;U (1) /U;i+) if(i%2=0j=k;j+) if(!k%j)j3;j+) printf(“%d“,xyij); printf(“/n“): NONO(

4、);/*本函数与考生答题无关,考生不得改动,否则后果自负。*/ (分数:2.00)_上机应试指导答案解析(总分:18.00,做题时间:90 分钟)一、B填空题/B(总题数:3,分数:6.00)1.给定的程序中,fun 函数的功能是:将 M行 N列的矩阵中的数据,按行的顺序依次放在一维数组中,一维数组中的元素的个数存放在形参 n所指的存储单元中。 请在程序的下划线处填写正确的内容,使程序得到正确的结果。 void fun(int(*S)10,int*b,int*n,int mm,int nn) int i,j; for(i=0;imm;s+,i+) for(j=0;jU (1) /U;j+) U

5、 (2) /U; U(3) /U main() int w1010=11,12,13,14,21,22,23,24,31,32,33,34,i,j; int a100=0,n=0: printf(“The matrix:/n“); for(i=0;i3;i+) for(j=0;j4;j+) printf(“%3d“,wij);printf(“/n“); fun(w,a,/n“); for(i=0;in;i+) printf(“%3d”,ai;printf(“/n/n“); NONO();严本函数与考生答题无关,考生不得改动,否则后果自负。*/ (分数:2.00)填空项 1:_ (正确答案:vo

6、id fun (int(*s) 10,int *b,int*n,int mm,int nn))解析:int i,j; for(i=0;imm;s+,j+) for(j=0;jnn;j+) *(b+i*nn+j)=(*s)j; *n=mm*nn; 2.给定的程序中,fun 函数的功能是:将 s所指字符串中除了下标为偶数,同时 ASCH值为偶数的字符除外,其余的全部删除;串中剩余字符所形成的一个新串放在 t所指的数组中。如:若 s所指字符串中的内容为:”desktop12345“,t 所指字符串中的内容为:“dtp24“。 请在程序的下划线处填写正确的内容,使程序得到正确的结果。 #inClUde

7、 conio.h #include stdio.h #include string.h void fun (Char *s,char t) int i,j; for(i=0,j=0;U (1) /U;i+) if(i%2=0 for(i=0,j=0;si;i+) if(i%2=0j=k;j+) if(!k%j)j3;j+) printf(“%d“,xyij); printf(“/n“): NONO();/*本函数与考生答题无关,考生不得改动,否则后果自负。*/ (分数:2.00)_正确答案:()解析:void fun (int a34,int b43,int ab33 int j,k,1; for(k=0;k3;k+) for(1=0;13;1+) for(j=0; j4; j+) abk1+=akj*bj1;

展开阅读全文
相关资源
猜你喜欢
  • DIN EN 16572-2015 Conservation of cultural heritage - Glossary of technical terms concerning mortars for masonry renders and plasters used in cultural heritage German version EN 16.pdf DIN EN 16572-2015 Conservation of cultural heritage - Glossary of technical terms concerning mortars for masonry renders and plasters used in cultural heritage German version EN 16.pdf
  • DIN EN 16573-2017 Ventilation for Buildings - Performance testing of components for residential buildings - Multifunctional balanced ventilation units for single family dwellings i.pdf DIN EN 16573-2017 Ventilation for Buildings - Performance testing of components for residential buildings - Multifunctional balanced ventilation units for single family dwellings i.pdf
  • DIN EN 16575-2014 Bio-based products - Vocabulary German version EN 16575 2014《生物基质产品 词汇 德文版本EN 16575-2014》.pdf DIN EN 16575-2014 Bio-based products - Vocabulary German version EN 16575 2014《生物基质产品 词汇 德文版本EN 16575-2014》.pdf
  • DIN EN 16576-2015 Automotive fuels - Determination of manganese and iron content in diesel - Inductively coupled plasma optical emission spectrometry (ICP OES) method German versio.pdf DIN EN 16576-2015 Automotive fuels - Determination of manganese and iron content in diesel - Inductively coupled plasma optical emission spectrometry (ICP OES) method German versio.pdf
  • DIN EN 16578-2016 Ceramics sanitary appliances - Sustainability assessment German version EN 16578 2016《陶瓷卫生器具 可持续性评价 德文版本EN 16578-2016》.pdf DIN EN 16578-2016 Ceramics sanitary appliances - Sustainability assessment German version EN 16578 2016《陶瓷卫生器具 可持续性评价 德文版本EN 16578-2016》.pdf
  • DIN EN 16580-2015 Windows and doors - Wetness and splash water proof door leaves - Test and classification German version EN 16580 2015《门窗 湿度和飞溅防水门叶 试验和分类 德文版本EN 16580-2015》.pdf DIN EN 16580-2015 Windows and doors - Wetness and splash water proof door leaves - Test and classification German version EN 16580 2015《门窗 湿度和飞溅防水门叶 试验和分类 德文版本EN 16580-2015》.pdf
  • DIN EN 16581-2015 Conservation of Cultural Heritage - Surface protection for porous inorganic materials - Laboratory test methods for the evaluation of the performance of water rep.pdf DIN EN 16581-2015 Conservation of Cultural Heritage - Surface protection for porous inorganic materials - Laboratory test methods for the evaluation of the performance of water rep.pdf
  • DIN EN 16582-1-2015 Domestic swimming pools - Part 1 General requirements including safety and test methods German version EN 16582-1 2015《室内游泳池 第1部分 包括安全和试验方法在内的通用要求 德文版本EN 16582-.pdf DIN EN 16582-1-2015 Domestic swimming pools - Part 1 General requirements including safety and test methods German version EN 16582-1 2015《室内游泳池 第1部分 包括安全和试验方法在内的通用要求 德文版本EN 16582-.pdf
  • DIN EN 16582-2-2015 Domestic swimming pools - Part 2 Specific requirements including safety and test methods for inground pools German version EN 16582-2 2015《室内游泳池 第2部分 包括地下游泳池安全和.pdf DIN EN 16582-2-2015 Domestic swimming pools - Part 2 Specific requirements including safety and test methods for inground pools German version EN 16582-2 2015《室内游泳池 第2部分 包括地下游泳池安全和.pdf
  • 相关搜索

    当前位置:首页 > 考试资料 > 职业资格

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1