在考生目录下有一个工程文件sjt4.vbp,及窗体文件sjt4.frm,该程序是不完

题型:问答题

问题:

在考生目录下有一个工程文件sjt4.vbp,及窗体文件sjt4.frm,该程序是不完整的,请根据下面的描述,编写Select分支结构的Case语句部分,以满足题目的要求。注意:不得增行或减行,也不能更改程序的结构。存盘时不得改变文件名和文件夹。
本题捕述如下:在窗体Form1上有6个标签、6个文本框以及1个控制按钮。标签、文本框和控制按钮都使用默认的Name属性,标签与控制按钮的标题如下图所示。窗体上所有控件的属性都在程序代码中设置。本程序运行时使用随机数模拟掷骰子(六面,分别为1点、2点、3点、4点、5点、6点)计算出现1点、2点、3点、4点、5点、6点朝上的概率。


程序运行时的窗体界面如下图所示。
试题源程序:
1 Private Sub Command1 Click( )
2 Me. Timer1. Enabied =True
3 End Sub
4 Private Sub Form_Load( )
5 Form1. Caption="掷骰子概率"
6 Me. Timer1. Interval=100
7 Me. Timer1. Enabled=False
8 End Sub
9 Private Sub Timer1_Timer( )
10 Randomize
11 Static n As Integer
12 Static n1 As Integer
13 Static n2 As Integer
14 Static n3 As Integer
15 Static n4 As Integer
16 Static n5 As Integer
17 Static n6 As Integer
18 Dim temp As Integer
19 n=n+1
20 temp=Int(Rnd*6+1)
21 Select Case temp
22 ’
23 End Select
24 End Sub

考点:计算机等级考试VISUALBASIC二级VISUALBASIC机试
题型:问答题

完形填空。

     The best way of learning a language is always using it. The best way of learning   1  English is talking
in English as much as possible. Sometimes  you'll get your  2   mixed up and people will not  3 .
Sometimes people  will say things too  4  and you can't understand them. But   5   you keep your sense
of humor, you can always have a  good laugh    6   the mistakes you make. Don't be   7   if people seem
to be laughing at your mistakes. It's  8  for people to laugh at your mistakes than to be angry with you,
because they don't understand  9   you are saying. The most important thing for learning English is:
don't be afraid of making mistakes because  10  makes mistakes.  
( )1. A. real    
( )2. A. mistakes
( )3. A. like    
( )4. A. fast    
( )5. A. if      
( )6. A. on      
( )7. A. unhappy  
( )8. A. good    
( )9. A. that    
( )10. A. someone
B. spoken    
B. languages  
B. know      
B. slowly    
B. when      
B. at        
B. happy      
B. better    
B. what      
B. everything
C. speak      
C. books      
C. help      
C. happily    
C. since      
C. in        
C. comfortable
C. best      
C. when      
C. everyone  
D. written    
D. words      
D. understand
D. clearly    
D. although  
D. with                                 
D. bad        
D. well      
D. where      
D. something  
题型:问答题

信息系统开发的特点之一使复杂性高,这主要表现在( )。

A.内容复杂,目标多样:技术手段复杂:效益难以计算;用户要求复杂

B.逻辑产品;技术手段复杂;投资大,效益难以计算;用户要求复杂

C.逻辑产品;投资大,效益难以计算;环境多变:技术手段复杂

D.内容复杂,目标多样;技术手段复杂;投资大,效益难以计算;环境复杂多变

题型:问答题

《建设工程监理规范》规定,总监理工程师不得委托总监理工程师代表的工作是 ( )。

A.审查分包单位的资质

B.主持整理工程项目的监理资料

C.审查和处理工程变更

D.审批项目监理实施细则

题型:问答题

2020年森林覆盖率应达到(),与2015年相比增加1.3%。

A.13%

B.23%

C.26%

D.16%

题型:问答题

所有单位在进行核算时,都应以权责发生制原则为基础。( )

更多题库