【计算机类职业资格】国家二级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

展开阅读全文
相关资源
猜你喜欢
  • GOST R 53562-2009 Workplace air Guidelines for selecting analytical methods for sampling and analyzing isocyanates in air《工作场所的空气 抽样与分析空气中异氰酸盐的选择分析法准则》.pdf GOST R 53562-2009 Workplace air Guidelines for selecting analytical methods for sampling and analyzing isocyanates in air《工作场所的空气 抽样与分析空气中异氰酸盐的选择分析法准则》.pdf
  • GOST R 53563-2009 Condition monitoring and diagnostics of machines Hazardous equipment monitoring Organizational procedures《机器的状况监测与诊断 危险设备监测 组织程序》.pdf GOST R 53563-2009 Condition monitoring and diagnostics of machines Hazardous equipment monitoring Organizational procedures《机器的状况监测与诊断 危险设备监测 组织程序》.pdf
  • GOST R 53564-2009 Condition monitoring and diagnostics of machines Hazardous equipment monitoring Requirements for monitoring systems《机器的状况监测与诊断 危险设备监测 系统监测要求》.pdf GOST R 53564-2009 Condition monitoring and diagnostics of machines Hazardous equipment monitoring Requirements for monitoring systems《机器的状况监测与诊断 危险设备监测 系统监测要求》.pdf
  • GOST R 53566-2009 Microphones Specifications《麦克风 规范》.pdf GOST R 53566-2009 Microphones Specifications《麦克风 规范》.pdf
  • GOST R 53567-2009 Acoustics Methods for the description and measurement of single impulses or series of impulses《声学 单个脉冲或脉冲串的描述与测量方法》.pdf GOST R 53567-2009 Acoustics Methods for the description and measurement of single impulses or series of impulses《声学 单个脉冲或脉冲串的描述与测量方法》.pdf
  • GOST R 53568-2009 Non-destructive testing Evaluation of third order elasticity modulus by ultrasound General requirements《无损探测 采用超声波对三阶弹性模块进行评估 一般要求》.pdf GOST R 53568-2009 Non-destructive testing Evaluation of third order elasticity modulus by ultrasound General requirements《无损探测 采用超声波对三阶弹性模块进行评估 一般要求》.pdf
  • GOST R 53569-2009 Noise of machines Noise test code for fastener driving tools Engineering method《机器噪音 紧固件紧固工具的噪音测试规范 工程管理方法》.pdf GOST R 53569-2009 Noise of machines Noise test code for fastener driving tools Engineering method《机器噪音 紧固件紧固工具的噪音测试规范 工程管理方法》.pdf
  • GOST R 53570-2009 Acoustics Noise from shooting ranges Part 1 Determination of acoustic characteristics of muzzle blast by measurement《声学 射击场的噪音 第1部分 通过测量测定枪口爆炸的声学特性》.pdf GOST R 53570-2009 Acoustics Noise from shooting ranges Part 1 Determination of acoustic characteristics of muzzle blast by measurement《声学 射击场的噪音 第1部分 通过测量测定枪口爆炸的声学特性》.pdf
  • GOST R 53571-2009 Acoustics Noise from shooting ranges Part 2 Estimation acoustic characteristics of muzzle blast and projectile sound by calculation《声学 射击场的噪音 第2部分 通过计算估计枪口爆炸与子弹声响.pdf GOST R 53571-2009 Acoustics Noise from shooting ranges Part 2 Estimation acoustic characteristics of muzzle blast and projectile sound by calculation《声学 射击场的噪音 第2部分 通过计算估计枪口爆炸与子弹声响.pdf
  • 相关搜索

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

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