【计算机类职业资格】数组(二)及答案解析.doc

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

1、数组(二)及答案解析(总分:17.00,做题时间:90 分钟)一、B选择题/B(总题数:7,分数:7.00)1.以下能正确定义二维数组的是_。(分数:1.00)A.int a3;B.int a3=32*3;C.int a33;D.int a 33=1,2;2.有下面程序段 char a3,b=“China“; a=b; printf(“%3“,a);则下面的说法正确的是_。(分数:1.00)A.运行后见输出 ChinaB.运行后见输出 ChC.运行后见输出 ChiD.编译出错3.有如下程序 main() int n5=0,0,0,i,k=2; for(i=1;i3;i+)ni=ni+1; pr

2、intf(“%d/n“,nk); 该程序的输出结果是_。(分数:1.00)A.不定值B.2C.1D.04.若有说明:int a3=1,2,3,4,5,6.7,8;则 a 数组第一维的大小是_。(分数:1.00)A.2B.3C.4D.无确定值5.下列程序执行后的输出结果是_。 main() char arr24; strcpy(arr,“she“);strcpy(arr1,“he“); arr03=j1=j; printf(“%d,%d,%d/n“,m,i1,j1); (分数:2.00)填空项 1:_数组(二)答案解析(总分:17.00,做题时间:90 分钟)一、B选择题/B(总题数:7,分数:

3、7.00)1.以下能正确定义二维数组的是_。(分数:1.00)A.int a3;B.int a3=32*3;C.int a33; D.int a 33=1,2;解析:2.有下面程序段 char a3,b=“China“; a=b; printf(“%3“,a);则下面的说法正确的是_。(分数:1.00)A.运行后见输出 ChinaB.运行后见输出 ChC.运行后见输出 ChiD.编译出错 解析:3.有如下程序 main() int n5=0,0,0,i,k=2; for(i=1;i3;i+)ni=ni+1; printf(“%d/n“,nk); 该程序的输出结果是_。(分数:1.00)A.不定值B.2C.1 D.0解析:4.若有说明:int a3=1,2,3,4,5,6.7,8;则 a 数组第一维的大小是_。(分数:1.00)A.2B.3 C.4D.无确定值解析:5.下列程序执行后的输出结果是_。 main() char arr24; strcpy(arr,“she“);strcpy(arr1,“he“); arr03=j1=j; printf(“%d,%d,%d/n“,m,i1,j1); (分数:2.00)填空项 1:_ (正确答案:38 1 0)解析:

展开阅读全文
相关资源
猜你喜欢
  • BS PD CLC TR 50459-7-2007 Railway applications — Communication signalling and processing systems — European Rail Traffic Management System — Driver-Machine ninterface — Part 7 Spec.pdf BS PD CLC TR 50459-7-2007 Railway applications — Communication signalling and processing systems — European Rail Traffic Management System — Driver-Machine ninterface — Part 7 Spec.pdf
  • BS PD CLC TR 50473-2007 Recommendations for dimensional co-ordination between enclosures and built-in devices for rail fixing for household and similar installations《家用和类似装置用轨道安装式内.pdf BS PD CLC TR 50473-2007 Recommendations for dimensional co-ordination between enclosures and built-in devices for rail fixing for household and similar installations《家用和类似装置用轨道安装式内.pdf
  • BS PD CLC TR 50479-2007 Electrical installation guide — Selection and erection of electrical nequipment — Wiring systems — Limitation of temperature rise of nconnecting interfaces《.pdf BS PD CLC TR 50479-2007 Electrical installation guide — Selection and erection of electrical nequipment — Wiring systems — Limitation of temperature rise of nconnecting interfaces《.pdf
  • BS PD CLC TR 50484-2009 Recommendations for nshielded enclosures《屏蔽室操作建议》.pdf BS PD CLC TR 50484-2009 Recommendations for nshielded enclosures《屏蔽室操作建议》.pdf
  • BS PD CLC TR 50489-2006 Smart tracker chips — Feasibility study on the inclusion of RFID in nElectrical and Electronic Equipment for WEEE management《智能追踪芯片 在WEEE管理用电气和电子设备中包括RFID的可.pdf BS PD CLC TR 50489-2006 Smart tracker chips — Feasibility study on the inclusion of RFID in nElectrical and Electronic Equipment for WEEE management《智能追踪芯片 在WEEE管理用电气和电子设备中包括RFID的可.pdf
  • BS PD CLC TR 50501-1-2007 Railway applications — Rolling stock — Intercommunication nbetween vehicles and train wayside — Part 1 Data dictionary and rules for functional standardis.pdf BS PD CLC TR 50501-1-2007 Railway applications — Rolling stock — Intercommunication nbetween vehicles and train wayside — Part 1 Data dictionary and rules for functional standardis.pdf
  • BS PD CLC TR 50506-1-2007 Railway applications — Communication signalling and processing systems — Application Guide for EN 50129 — Part 1 Cross-acceptance《轨道交通 通信 信号和处理系统 EN 50129.pdf BS PD CLC TR 50506-1-2007 Railway applications — Communication signalling and processing systems — Application Guide for EN 50129 — Part 1 Cross-acceptance《轨道交通 通信 信号和处理系统 EN 50129.pdf
  • BS PD CLC TR 50506-2-2009 Railway applications — nCommunication signalling and nprocessing systems — Application nguide for EN 50129《轨道交通 通信 信号和处理系统 EN 50129使用指南》.pdf BS PD CLC TR 50506-2-2009 Railway applications — nCommunication signalling and nprocessing systems — Application nguide for EN 50129《轨道交通 通信 信号和处理系统 EN 50129使用指南》.pdf
  • BS PD CLC TR 50510-2007 Fibre optic access to nend-user — A guideline nto building of FTTX nfibre optic network《用户终端的纤维光学通路 FTTX纤维光学网络的建设指南》.pdf BS PD CLC TR 50510-2007 Fibre optic access to nend-user — A guideline nto building of FTTX nfibre optic network《用户终端的纤维光学通路 FTTX纤维光学网络的建设指南》.pdf
  • 相关搜索

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

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