【计算机类职业资格】三级数据库技术机试-70及答案解析.doc

上传人:syndromehi216 文档编号:1321372 上传时间:2019-10-17 格式:DOC 页数:2 大小:23.50KB
下载 相关 举报
【计算机类职业资格】三级数据库技术机试-70及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】三级数据库技术机试-70及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

三级数据库技术机试-70 及答案解析(总分:100.00,做题时间:90 分钟)1.fclese(wf);(分数:100.00)_三级数据库技术机试-70 答案解析(总分:100.00,做题时间:90 分钟)1.fclese(wf);(分数:100.00)_正确答案:(double countValue(int n)double xy=0.0;int i;for(i=1;in;i+)if(i%3=0 & i%7=0) xy+=i; /*求 n 以内(不包括 n)同时能被 3 与 7 整除的所有自然数之和*/xy=sqrt(double)xy); /*再对总和求平方根*/return xy;)解析:解析 本题的解题思路是:利用一个 for 循环依次从 n 个自然数当中取数,对当前取出的数进行条件判断。判断条件为:既能被 3 整除同时也能被 7 整除,因此,用“&”运算符来连接两个条件表达式,当某数满足判断条件时,就把该数累加到变量 xy 中(xy 的初始值为 00),当所有满足条件的数都被找完后,对累加求得的变量 xy 的值进行求平方根的计算,并把所求得的结果作为函数值返回。

展开阅读全文
相关资源
猜你喜欢
  • BS ISO 4831-2006 Microbiology of food and animal feeding stuffs - Horizontal method for the detection and enumeration of coliforms - Most probable number technique《食品和动物饲料微生物学 大肠杆菌.pdf BS ISO 4831-2006 Microbiology of food and animal feeding stuffs - Horizontal method for the detection and enumeration of coliforms - Most probable number technique《食品和动物饲料微生物学 大肠杆菌.pdf
  • BS ISO 4832-2006 Microbiology of food and animal feeding stuffs - Horizontal method for the enumeration of coliforms - Colony-count technique《食品和动物饲料的微生物学 大肠杆菌菌落计数水平方法 菌落计数技术》.pdf BS ISO 4832-2006 Microbiology of food and animal feeding stuffs - Horizontal method for the enumeration of coliforms - Colony-count technique《食品和动物饲料的微生物学 大肠杆菌菌落计数水平方法 菌落计数技术》.pdf
  • BS ISO 484-1-2015 Shipbuilding Ship screw propellers Manufacturing tolerances Propellers of diameter greater than 2 50 m《造船 船舶螺旋推进器 制造公差 直径大于2 50 m的推进器》.pdf BS ISO 484-1-2015 Shipbuilding Ship screw propellers Manufacturing tolerances Propellers of diameter greater than 2 50 m《造船 船舶螺旋推进器 制造公差 直径大于2 50 m的推进器》.pdf
  • BS ISO 484-2-2015 Shipbuilding Ship screw propellers Manufacturing tolerances Propellers of diameter between 0 80 and 2 50 m inclusive《造船 船舶螺旋推进器 制造公差 直径在0 80至2 50 m (包含本数) 范围内的推进器.pdf BS ISO 484-2-2015 Shipbuilding Ship screw propellers Manufacturing tolerances Propellers of diameter between 0 80 and 2 50 m inclusive《造船 船舶螺旋推进器 制造公差 直径在0 80至2 50 m (包含本数) 范围内的推进器.pdf
  • BS ISO 4866-2010 Mechanical vibration and shock - Vibration of fixed structures - Guidelines for the measurement of vibrations and evaluation of their effects on structures《机械振动和冲击.pdf BS ISO 4866-2010 Mechanical vibration and shock - Vibration of fixed structures - Guidelines for the measurement of vibrations and evaluation of their effects on structures《机械振动和冲击.pdf
  • BS ISO 487-1998 Steel roller chains types S and C attachments and sprockets《S和C型钢制滚筒链、附件和链轮》.pdf BS ISO 487-1998 Steel roller chains types S and C attachments and sprockets《S和C型钢制滚筒链、附件和链轮》.pdf
  • BS ISO 488-2008 Milk - Determination of fat content - Gerber butyrometers《牛奶 脂肪含量的测定 格伯(Gerber)乳脂计》.pdf BS ISO 488-2008 Milk - Determination of fat content - Gerber butyrometers《牛奶 脂肪含量的测定 格伯(Gerber)乳脂计》.pdf
  • BS ISO 4880-1997 Burning behaviour of textiles and textile products - Vocabulary《织物和纺织品的燃烧性能 词汇》.pdf BS ISO 4880-1997 Burning behaviour of textiles and textile products - Vocabulary《织物和纺织品的燃烧性能 词汇》.pdf
  • BS ISO 4900-2011 Textile glass Mats and fabrics Determination of contact mouldability《纺织玻璃纤维 毡片和织物 手糊附模性的测定》.pdf BS ISO 4900-2011 Textile glass Mats and fabrics Determination of contact mouldability《纺织玻璃纤维 毡片和织物 手糊附模性的测定》.pdf
  • 相关搜索

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

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