【计算机类职业资格】计算机二级(C)上机考试20及答案解析.doc

上传人:ideacase155 文档编号:1337768 上传时间:2019-10-17 格式:DOC 页数:2 大小:30.50KB
下载 相关 举报
【计算机类职业资格】计算机二级(C)上机考试20及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】计算机二级(C)上机考试20及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

1、计算机二级(C)上机考试 20及答案解析(总分:-3.00,做题时间:120 分钟)1.填空题 请补充 main函数,该函数的功能是:把一个字符串中的所有小写字母字符全部转换成大写字母字符,其他字符不变,结果保存原来的字符串中。 例如:当 strN=“123 abcdef ABCDEF!”,结果输出:“123 ABCDEF ABCDEF!”。 注意:部分源程序给出如下。 请勿改动主函数 main和其他函数中的任何内容,仅在函数 fun的横线上填入所编写的若干表达式或语句。 试题程序: #include #include #include #define N 80 void main() int

2、 j; char strN=“ 123abcdef ABCDEF!“; char *pf=str; clrscr(); printf(“*original string */n“); puts(str); 【1】; while(*(pf+j) if(*(pf+j)=a int i, j; int s; clrscr(); printf(“*The array*/n “); for (i=0; i_正确答案:(int fun (int wN) int i,j,k=0; int s=0; for(i=0;i解析:该题采用逐一判断的方式,周边元素的下标一定有一个是 0或 N-1,且只要下标中有一个为 0或 N-1,则它一定是周边元素。

展开阅读全文
相关资源
猜你喜欢
  • ANSI IEEE 3006 9-2013 Recommended Practice for Collecting Data for Use in Reliability Availability and Maintainability Assessments of Industrial and Commercial .pdf ANSI IEEE 3006 9-2013 Recommended Practice for Collecting Data for Use in Reliability Availability and Maintainability Assessments of Industrial and Commercial .pdf
  • ANSI IEEE C135 3-2001 Zinc-Coated Ferrous Lag Screws for Overhead Line Contruction (Best Copy Available).pdf ANSI IEEE C135 3-2001 Zinc-Coated Ferrous Lag Screws for Overhead Line Contruction (Best Copy Available).pdf
  • ANSI IEEE C135 63-1998 Standard for Shoulder Live Line Extension Links for Overhead Line Construction《架空线结构用带电肩线膨胀链的标准》.pdf ANSI IEEE C135 63-1998 Standard for Shoulder Live Line Extension Links for Overhead Line Construction《架空线结构用带电肩线膨胀链的标准》.pdf
  • ANSI IEEE C37 011-2011 Guide for the Application of Transient Recovery Voltage for AC High-Voltage Circuit Breakers《交流高压断路器瞬时恢复电压的应用指南》.pdf ANSI IEEE C37 011-2011 Guide for the Application of Transient Recovery Voltage for AC High-Voltage Circuit Breakers《交流高压断路器瞬时恢复电压的应用指南》.pdf
  • ANSI IEEE C37 013A-2007 AC High Voltage Generator Circuit Breakers Rated on a Symmetrical Current Basis Amendment 1 Supplement for Use with Generators Rated 10 .pdf ANSI IEEE C37 013A-2007 AC High Voltage Generator Circuit Breakers Rated on a Symmetrical Current Basis Amendment 1 Supplement for Use with Generators Rated 10 .pdf
  • ANSI IEEE C37 017-2010 Bushings for High-Voltage [over 1000 V (ac)] Circuit Breakers and Gas-Insulated Switchgear《高压(超过1000 V交流电)电路断路器和气体绝缘开关设备用套管标准》.pdf ANSI IEEE C37 017-2010 Bushings for High-Voltage [over 1000 V (ac)] Circuit Breakers and Gas-Insulated Switchgear《高压(超过1000 V交流电)电路断路器和气体绝缘开关设备用套管标准》.pdf
  • ANSI IEEE C37 06 1-2000 Guide for High-Voltage Circuit Breakers Rated on Symmetrical Current Basis Designated Definite Purpose for Fast Transient Recovery Volta.pdf ANSI IEEE C37 06 1-2000 Guide for High-Voltage Circuit Breakers Rated on Symmetrical Current Basis Designated Definite Purpose for Fast Transient Recovery Volta.pdf
  • ANSI IEEE C37 081-1981 Guide for Synthetic Fault Testing of AC High-Voltage Circuit Breakers Rated on a Symmetrical Current Basis《基于对称原理的额定交流高压断路器的综合故障检测指南》.pdf ANSI IEEE C37 081-1981 Guide for Synthetic Fault Testing of AC High-Voltage Circuit Breakers Rated on a Symmetrical Current Basis《基于对称原理的额定交流高压断路器的综合故障检测指南》.pdf
  • ANSI IEEE C37 082-1982 Standard Methods for the Measurement of Sound Pressure Levels of AC Power Circuit Breakers《交流电流断路器声压级的测量》.pdf ANSI IEEE C37 082-1982 Standard Methods for the Measurement of Sound Pressure Levels of AC Power Circuit Breakers《交流电流断路器声压级的测量》.pdf
  • 相关搜索

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

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