学习网考试学习资料

Gzu521.com

2006年9月计算机等级考试二级VFP笔试试卷(2)

全国计算机等级考试   点击:次   发布时间:2007-9-6   【字体: 】   来源:Gzu521.com
GZU521.COM学习网

18)下列的程序中与上题的程序段时对 y 的计算结果相同的是________

19)在 sql select 语句的 order by 短语中如果指定了多个字段,则________

a)无法进行排序

b)只按第一个字段排序

c)按从左至右优先依次排序

d)按字段排序优先级依次排序

20)如果运行一个表单,以下事件首先被触发的是________

aload

berror

cinit

dclick

21)在 visual foxpro 中以下叙述正确的是________

a)关系也被称作表单

b)数据库文件不存储用户数据

c)表文件的扩展名是.dbc

d)多个表存储在一个物理文件中

22)设 x=65,命令?vartypex)的输出是________

an

bc

cl`_T{j$Hme~]!E_z Z[转 贴 于 我 的 学 习 网 IT认证全国计算机等级考试 HTtp://wwW.gzU521.coM)`_T{j$Hme~]!E_z Z

d)出错

23)假设表单上有一选项组:●男○女,如果选择第二个按钮“女”,则该项组 value 属性的值为________

a.f.

b)女

c2

d)女 2

24)假设表单 my form 隐藏着,让该表单在屏幕上显示的命令是________

amyform. list

bmyform. display

cmyform. show

dmyform. showform

25)~(33)使用的数据表如下:

当前盘当前目录下有数据库:大奖赛 dbc,其中有数据库表“歌手 dbf”、“评分 dbf”“歌手”表:

25)为“歌手”表增加一个字段“最后得分”的 sql 语句是________

aalter table 歌手 add 最后得分 f6,2

balter dbf 歌手 add 最后得分 f 6,2

cchange table 歌手 add 最后得分 f6,2

dchange table 学院 insert 最后得分 f 6,2

26)插入一条记录到“评分”表中,歌手号、分数和评委号分别是“1001”、9.9 和“105”,

正确的 sql 语句是________

ainsert values(“1001”,9105”)into 评分(歌手号,分数,评委号)

binsert to 评分(歌手号,分数,评委号)values(“1001”,9.9105”)

cinsert into 评分(歌手号,分数,评委号)values(“1001”,9.9,“105”)

dinsert values(“1009.9105”)to 评分(歌手号,分数,评委号)

27)假设每个歌手的“最后得分”的主算方法是,去掉一个最高分生个最低分,取剩下分数的平均分。根据“评分”表求每个歌手的“最后得分”并存储于表 temp 中。表 temp中有两个字段:“歌手号”和“最后得分”,并且按最后得分降序排列,生成表 temp sql语句是________

aselect 歌手号,count(分数)- max(分数)-min(分数))/sum*)-2)最后得分;from 评分 into dbf temp group by 歌手号 order by 最后得分desc

bselect 歌手号,(count(分数)-max(分数)-min(分数))/sum*)-2)最后得分;from 评分 into dbf temp group by 评委号 order by 最后得分desc

cselect 歌手号,(sum(分数)-max(分数)-min(分数))/count*)-2)最后得分;from 评分 into dbf temp group by 评委号 order by 最后得分desc

dselect 歌手号,(sum(分数)-max(分数)-min(分数))/count*)-2)最后得分;from评分into dbf temp group by歌手号order by最后得分desc

28)与“select * from*歌手 where not(最后得分>9.00 or 最后得分<8.00)”等价的语句是________

aselect * from 歌手 where 最后得分 between 9.00 and 8.00

bselect * from 歌手 where 最后得分>=8.00 and 最后得分<=9.00

cselect * from 歌手 where 最后得分>9.00 or 最后得分<8.00

dselect * from 歌手 where 最后得分<=8.00 and 最后得分>=9.00

29)为“评分”表的“分数”字段添加有效性规则:“分数必须大于等于 0 并且小于等于10”,正确的 sql 语句是________

achange table 评分 alter 分数 set check 分数>=0 and 分数<=10

balter table 评分 alter 分数 set check 分数>=0 and 分数<=10

calter table 评分 alter 分数 check 分数>=0 and 分数<=10

dchange table 评分 alter 分数 set check 分数>=0 or 分数<=10

30)根据“歌手”表建立视图 myview,视图中含有包括了“歌手号”左边第一位是“1”的所有记录,正确的 sql 语句是________Cl|9V"fZ B(本 文来 源于 我 的学 习网IT认证全国计算机等级考试 htTP://WWw.GZu521.COm]Cl|9V"fZ B

acreate view myview as select * from 歌手 where left(歌手号,1=1

bcreate view myview as select * from 歌手 where like(“1”歌手号)

ccreate view myview select * from 歌手 where left(歌手号,1=1

dcreate view myview select * from 歌手 where like(“1”歌手号)

31)删除视图 myview 的命令是________

adelete myview view

bdelete myview

cdrop myview view

ddrop view myview

32)假设 temp. dbf 数据表中有两个字段“歌手号”和“最后得分”下面程序的功能是:将 temp. dbf 中歌手的“最后得分”填入“歌手”表对应歌手的“最后得分”字段中(假设已增加了该字段)在下线处应该填写的 sql 语句是________

use 歌手

do while . not. eof()

replace 歌手 最后得分 with a[2]

skip

enddo

aselect*from temp where temp.歌手号=歌手.歌手号 to array a

bselect*from temp where temp.歌手号=歌手.歌手号 into array a

cselect*from temp where temp.歌手号=歌手.歌手号 to file a

dselect*from temp where temp.歌手号=歌手.歌手号 into file a

33)与“select distinct”歌手号 from 歌手 where 最后得分>all;(select 最后得分 from)歌手 where substr(歌手号,1,1=2”)等价的 sql语句是________

aselect distinct 歌手号 from 歌手 where 最后得分>=select max(最后得分)from 歌手 where substr (歌手号,1,1=2”)

bselect distinct 歌手号 from 歌手 where 最后得分>=select min(最后得分)from 歌手 where substr (歌手号,1,1=2”)

cselect distinct 歌手号 from 歌手 where 最后得分>=anyselect max(最后得分)from 歌手 where substr (歌手号,1,1=2”)

dselect distinct 歌手号 from 歌手 where 最后得分>=someselect max (最后得分)from 歌手 where substr (歌手号,1,1=2”)

34)以下关于“视图”的描述正确的是________

a)视图保存在项目文件中

b)视图保存在数据库中

c)视图保存在表文件中

d)视图保存在视图文件中

35)关闭表单的程序代码是 thisform ,release, release ________

a)表单对象的标题

b)表单对象的属性

c)表单对象的事件

d)表单对象的方法

上一页 本文共3页:第 [1] [2] [3]下一页

责任编辑:gzu521

IT认证分类
计算机软件水平考试
全国计算机等级考试
思科认证
微软认证
ORACLE/CIW认证
Linux认证
JAVA认证
其它认证
分类推荐信息
更多...
大类最新文章
更多...