[计算机类试卷]计算机三级数据库技术(上机操作)机试模拟试卷72及答案与解析.doc

上传人:李朗 文档编号:505607 上传时间:2018-11-29 格式:DOC 页数:2 大小:24.50KB
下载 相关 举报
[计算机类试卷]计算机三级数据库技术(上机操作)机试模拟试卷72及答案与解析.doc_第1页
第1页 / 共2页
[计算机类试卷]计算机三级数据库技术(上机操作)机试模拟试卷72及答案与解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

1、计算机三级数据库技术(上机操作)机试模拟试卷 72及答案与解析 一、程序设计题 1 文件 progl C中的程序的功能是:在三位整数 (100至 999)中寻找符合下面条件的整数,并依次从 d,N大存人数组 bE-i中。条件如下:某数既是完全平方数,又有两位数字相同,例如 144、 676等。请编写函数 int jsValue(int bbE3)实现此功能,满足该条件的整数的个数通过所编写的函数返回。最后调用函数 writeDat()把结果输出到文件 out dat中。 【试题程序】 #include void writeDat(int num, int bE); int jsValue(in

2、t bbE) void main() int bE20, num; num=jsValue(b); writeDat(num b); void writeDat(int mum, int b) FILE*out; int i; out=fopen(“out dat”, “W”); fprintf(out, “ d n”, num); for(i=0;imum; i+) fprintf(out, “ d n”, bi); fclose(out); 计算机三级数据库技术(上机操作)机试模拟试卷 72答案与解析 一、程序设计题 1 【正确答案】 int jsValue(int bb) int i, cnt=0; *定义变量 * Int a1, a2, a3; for(i=10Ii*i=999;i+) *统计计算 * a1=i*i 10; *数位分解 * a2=i*i 100 10; a3=i*i 100; if(a1=a2 a1=a3 a2=a3) *判断条件 * bbent+=i*i; *记录数值 * return cnt; *返回个数 *

展开阅读全文
相关资源
猜你喜欢
  • ASD-STAN PREN 2951-2017 Aerospace series Metallic materials Test method Micrographic determination of content of non-metallic inclusions (Edition P 2).pdf ASD-STAN PREN 2951-2017 Aerospace series Metallic materials Test method Micrographic determination of content of non-metallic inclusions (Edition P 2).pdf
  • ASD-STAN PREN 2952-1995 Aerospace Series Heat Resisting Alloy NI-PH2601 Solution Treated and Cold Worked Bar for Forged Fasteners D Less Than or Equal to 50 mm 1270 MPa Less Than o.pdf ASD-STAN PREN 2952-1995 Aerospace Series Heat Resisting Alloy NI-PH2601 Solution Treated and Cold Worked Bar for Forged Fasteners D Less Than or Equal to 50 mm 1270 MPa Less Than o.pdf
  • ASD-STAN PREN 2954-001-2009 Aerospace series Macrostructure of titanium and titanium alloy wrought products Part 001 General requirements (Edition P 1)《航空航天系列 钛和钛合金锻件的宏观结构 第001部分 一.pdf ASD-STAN PREN 2954-001-2009 Aerospace series Macrostructure of titanium and titanium alloy wrought products Part 001 General requirements (Edition P 1)《航空航天系列 钛和钛合金锻件的宏观结构 第001部分 一.pdf
  • ASD-STAN PREN 2954-002-2009 Aerospace series Macrostructure of titanium and titanium alloy wrought products Part 002 Macrostructure of bar section forging stock and forgings (Editi.pdf ASD-STAN PREN 2954-002-2009 Aerospace series Macrostructure of titanium and titanium alloy wrought products Part 002 Macrostructure of bar section forging stock and forgings (Editi.pdf
  • ASD-STAN PREN 2957-1991 Aerospace Series Method of Preparation of Forged Samples (Edition P 1)《航空航天系列 锻造样品的制备方法 第P1版》.pdf ASD-STAN PREN 2957-1991 Aerospace Series Method of Preparation of Forged Samples (Edition P 1)《航空航天系列 锻造样品的制备方法 第P1版》.pdf
  • ASD-STAN PREN 2959-1999 Aerospace Series Heat Resisting Alloy NI-PH1302 (NiCr20Co13Mo4Ti3Al) Solution Treated and Cold Worked Bar for Forged Fasteners 3 mm Less Than or Equal to D .pdf ASD-STAN PREN 2959-1999 Aerospace Series Heat Resisting Alloy NI-PH1302 (NiCr20Co13Mo4Ti3Al) Solution Treated and Cold Worked Bar for Forged Fasteners 3 mm Less Than or Equal to D .pdf
  • ASD-STAN PREN 2960-1988 Aerospace Series Heat Resisting Nickel Base Alloy (NI-P101HT) Cold Worked and Solution Treated Bar for Machining for Fasteners 3 Less Than or Equal to D Les.pdf ASD-STAN PREN 2960-1988 Aerospace Series Heat Resisting Nickel Base Alloy (NI-P101HT) Cold Worked and Solution Treated Bar for Machining for Fasteners 3 Less Than or Equal to D Les.pdf
  • ASD-STAN PREN 2961-1994 Aerospace Series Heat Resisting Alloy NI-PH2601 Solution Treated Bar for Machined Fasteners D is Less Than or Equal to 50 mm Rm is Greater Than or Equal to .pdf ASD-STAN PREN 2961-1994 Aerospace Series Heat Resisting Alloy NI-PH2601 Solution Treated Bar for Machined Fasteners D is Less Than or Equal to 50 mm Rm is Greater Than or Equal to .pdf
  • ASD-STAN PREN 2962-1996 Aerospace Series Carbon Fibre Filament Yarn (Polyacrylonitrile Precursor) Technical Specification (Edition P 1)《航空航天系列 碳纤维长丝纱(聚丙烯腈的前体)技术规范 第P1版》.pdf ASD-STAN PREN 2962-1996 Aerospace Series Carbon Fibre Filament Yarn (Polyacrylonitrile Precursor) Technical Specification (Edition P 1)《航空航天系列 碳纤维长丝纱(聚丙烯腈的前体)技术规范 第P1版》.pdf
  • 相关搜索

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

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