【计算机类职业资格】二级VISUAL+FOXPRO-82及答案解析.doc

上传人:eveningprove235 文档编号:1328221 上传时间:2019-10-17 格式:DOC 页数:5 大小:89.50KB
下载 相关 举报
【计算机类职业资格】二级VISUAL+FOXPRO-82及答案解析.doc_第1页
第1页 / 共5页
【计算机类职业资格】二级VISUAL+FOXPRO-82及答案解析.doc_第2页
第2页 / 共5页
【计算机类职业资格】二级VISUAL+FOXPRO-82及答案解析.doc_第3页
第3页 / 共5页
【计算机类职业资格】二级VISUAL+FOXPRO-82及答案解析.doc_第4页
第4页 / 共5页
【计算机类职业资格】二级VISUAL+FOXPRO-82及答案解析.doc_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

1、二级 VISUAL+FOXPRO-82 及答案解析(总分:100.00,做题时间:90 分钟)一、B基本操作题/B(总题数:1,分数:40.00)在下完成如下操作:(分数:40.00)(1).打开表单文件 one,在表单设计器中将命令按钮 Command1 的标题修改为“开始”。 (分数:10.00)_(2).在考生文件夹下建立项目文件 one。 (分数:10.00)_(3).在项目 one 中建立数据库 student。 (分数:10.00)_(4).在项目 one 中建立程序代码文件 one.prg,其中包含如下一条命令,即“?“良好的开端“”。 (分数:10.00)_二、B简单应用题/B

2、总题数:1,分数:20.00)在考生文件夹下完成如下简单应用:(分数:20.00)(1).建立表单 two(表单名和表单文件名均为 two),然后完成如下操作。 在表单中添加表格控件Grid1; 在表单中添加命令按钮 Command1(标题为“退出”); 将表 student 添加到表单的数据环境中;(分数:10.00)_(2).使用 SQL SELECT 语句查询每个学生的平均成绩,结果包括“姓名”(出自 student 表)和“平均成绩”(根据 score 表的“成绩”字段计算)两个字段,并按“平均成绩”字段降序排列,“平均成绩”相等时按姓名升序将查询结果存储在表 avgscore.db

3、f 中。 (分数:10.00)_三、B综合应用题/B(总题数:1,分数:40.00)1.在考生文件夹下完成如下操作: (1)在考生文件夹下创建一个下拉式菜单 mymenu.mnx,并生成菜单程序 mymenu.mpr。运行该菜单程序时会在当前 Visual FoxPro 系统菜单的“帮助”子菜单之前插入一个“考试”子菜单,如下图所示。 (分数:40.00)_二级 VISUAL+FOXPRO-82 答案解析(总分:100.00,做题时间:90 分钟)一、B基本操作题/B(总题数:1,分数:40.00)在下完成如下操作:(分数:40.00)(1).打开表单文件 one,在表单设计器中将命令按钮 C

4、ommand1 的标题修改为“开始”。 (分数:10.00)_正确答案:(打开表单文件 one,在属性窗口中将命令按钮 Command1 的 Caption 属性修改为“开始”。答案考生文件夹)解析:(2).在考生文件夹下建立项目文件 one。 (分数:10.00)_正确答案:(选择“文件”菜单中的“新建”命令,在“新建”对话框的类型框中选择“项目”,单击新建文件按钮,输入项目名“one”。)解析:(3).在项目 one 中建立数据库 student。 (分数:10.00)_正确答案:(在项目管理器中选择“数据”选项卡中的“数据库”项,单击“新建”按钮,建立名为student 的数据库。)解析

5、4).在项目 one 中建立程序代码文件 one.prg,其中包含如下一条命令,即“?“良好的开端“”。 (分数:10.00)_正确答案:(在项目管理器中选择“代码”选项卡中的“程序”项,单击“新建”按钮输入命令“?“良好的开端“”,并以 one.prg 为文件名保存,最后运行新建的程序 one。)解析:二、B简单应用题/B(总题数:1,分数:20.00)在考生文件夹下完成如下简单应用:(分数:20.00)(1).建立表单 two(表单名和表单文件名均为 two),然后完成如下操作。 在表单中添加表格控件Grid1; 在表单中添加命令按钮 Command1(标题为“退出”); 将表 stu

6、dent 添加到表单的数据环境中;(分数:10.00)_正确答案:(步骤 1:通过“新建”对话框新建一个表单,文件名为 two,在表单中添加一个表格控件和一个命令按钮控件。 步骤 2:设置表单的 Name 属性为 two、命令按钮的 Caption 属性为“退出”。 步骤3:在表单空白处右击,选择“数据环境”命令,将 student 表添加到表单的数据环境中。 步骤 4:编写表单的 Init 事件代码如下。 ThisForm.Grid1.RecordSourceType=0 ThisForm.Grid1.RecordSource=“student“ 步骤 5:编写“退出”命令按钮的 Click

7、 事件代码为“ThisForm.Release”。 步骤 6:保存并运行表单,查看表单的运行效果。)解析:(2).使用 SQL SELECT 语句查询每个学生的平均成绩,结果包括“姓名”(出自 student 表)和“平均成绩”(根据 score 表的“成绩”字段计算)两个字段,并按“平均成绩”字段降序排列,“平均成绩”相等时按姓名升序将查询结果存储在表 avgscore.dbf 中。 (分数:10.00)_正确答案:(在命令窗口中输入下列程序并运行。 * SELECT Student.姓名, AVG(Score.成绩)AS 平均成绩; FROM score,student; WHERE Sc

8、ore.学号=Student.学号; GROUUP BY Student.姓名; ORDER BY 2 DESC,Student.姓名; INTO TABLE avgscore.dbf *)解析:三、B综合应用题/B(总题数:1,分数:40.00)1.在考生文件夹下完成如下操作: (1)在考生文件夹下创建一个下拉式菜单 mymenu.mnx,并生成菜单程序 mymenu.mpr。运行该菜单程序时会在当前 Visual FoxPro 系统菜单的“帮助”子菜单之前插入一个“考试”子菜单,如下图所示。 (分数:40.00)_正确答案:(步骤 1:打开考生文件夹下的 student 数据库,在数据库设

9、计器的空白处右击,选择“添加表”命令,将考生文件夹下的 student、score 和 course3 个自由表添加到数据库中。 步骤 2:新建一个视图,将 student、score 和 course3 个表添加到视图设计器中,并在其字段选项卡中将 student.学号、student.姓名、course.课程名称和 score.成绩添加到“选定字段”列表框中。 步骤 3:将视图保存为viewsc 并运行。 步骤 4:通过报表向导新建一个报表,在报表的“字段选取”对话框中将视图 viewsc 中的全部字段添加到“选定字段”列表框中;在报表的“选择报表样式”对话框中选择“简报式”;其他各项均取默认值,直接单击“下一步”或“完成”按钮,然后将报表以 three 为文件名进行保存。 步骤5:打开表单文件 three,为“生成数据”命令按钮(Command1)编写代码如下。 SELECT*FROM viewsc ORDER BY 学号, 成绩 DESC INTO TABLE result 为“运行报表”命令按钮(Command2)编写代码如下。 report form three preview 为“退出”命令按钮(Command3)编写代码如下。 ThisForm.Release 保存并运行表单 three,依次单击表单中的 3 个命令按钮。 )解析:

展开阅读全文
相关资源
猜你喜欢
  • GOST 17128-1971 Rectangular weld moulding boxes of cast steel elements having inside dimensions length from 400 to 500 mm width from 300 to 500 mm height from 100 to 250 mm Constru.pdf GOST 17128-1971 Rectangular weld moulding boxes of cast steel elements having inside dimensions length from 400 to 500 mm width from 300 to 500 mm height from 100 to 250 mm Constru.pdf
  • GOST 17129-1971 Rectangular weld moulding boxes of cast steel elements having inside dimensions length from 600 to 900 mm width from 500 to 700 mm height from 125 to 400 mm Constru.pdf GOST 17129-1971 Rectangular weld moulding boxes of cast steel elements having inside dimensions length from 600 to 900 mm width from 500 to 700 mm height from 125 to 400 mm Constru.pdf
  • GOST 17130-1971 Rectangular weld moulding boxes of cast steel elements having inside dimensions length from 900 to 1200 mm width 700 800 mm height from 150 to 400 mm Construction a.pdf GOST 17130-1971 Rectangular weld moulding boxes of cast steel elements having inside dimensions length from 900 to 1200 mm width 700 800 mm height from 150 to 400 mm Construction a.pdf
  • GOST 17131-1971 Rectangular weld moulding boxes of cast steel elements having inside dimensions length from 1000 to 1200 mm width 700 800 mm height 450 500 mm Construction and dime.pdf GOST 17131-1971 Rectangular weld moulding boxes of cast steel elements having inside dimensions length from 1000 to 1200 mm width 700 800 mm height 450 500 mm Construction and dime.pdf
  • GOST 17132-1971 Weld moulding boxes of cast steel elements Technical conditions《焊接铸钢型箱 技术条件》.pdf GOST 17132-1971 Weld moulding boxes of cast steel elements Technical conditions《焊接铸钢型箱 技术条件》.pdf
  • GOST 17133-1983 Rubber sheets for articles contacting with food stuff Specifications《接触食品类用品用橡胶板 规范》.pdf GOST 17133-1983 Rubber sheets for articles contacting with food stuff Specifications《接触食品类用品用橡胶板 规范》.pdf
  • GOST 17134-1980 Relay type radioisotope instruments General specifications《继电器式放射性同位素仪表 通用规范》.pdf GOST 17134-1980 Relay type radioisotope instruments General specifications《继电器式放射性同位素仪表 通用规范》.pdf
  • GOST 17137-1987 Monitoring control and protection systems of nuclear reactors Terms and definitions《核反应堆辐射监督、控制和防护系统 术语和定义》.pdf GOST 17137-1987 Monitoring control and protection systems of nuclear reactors Terms and definitions《核反应堆辐射监督、控制和防护系统 术语和定义》.pdf
  • GOST 17138-1981 Equipment for monitoring fuel element ruptures in nuclear reactors of nuclear power stations General technical requirements and test methods《原子能电站核反应堆释热元件外壳的密封性检测器 .pdf GOST 17138-1981 Equipment for monitoring fuel element ruptures in nuclear reactors of nuclear power stations General technical requirements and test methods《原子能电站核反应堆释热元件外壳的密封性检测器 .pdf
  • 相关搜索

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

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