【计算机类职业资格】上机操作题-试卷45及答案解析.doc

上传人:postpastor181 文档编号:1322417 上传时间:2019-10-17 格式:DOC 页数:2 大小:28KB
下载 相关 举报
【计算机类职业资格】上机操作题-试卷45及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】上机操作题-试卷45及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

1、上机操作题-试卷 45 及答案解析(总分:6.00,做题时间:90 分钟)一、基本操作题(总题数:1,分数:2.00)1.建立一个表单,表单文件名和表单控件名均为 myform2,表单标题为“数据浏览及维护”,表单基本功能要求如下: 用选项按钮组(Optiongroup1)控件选择“职工”表(Option1)或“订单”表(Option2)。 用复选框(Check1)控件确定显示的表是否需要存盘。单击“确定”(Command1)命令按钮,若“保存记录”复选框被选中,则用 SQL 语句将选项组指定的表的内容存入表“temp”中,否则用 SQL 语句显示该表内容。单击“关闭”(Command2)命令

2、按钮,关闭并释放表单。(分数:2.00)_二、简单应用题(总题数:1,分数:2.00)2.请按要求修改 modil.prg 程序文件中的错误并使之能够正确运行,注意:不可增加或删除程序。(分数:2.00)_三、综合应用题(总题数:1,分数:2.00)3.将数据库“稿件管理”的表“投稿”的结构复制到新表“n_投稿”中。(分数:2.00)_上机操作题-试卷 45 答案解析(总分:6.00,做题时间:90 分钟)一、基本操作题(总题数:1,分数:2.00)1.建立一个表单,表单文件名和表单控件名均为 myform2,表单标题为“数据浏览及维护”,表单基本功能要求如下: 用选项按钮组(Optiongr

3、oup1)控件选择“职工”表(Option1)或“订单”表(Option2)。 用复选框(Check1)控件确定显示的表是否需要存盘。单击“确定”(Command1)命令按钮,若“保存记录”复选框被选中,则用 SQL 语句将选项组指定的表的内容存入表“temp”中,否则用 SQL 语句显示该表内容。单击“关闭”(Command2)命令按钮,关闭并释放表单。(分数:2.00)_正确答案:(正确答案:步骤 1:单击工具栏的新建按钮,打开新建对话框。在文件类型中选择“表单”,单击新建文件,打开表单设计器新建表单。单击表单控件窗口中的“选项按钮组”,再单击表单,添加“选项按钮组”控件。用同样的方式添加

4、复选框”和两个“命令按钮”。 步骤 2:单击表单,在属性窗口中设置“Name”为“myform2”,“Caption”为“数据浏览及维护”。右击选项按钮组选择“编辑”,单击“option1”,在属性窗口中设置“Caption”为“职工”;单击“option2”,在属性窗口中设置“Caption”为“订单”。再单击复选框按钮,在属性窗口中设置“Caption”为“保存记录”。单击第一个按钮(Command1),在属性窗口中设置“Caption”为“确定”。单击第二个按钮(Command2),在属性窗口中设置“Caption”为“关闭”。 步骤 3:右击确定按钮,编写命令按钮的 Click 事件

5、代码。 IF ThisForm.CheCk1.Value=1 IF ThisForm.OptionGroup1.Value=1 SELECT *FROM 职工 INTO TABLE TEMP.DEF ELSE SELECT *FROM 订单 INTO TABLE TEMP.DBF ENDIF ELSE IF ThisForm.OPTIONGROUP1.VALUE=1 SELECT *FROM 职工 ELSE SELECT *FROM 订单 ENDIF ENDIF 右击关闭按钮,编写命令按钮的 Click 事件代码 ThisForm.ReleaSe 步骤 4:单击工具栏的保存按钮,将其命名为my

6、form2,右击表单选择“执行表单”,运行表单即可。)解析:二、简单应用题(总题数:1,分数:2.00)2.请按要求修改 modil.prg 程序文件中的错误并使之能够正确运行,注意:不可增加或删除程序。(分数:2.00)_正确答案:(正确答案:可使用命令 USE 表名命令来打开表。程序中的 SCAN 语句使用了 WHILE 条件,由于没有指定范围,将从第一个记录开始测试条件,直到找到不满足条件的记录为止,显然第一条记录就不满足条件(所在地为“南京”)。应把 WHILE 条件改为 FOR 条件。改正后的程序如下: *在下一行添加一条打开 customer 表的语句,然后把“(此处空行)”删除

7、use customer *表没有索引,修改如下语句使之能显示所有“北京”客户的信息 SCAN FOR 所在地=北京 ? 客户编号,公司名称,联系人姓名 ENDSCAN 步骤: 单击工具栏上的打开按钮,在弹出的打开对话框中选择“modil.prg”文件,然后单击确定按钮。打开后在第一个(此处空行)处输入 use customer,删除(此处空行),把“scan white”的“while”换成“for”。最后,关闭窗口。)解析:三、综合应用题(总题数:1,分数:2.00)3.将数据库“稿件管理”的表“投稿”的结构复制到新表“n_投稿”中。(分数:2.00)_正确答案:(正确答案:在命令窗口中输入命令: USE 投稿 (回车执行) COPY STRU TO n_投稿 (回车执行)解析:

展开阅读全文
相关资源
猜你喜欢
  • EN ISO 13790-2008 en Energy performance of buildings - Calculation of energy use for space heating and cooling《建筑物能量特性 空间加热和冷却用能量的计算[代替 CEN EN 832]》.pdf EN ISO 13790-2008 en Energy performance of buildings - Calculation of energy use for space heating and cooling《建筑物能量特性 空间加热和冷却用能量的计算[代替 CEN EN 832]》.pdf
  • EN ISO 13791-2012 en Thermal performance of buildings - Calculation of internal temperatures of a room in summer without mechanical cooling - General criteria and validation proced.pdf EN ISO 13791-2012 en Thermal performance of buildings - Calculation of internal temperatures of a room in summer without mechanical cooling - General criteria and validation proced.pdf
  • EN ISO 13792-2012 en Thermal performance of buildings - Calculation of internal temperatures of a room in summer without mechanical cooling - Simplified methods《建筑物的热性能 非机器制冷条件下夏季房.pdf EN ISO 13792-2012 en Thermal performance of buildings - Calculation of internal temperatures of a room in summer without mechanical cooling - Simplified methods《建筑物的热性能 非机器制冷条件下夏季房.pdf
  • EN ISO 13793-2001 en Thermal Performance of Buildings - Thermal Design of Foundations to Avoid Frost Heave《建筑物热性能 避免霜冻的地基热设计 ISO 13793-2001》.pdf EN ISO 13793-2001 en Thermal Performance of Buildings - Thermal Design of Foundations to Avoid Frost Heave《建筑物热性能 避免霜冻的地基热设计 ISO 13793-2001》.pdf
  • EN ISO 13802-2015 en Plastics - Verification of pendulum impact-testing machines - Charpy Izod and tensile impact-testing《塑料 摆锤冲击试验机的验证 简支梁 悬臂梁和拉伸冲击试验(ISO13802 2015)》.pdf EN ISO 13802-2015 en Plastics - Verification of pendulum impact-testing machines - Charpy Izod and tensile impact-testing《塑料 摆锤冲击试验机的验证 简支梁 悬臂梁和拉伸冲击试验(ISO13802 2015)》.pdf
  • EN ISO 13803-2014 en Paints and varnishes - Determination of haze on paint films at 20 degrees《色漆和清漆 20℃漆膜光泽度的测定(ISO 13803 2014)》.pdf EN ISO 13803-2014 en Paints and varnishes - Determination of haze on paint films at 20 degrees《色漆和清漆 20℃漆膜光泽度的测定(ISO 13803 2014)》.pdf
  • EN ISO 13805-2009 en Vitreous and porcelain enamels for aluminium - Determination of the adhesion of enamels on aluminium under the action of electrolytic solution (spall test)《铝用釉.pdf EN ISO 13805-2009 en Vitreous and porcelain enamels for aluminium - Determination of the adhesion of enamels on aluminium under the action of electrolytic solution (spall test)《铝用釉.pdf
  • EN ISO 13807-2009 en Vitreous and porcelain enamels - Determination of crack formation temperature in the thermal shock testing of enamels for the chemical industry《釉瓷和搪瓷 化学工业用瓷层热冲.pdf EN ISO 13807-2009 en Vitreous and porcelain enamels - Determination of crack formation temperature in the thermal shock testing of enamels for the chemical industry《釉瓷和搪瓷 化学工业用瓷层热冲.pdf
  • EN ISO 13833-2013 en Stationary source emissions - Determination of the ratio of biomass (biogenic) and fossil-derived carbon dioxide - Radiocarbon sampling and determination《固定污染源.pdf EN ISO 13833-2013 en Stationary source emissions - Determination of the ratio of biomass (biogenic) and fossil-derived carbon dioxide - Radiocarbon sampling and determination《固定污染源.pdf
  • 相关搜索

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

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