皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
阅读以下应用说明以及用Visual Basic语言编写的程序代码,将应填入(n)处的字句写在答题纸的对应栏内。 【应用4.1】 设应用程序的运行窗口内有一个文字标签(Label)以及一个框架,其中有三个复选框(chk1,chk2,chk3),各个复选框单击事件过程的程序代码如下: Private Sub chkl_Click() Label.fontBold=chkl.Value End Sub Private Sub chk2_Click() Label.fontltalic=chk2.Value End Sub Private Sub chk3_Click() Label.fontUnderLine=chk3.Value End Sub 三个复选框chkl、chk2、chk3的功能分别是:(1)。 【应用4.2】 设应用程序的运行窗口内有两个文本框Txt1和Txt2,其初始内容为空。在Txt1文本框中输入一个数值,当光标离开此文本框(例如进入文本框Txt2)时,执行的程序代码如下: Private Sub Txt1_LostFocus() dim x aS double x=Val(Txtl.Text) 工f x<0 Or x>100 Then Txtl.Text ='' MsgBox$('请重新输入!') Txtl.SetFocus Else Txt2.Text=Txt1.Text End If End Sub 该程序代码的功能是:若在文本框Txtl中输入的数值小于0或大于100,当光标离开此文本框时,(2);否则,将其值复制到文本框Txt2中。 【应用4.3】 在下面的应用中,当窗口内发生C1ick事件时,窗口内将显示如图2-4所示的三角(每一行都是二项式展开的系数)。请完善程序代码。 Private Sub Form. Click() Dim i,j,c As Integer,StrTemp AS String Dim a(9)As Integer a(0)=0=a(1)=l:StrTemp=Str(a(1))+Space(3) CurrentX=(ScaleWidth-TextWidth(StrTemp))/2 Print StrTemp For j=2 TO 9 a(j)=1 For C=j-1 TO 2 Step-1 a(c) =(3) Next (4)='' For c = 1 To j StrTemp = StrTemp & Str((5)) & Space(5 - Len(Str(a(c)))) Next CurrentX = (ScaleWidth - TextWidth(StrTemp)) / 2 Print StrTemp Next End Sub
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】What is the passage mainly about?
A.
The importance of common sense.
B.
How to develop the common sense of the company?
C.
The common sense is extincting in business.
D.
Why is common sense destroyed in business?
【单选题】Common sense calls for buyers to be honest about their priorities, preferences, and price range.
A.
Y
B.
N
C.
NG
【判断题】市盈率和市净率是评价股票价值的两个重要指标,市盈率越高说明投资者收回投入的本金所花的时间就越长,市净率高的股票其投资价值也较高
A.
正确
B.
错误
【单选题】In no sense a movement in itself, the "lost generation" attitude nevertheless acted as a common denominator of the writing of the times.
A.
common sense
B.
common feeling
C.
common feature
D.
common name
【多选题】强调咬字吐字技巧对于有些( )具有重要的治疗意义
A.
脑中风
B.
脑溢血
C.
失语症患者
D.
脑瘫患者
【判断题】双侧闸瓦由于每轴车轮两侧都有闸瓦,制动时两侧的闸瓦同时压紧车轮,可以克服单闸瓦式的各种弊病。
A.
正确
B.
错误
【单选题】These fairy tales are as popular as before in that they _____ the common sense of justice and equality.
A.
circulate
B.
observe
C.
satisfy
D.
deliver
【判断题】Python使用缩进对齐划分语句块。
A.
正确
B.
错误
【简答题】Mistakes should be corrected on the basis of common sense.
【简答题】The famous pamphlet Common Sense appearing in 1776 was written by _____________. A.Thomas Jefferson B.Thomas Paine C.Benjamine Franklin
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题