题目
Text 4
It was 3:45 in the morning when the vote was finally taken. After six months of arguing and final 16 hours of hot parliamentary debates, Australia’s Northern Territory became the first legal authority in the world to allow doctors to take the lives of incurably ill patients who wish to die. The measure passed by the convincing vote of 15 to 10. Almost immediately word flashed on the Internet and was picked up, half a world away, by John Hofsess, executive director of the Right to Die Society of Canada. He sent it on via the group’s on-line service, Death NET. Says Hofsess: “We posted bulletins all day long, because of course this isn’t just something that happened in Australia. It’s world history.”
The full import may take a while to sink in. The NT Rights of the Terminally Ill law has left physicians and citizens alike trying to deal with its moral and practical implications. Some have breathed sighs of relief, others, including churches, right to life groups and the Australian Medical Association, bitterly attacked the bill and the haste of its passage. But the tide is unlikely to turn back. In Australia—where an aging population, life extending technology and changing community attitudes have all played their part—other states are going to consider making a similar law to deal with euthanasia. In the US and Canada, where the right to die movement is gathering strength, observers are waiting for the dominoes to start falling.
Under the new Northern Territory law, an adult patient can request death—probably by a deadly injection or pill—to put an end to suffering. The patient must be diagnosed as terminally ill by two doctors. After a “cooling off” period of seven days, the patient can sign a certificate of request. After 48 hours the wish for death can be met. For Lloyd Nickson, a 54 year old Darwin resident suffering from lung cancer, the NT Rights of Terminally Ill law means he can get on with living without the haunting fear of his suffering: a terrifying death from his breathing condition. “I’m not afraid of dying from a spiritual point of view, but what I was afraid of was how I’d go, because I’ve watched people die in the hospital fighting for oxygen and clawing at their masks,” he says.
56. From the second paragraph we learn that ________.
[A] the objection to euthanasia is slow to come in other countries
[B] physicians and citizens share the same view on euthanasia
[C] changing technology is chiefly responsible for the hasty passage of the law
[D] it takes time to realize the significance of the law’s passage
第1题
A.12
B.13
C.14
D.15
第2题
(10 )子过程 Test 显示一个如下所示 9X4 的乘法表。
1*1=1 1*2=2 1*3=3 1*4=4
2*2=4 2*3=6 2*4=8
3*3=9 3*4=12
4*4=16
请在空白处填入适当的语句使子过程完成指定的功能。
Sub Text ()
Dim i,j As Integer
For i=1 To 4
For j=1 To 4
If 【 10 】 Then
Debug.Prrint I & “ * ” & j & “ = ” & i * j & Space (2 )
End If
Next j
Debug .Print
Next i
End Sub
第3题
子过程Test显示—个如下所示4×4的乘法表。
1*1=1 1*2=2 1*3=3 1*4=4
2*2=4 2*3=6 2*4=8
3*3=9 3*4=12
4*4=16
请在空白处填入适当的语句使子过程完成指定的功能。
Sub Text()
Dim i,j As Integer
For i=1 To 4
For j=1 To 4
If【 】Then
Debug.Print i& "*" &j&"="& i*j & Space(2),
End If
Next j
Debug.Print
Next i
End sub
第4题
在窗体中有一个命令按钮Command1和一个文本框Text1,编写事件代码如下:
Private Sub Command1_Click()
For I=1 To 4
X=3
For j=i To 3
For k=1 To 2
X=x+3
Next k
Next j
Next I
Text].value=Str(x)
End Sub
打开窗体运行后,单击命令按钮,文本框Text1输出的结果是
A.6
B.12
C.18
D.21
第5题
在窗体上画一个名为Text1的文本框和一个名称为Command1的命令按钮,然后编写如下事件过程: Private Sub Command1_Click() Dim arrayl(10, 10)As Integer Dim i As Integer, j As Integer For i=1 To 3 For j=2 To 4 arrayl(i, j)=i+j Next j Next i Text1. Text=arrayl(2, 3)+arrayl(3, 4) End Sub 程序运行后,单击命令按钮,在文本框中显示的值是______。
A.12
B.13
C.14
D.15
第6题
A.4 5 3 4 2 1
B.45 34 21
C.453421
D.4 5 3 4 2 1
第7题
A.45
B.15
C.6
D.28
第8题
阅读以下应用说明以及Visual Basic程序代码,将应填入(n)。
【应用说明】
某电视台拟开发应用程序来显示戏曲大赛中1~4号四位选手决赛的现场投票情况。该程序从现场观众中(不超过2000人)每0.5秒收集一次对这四位选手的支持票数,并在屏幕上动态显示这四位选手的票柱(以高度反映票数)与累计得票数,如图2-3所示。投票过程限时30秒,每名观众最多为1名选手投票。投票结束后系统通过比较各位选手的累计得票数,显示决赛结果:“*号胜出”(如有单个冠军)或“继续进行PK”(如有多人获得相同的最高票数)。
在开发该程序的过程中创建的主要控件及其初始属性值说明如下:
该程序中设置公共变量T动态记录投票时间。四个形状ShpM(1 to 4)动态增长的底线固定。
【Visual Basic程序代码】
Dim T As Integer '声明全局变量
Private Sub Form_Load()
For i=1 To 4
ShpM(i).Top=2000 : ShpM(i).Height=0 '初始票柱高度为0
TxtM(i).Text=0
Next i
Timl.Enabled=False : Timl.Interval=500 : T=0
End Sub
Private Sub CmdStart Click()
Timl.Enabled=True '开始投票
CmdStart.Enabled=False
End Sub
Private Sub Timl Timer()
Dim n(1 To 4) As Integer 'n(1 to 4)为每次收集的票数
Dim i As Integer,j As Integer
Dim G As Integer 'G用于计算最高票数
Dim ng As Integer 'ng用于计算冠军个数
For i=1 To 4
n(i)=... '收集i号选手的票数,此处省略
TxtM(i).Text=TxtM(i).Text+n(i) '累计票(VB能进行自动转换)
ShpM(i).Top=ShpM(i).Top-n(i)
ShpM(i).Height=ShpM(i).Height+(1) '算出票柱高度
Next i
T=T+1 '计时
If T=60 Then '投票时间到
(2) '停止数据收集处理
ng = 1
G=TxtM(1).Text
For i=2 To 4
If G<TxtM(i).Text Then
G=TxtM(i).Text
ng=(3)
j = i
Else
If G=TxtM(i).Text Then ng=(4) '计算冠军个数
End If
Next i
If ng=1 Then
txtResult. Text=(5) '单个冠军结果
Else
txtResult. Text="继续进行PK"
End If
End If
End Sub
第9题
试题六(共 15 分)
阅读以下应用说明以及 Visual Basic 程序代码,将应填入 (n) 处的字句写在答题纸的对应栏内。
[应用说明]
某电视台拟开发应用程序来显示戏曲大赛中1~4号四位选手决赛的现场投票情况。该程序从现场观众中(不超过 2000 人)每 0.5 秒收集一次对这四位选手的支持票数,并在屏幕上动态显示这四位选手的票柱(以高度反映票数)与累计得票数,如图 6-1 所示。投票过程限时 30 秒,每名观众最多为 1 名选手投票。投票结束后系统通过比较各位选手的累计得票数,显示决赛结果: “*号胜出” (如有单个冠军)或“继续进行 PK”(如有多人获得相同的最高票数) 。
该程序中设置公共变量 T 动态记录投票时间。四个形状 ShpM(1 to 4)动态增长的
底线固定。
[Visual Basic 程序代码]
Dim T As Integer '声明全局变量
Private Sub Form_Load()
For i = 1 To 4
ShpM(i).Top = 2000 : ShpM(i).Height = 0 ' 初始票柱高度为0
TxtM(i).Text = 0
Next i
Tim1.Enabled = False : Tim1.Interval = 500 : T = 0
End Sub
Private Sub CmdStart_Click()
Tim1.Enabled = True '开始投票
CmdStart.Enabled = False
End Sub
Private Sub Tim1_Timer()
Dim n(1 To 4) As Integer ' n(1 to 4)为每次收集的票数
Dim i As Integer, j As Integer
Dim G As Integer ' G 用于计算最高票数
Dim ng As Integer ' ng 用于计算冠军个数
For i = 1 To 4
n(i) = … ' 收集 i 号选手的票数,此处省略
TxtM(i).Text = TxtM(i).Text + n(i) ' 累计票(VB 能进行自动转换)
ShpM(i).Top = ShpM(i).Top - n(i)
ShpM(i).Height = ShpM(i).Height + (1) ' 算出票柱高度
Next i
T = T + 1 ' 计时
If T = 60 Then ' 投票时间到
(2) ' 停止数据收集处理
ng = 1
G = TxtM(1).Text
For i = 2 To 4
If G < TxtM(i).Text Then
G = TxtM(i).Text
ng = (3)
j = i
Else
If G = TxtM(i).Text Then ng = (4) ' 计算冠军个数
End If
Next i
If ng = 1 Then
txtResult.Text = (5) ' 单个冠军结果
Else
txtResult.Text = "继续进行PK"
End If
End If
End Sub
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!