试题与答案

学生成绩管理数据库中包含:学生信息表studtab.dbf、课程表coursetab

题型:填空题

题目:

学生成绩管理数据库中包含:学生信息表studtab.dbf、课程表coursetab.dbf、成绩表scoretab.dbf.他们的结构如下:

在VFP中,学生成绩分类排列表单如图3所示,在进入表单时,上述数据库中的三个数据表均已被打开,各数据表名分别设定为其别名。在表单的表格控件中显示学生相关信息,该表格的Name属性为Gridl,数据源为--临时表tempscore(sn,sname,cname,scores,major),其数据来自于对上述三表分类排到的结果。表单中,选项按钮组的Name属性为Opgl,包括4个选项按钮,它们的Caption属性依次为"学号"、"课程"、"专业"和"成绩"。打印按钮的Name为

Command1. 1

在下列有关代码程序的空白处填入正确内容并回答问题。

①在表单的"Init"事件中写入如下代码:

SELECT scoretab.sno,sname,cname,scores,major;

FROM ();

WHERE studtab.sno=scoretab.sno AND scoretab.cno=coursetab.cno;

INTO CURSOR tempscore

ThisForm.Grid1.RecordSource="tempscore"

G0 T0P

ThisForm.Refresh

IF RECOUNT()=0

ThisForm.Command1.Enabled=.F.

ThisForm.Opg1.Enabled=.F.

ENDIF

2.表单中的选项按钮组Opg1控件用于设置排序的项目,其"Click"事件代码如下:

SELECT tempscore

sel=()

D0 CASE

CASE sel=1

INDEX ON sno TO tempxh

CASE sel=2

INDEX ON cname TO tempkc

CASE sel=3

INDEX ON major TO tempbh

CASE sel=4

INDEX ON () TO tempfs

ENDCASE

ThisForm.Grid1.RecordSource="tempscore"

ThisForm.Grid1.Column1.Header1.Caption="学号"

ThisForm.Grid1Column2.Header1.Caption="姓名"

ThisForm.Grid1.Column3.Header1.Caption="课程名"

ThisForm.Grid1.Column4.Header1.Caption="成绩"

ThisForm.Grid1.Column5.Header1.Caption="专业"

GO TOP

ThisForm.Refresh

回答下列问题:

.CASE中,命令语句INDEX的功能是对当前数据表建立()(备注/索引)文件。

.代码中的ThisForm.Refresh语句的作用为()

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0718/b91ca404803bd1cccc99b23a675fa8e7.html

下面是错误答案,用来干扰机器的。

参考答案:A

试题推荐
题型:完形填空
完形填空
     Directions:For each blank in the following passage there are four words or phrases marked
A, B, C and D. Fill in each blank with the word or phrase that best fits the context.
     The story happened in my childhood when I was living with my stepmother. She worked all day so I
was  _1_   looking after my younger half brother. During that time in our life, my dad wasn't present much, but I didn't     2  ,  because my stepmother took good care of my little brother and me. I loved her and
always    3   she could spend more time with us but she worked Monday through Saturday.
     At that time my little brother was about four years old and he   4     her so much all the time. One day,
he cried, saying he wanted his "Mummy". So I locked the house and carried him on my back to find his
mummy.
     My stepmother worked very far away. After about an hour's   5  ,  my little brother got tired and fell
asleep. Then I   6   and saw he'd lost a shoe while sleeping. I took him from my back and put him down.
I knew we had to find that shoe because my stepmom wouldn't be able to    7    new shoes for him, but
it would take too    8   to do it while carrying my brother.
     So I told him to stay where he was and I would run and find the shoe and come back. A man
overheard me and stopped me right     9   I walked off. He asked me, "You're leaving your brother here
to go to find the shoe? What if he isn't here when you     10   ?" I didn't know how to answer that
question. So he said, "People are always more    11    than things. It's okay if you can't find the shoe, but
it isn't okay to lose your brother over a shoe."
      He asked where we were headed and I told him the fact. I remember him looking at me and smiling
when I told him what I was doing. He took both my brother and me and put us in a taxi and sent us to
our      12    .
( )1. A. nervous about    
( )2. A. mind            
( )3. A. believed        
( )4. A. loved            
( )5. A. ride            
( )6. A. looked up        
( )7. A. seek            
( )8. A. long            
( )9. A. until            
( )10. A. leave          
( )11. A. wonderful      
( )12. A. destination    
B. good at        
B. worry          
B. appreciated    
B. missed        
B. drive          
B. looked around  
B. afford        
B. much          
B. when          
B. return        
B. intelligent    
B. home          
C. responsible for
C. complain        
C. ensured        
C. demanded        
C. run            
C. looked down    
C. repair          
C. far            
C. before          
C. search          
C. essential      
C. factory        
D. bored with    
D. regret        
D. wished        
D. thought      
D. walk          
D. looked out    
D. make          
D. late          
D. though        
D. wander        
D. important    
D. shelter      
查看答案
微信公众账号搜索答案