【计算机类职业资格】国家二级C语言机试(操作题)模拟试卷349及答案解析.doc

上传人:priceawful190 文档编号:1332163 上传时间:2019-10-17 格式:DOC 页数:2 大小:25KB
下载 相关 举报
【计算机类职业资格】国家二级C语言机试(操作题)模拟试卷349及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】国家二级C语言机试(操作题)模拟试卷349及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

1、国家二级 C语言机试(操作题)模拟试卷 349及答案解析(总分:6.00,做题时间:90 分钟)一、程序填空题(总题数:1,分数:2.00)1.程序通过定义学生结构体变量,存储了学生的学号、姓名和 3门课的成绩。函数 fun的功能是对形参 b所指结构体变量中的数据进行修改,最后在主函数中输出修改后的数据。 例如:b 所指变量 t中的学号、姓名、和三门课的成绩依次是:10002、“ZhangQi“、93、85、87,修改后输出 t中的数据应为:10004、“Lijie“、93、85、87。 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的结果。 注意:源程序存放在考生文件夹下的

2、BLANK1C 中。 不得增行或删行,也不得更改程序的结构!#include #include struct student long sno; char name 10 ; float score 3; ; void fun (struct student *b) /*found*/ b _1_ =10004; /*found*/ strcpy (b_2_, “Lijie“) ; main () struct student t=10002, “ZhangQi“,93,85,87 ; int i; printf (“/n/nThe original data:/nf) ; printf(“/

3、nNo: ld Name: s/nScores: “,tsno, tname) ; for (i=0; i国家二级 C语言机试(操作题)模拟试卷 349答案解析(总分:6.00,做题时间:90 分钟)一、程序填空题(总题数:1,分数:2.00)1.程序通过定义学生结构体变量,存储了学生的学号、姓名和 3门课的成绩。函数 fun的功能是对形参 b所指结构体变量中的数据进行修改,最后在主函数中输出修改后的数据。 例如:b 所指变量 t中的学号、姓名、和三门课的成绩依次是:10002、“ZhangQi“、93、85、87,修改后输出 t中的数据应为:10004、“Lijie“、93、85、87。 请

4、在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的结果。 注意:源程序存放在考生文件夹下的 BLANK1C 中。 不得增行或删行,也不得更改程序的结构!#include #include struct student long sno; char name 10 ; float score 3; ; void fun (struct student *b) /*found*/ b _1_ =10004; /*found*/ strcpy (b_2_, “Lijie“) ; main () struct student t=10002, “ZhangQi“,93,85,87 ; int i; printf (“/n/nThe original data:/nf) ; printf(“/nNo: ld Name: s/nScores: “,tsno, tname) ; for (i=0; i

展开阅读全文
相关资源
猜你喜欢
  • DIN EN 169201-1996 Blank detail specification Quartz crystal controlled oscillators (Qualification approval) German version EN 169201 1995《空白详细规范 石英受控振荡器(合格鉴定)》.pdf DIN EN 169201-1996 Blank detail specification Quartz crystal controlled oscillators (Qualification approval) German version EN 169201 1995《空白详细规范 石英受控振荡器(合格鉴定)》.pdf
  • DIN EN 16927-2017 Mini pools - Specific requirements including safety and test methods for mini pools German version EN 16927 2017《迷你泳池 迷你泳池的特殊要求 包括安全和试验方法 德文版本EN 16927-2017》.pdf DIN EN 16927-2017 Mini pools - Specific requirements including safety and test methods for mini pools German version EN 16927 2017《迷你泳池 迷你泳池的特殊要求 包括安全和试验方法 德文版本EN 16927-2017》.pdf
  • DIN EN 16942-2016 Fuels - Identification of vehicle compatibility - Graphical expression for consumer information German version EN 16942 2016《燃料 车辆适应性识别 消费信息图形表示 德文版本EN 16942-2016.pdf DIN EN 16942-2016 Fuels - Identification of vehicle compatibility - Graphical expression for consumer information German version EN 16942 2016《燃料 车辆适应性识别 消费信息图形表示 德文版本EN 16942-2016.pdf
  • DIN EN 16943-2017 Foodstuffs - Determination of calcium copper iron magnesium manganese phosphorus potassium sodium sulfur and zinc by ICP-OES German version EN 16943 2017《食品 采用ICP.pdf DIN EN 16943-2017 Foodstuffs - Determination of calcium copper iron magnesium manganese phosphorus potassium sodium sulfur and zinc by ICP-OES German version EN 16943 2017《食品 采用ICP.pdf
  • DIN EN 16947-1-2017 Energy Performance of Buildings - Building Management System - Part 1 Module M10-12 German version EN 16947-1 2017《建筑物能源性能 建筑管理系统 第1部分 模块M10-12 德文版本EN 16947-1-2.pdf DIN EN 16947-1-2017 Energy Performance of Buildings - Building Management System - Part 1 Module M10-12 German version EN 16947-1 2017《建筑物能源性能 建筑管理系统 第1部分 模块M10-12 德文版本EN 16947-1-2.pdf
  • DIN EN 16948-2017 Child protective products - Consumer fitted child resistant locking devices for cupboards and drawers - Safety requirements and test methods German version EN 169.pdf DIN EN 16948-2017 Child protective products - Consumer fitted child resistant locking devices for cupboards and drawers - Safety requirements and test methods German version EN 169.pdf
  • DIN EN 16974-2016 Conveyor belts - Indentation rolling resistance related to belt width - Requirements testing German version EN 16974 2016《输送带 与带宽相关的压痕滚动阻力 试验 要求 德文版本EN 16974-2016.pdf DIN EN 16974-2016 Conveyor belts - Indentation rolling resistance related to belt width - Requirements testing German version EN 16974 2016《输送带 与带宽相关的压痕滚动阻力 试验 要求 德文版本EN 16974-2016.pdf
  • DIN EN 16983-2017 Disc springs - Quality specifications - Dimensions German version EN 16983 2016《盘形弹簧 质量规范 尺寸规格 德文版本EN 16983-2016》.pdf DIN EN 16983-2017 Disc springs - Quality specifications - Dimensions German version EN 16983 2016《盘形弹簧 质量规范 尺寸规格 德文版本EN 16983-2016》.pdf
  • DIN EN 16984-2017 Disc springs - Calculation German version EN 16984 2016《盘式弹簧 计算 德文版本EN 16984-2016》.pdf DIN EN 16984-2017 Disc springs - Calculation German version EN 16984 2016《盘式弹簧 计算 德文版本EN 16984-2016》.pdf
  • 相关搜索

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

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