下列程序计算Sn的值。Sn=a+aa+aaa+…+aaa…a,其中最后一项为n个。

题型:填空题

问题:

下列程序计算Sn的值。Sn=a+aa+aaa+…+aaa…a,其中最后一项为n个。
例如:a=5,n=4时,则Sn=5+55+555+5555。请在空白处填入适当的内容,将程序补充完整。
Private Sub Comnmnd1_Click()
Dim a As Integer,n As Integer,Cout As Integer
Dim Sn As Long,Tn As Long
Cout=1
Sn=0
Tn=0
a=InputBox(“请输入a的值:”)
n=InputBox(“请输入n的值!”)
Do
Tn=Tn * 10 + a
Sn=Sn+Tn
Cout=Cout+1
【9】
Debug. Print a,n,Sn
End Sub

考点:计算机等级考试VISUALBASIC二级VISUALBASIC笔试
题型:填空题
下列词语中没有错别字的一组是(   )
A.概率、陶治、冠名权、众志成城
B.渲泄、开销、暴发力、杯水车薪
C.余暇、神彩、发祥地、掉以轻心
D.倾泻、凑合、摄像机、相儒以沫
题型:填空题

五、单词首字母填空(10小题,计10分)

60. If winter is a________, will spring be far away?

61. In g________, men are stronger than women.

62. Jane spent years o________ and recording chimp behavior, so she understood it very well.

63. Dr. Yuan thinks it little to spend money on himself. He gives millions of yuan to e_________ others for their research in agriculture.

64. He hoped to catch the last train. U____ he missed it because he was caught in a traffic jam.

65. If you don’t understand a word, you can r________ to a dictionary.

66. To make his film successful, he asked Zhang Yimou to d________ it.

67. Theme parks are places for people to a____ themselves and they always have a certain idea.

68. Children are playing games while a________ are talking happily.

69. When I was at college, I m________ in English. So I teach English now.

题型:填空题

在“卿今强健,我欲死,何忍无急去药,以待不祥”中,“去”的意义是()

A、收藏 

B、舍弃 

C、去掉 

D、离开 

E、以上都不是

题型:填空题

女性,52岁,确诊肺结核3年,近日发现卡哪霉素耐药,结核病恶化选择最佳方案是()

A.2HRSE/6HRE

B.2HRAKZ/6HRE

C.2HRZE/6HRE

D.2HRZE/4HR

E.2HRZE/3HRE

题型:填空题

以羊靥、鹿靥治疗甲状腺肿大的最早医家是()。

A.张仲景

B.孙思邈

C.葛洪

D.巢元方

E.华佗

更多题库