当前位置: 高中信息技术 / 填空题
  • 1. (2015·杭州模拟) 下列VB程序运行时,单击命令按钮Command1后,若在文本框中输入10,则标签Label1显示的内容是

    Private Sub Command1_Click()

      Dim sjzs As Integer

      Dim rjzs As String

      sjzs = Val(Text1.Text)

      rjzs = ""

      Do While Int(sjzs / 2) > 0

        rjzs = Str(sjzs Mod 2) + rjzs

        sjzs = Int(sjzs / 2)

      Loop

      Label1.Caption = rjzs

    End Sub

基础巩固 能力提升 变式训练 拓展培优 真题演练 换一批

微信扫码预览、分享更方便