引用ListBox(列表框)最后一个数据项应使用()语句。A.ListBox1.Items[ListBox1.Items.Count]B.ListBox1.Items[ListBox1.SelectedIndex]C.ListBox1.Items[ListBox1.Items.Count-1]D.ListBox1.Items[ListBox1.SelectedIndex-1]

题目

引用ListBox(列表框)最后一个数据项应使用()语句。

A.ListBox1.Items[ListBox1.Items.Count]

B.ListBox1.Items[ListBox1.SelectedIndex]

C.ListBox1.Items[ListBox1.Items.Count-1]

D.ListBox1.Items[ListBox1.SelectedIndex-1]


相似考题
参考答案和解析
ListBox1. Items (ListBox1.Items.Count -1)
更多“引用ListBox(列表框)最后一个数据项应使用()语句。”相关问题
  • 第1题:

    引用列表框ListBox1最后一个数据项应使用()。

    A、ListBox1.Items(ListBox1.Items.Count)

    B、ListBox1.Items(ListBox1.Items.Count-1)

    C、ListBox1.Text

    D、ListBox1.Items(ListBox1.SelectedIndex)


    参考答案:B

  • 第2题:

    在下面对列表框(ListBox1)的操作中,正确的语句是()。

    A、Listbox1.Items.Cls

    B、ListBox1.Items.Remove(4)

    C、ListBox1.Items.Remove(“计算机“)

    D、ListBox1.Items.Add(1,“打印机“)


    正确答案:C

  • 第3题:

    引用列表框(List1)最后一个数据项应使用的语句是()。

    A、List1.List(List1.ListCount)

    B、List1.List(List1.ListCount-1)

    C、List1.List(ListCount)

    D、List1.List(ListCount-1)


    正确答案:B

  • 第4题:

    列表框(ListBox)显示(),用户可以从中显示一个或多个项目。
    项目列表

  • 第5题:

    假如列表框(List1)有四个数据项,那么把数据项“China”添加到列表框的最后,应使用()语句。

    • A、List1.AddItem3,"China"
    • B、List1.AddItem"China",List1.List1Count-1
    • C、List1.AddItem"China",3
    • D、List1.AddItem"China"

    正确答案:D

  • 第6题:

    引用ListBox(列表框)最后一个数据项应使用()语句

    • A、ListBox1.Items[ListBox1.Items.Count]
    • B、ListBox1.Items[ListBox1.SelectedIndex]
    • C、ListBox1.Items[ListBox1.Items.Count-1]
    • D、ListBox1.Items[ListBox1.SelectedIndex-1]

    正确答案:C

  • 第7题:

    假如列表框(List1)有四个数据项,那么把数据项“China”添加到列表框的最后,应使用语句()。

    • A、List1.AddItem 3, "China"
    • B、List1.AddItem "China", List1.List1Count-1
    • C、List1.AddItem "China", 3 
    • D、List1.AddItem "China", List1.List1Count

    正确答案:D

  • 第8题:

    将数据项"China"添加到列表框List1中,成为第一项应使用语句()

    • A、List1.AddItem"China",0
    • B、List1.AddItem"China",1
    • C、List1.AddItem0,"China"
    • D、List1.AddItem1,"China"

    正确答案:A

  • 第9题:

    单选题
    引用ListBox(列表框)最后一个数据项应使用()语句
    A

    ListBox1.Items[ListBox1.Items.Count]

    B

    ListBox1.Items[ListBox1.SelectedIndex]

    C

    ListBox1.Items[ListBox1.Items.Count-1]

    D

    ListBox1.Items[ListBox1.SelectedIndex-1]


    正确答案: B
    解析: 暂无解析

  • 第10题:

    单选题
    假如列表框(List1)有四个数据项,那么把数据项“China”添加到列表框的最后,应使用语句()。
    A

    List1.AddItem 3, China

    B

    List1.AddItem China, List1.List1Count-1

    C

    List1.AddItem China, 3 

    D

    List1.AddItem China, List1.List1Count


    正确答案: B
    解析: 暂无解析

  • 第11题:

    单选题
    引用列表框的最后一项应使用()。
    A

    List1.List(List1.ListCount-1)

    B

    List1.List(List1.ListCount)

    C

    List1.List(ListCount)

    D

    List1.List(ListCount-1)


    正确答案: B
    解析: 暂无解析

  • 第12题:

    单选题
    引用ListBox(列表框)当前被选中的数据项应使用()语句
    A

    ListBox1.Items[ListBox1.Items.Count]

    B

    ListBox1.Items[ListBox1.SelectedIndex]

    C

    ListBox1.Items[ListBox1.Items.Count-1]

    D

    ListBox1.Items[ListBox1.SelectedIndex-1]


    正确答案: D
    解析: 暂无解析

  • 第13题:

    向列表框中的最后填加一个新项目,正确的语句是()。

    A、ListBox1.Items.Add(“HowareYou“)

    B、ListBox1.Items.Insert(“HowareYou“)

    C、ListBox1.Items.Add(2,“HowareYou“)

    D、ListBox1.Items.Insert(2,“HowareYou“)


    正确答案:A

  • 第14题:

    在窗体中添加一个列表框(ListBox1)和一个命令按钮,并编写如下代码: Private Sub Commandl_Click() Dim a, i, msg msg="Choose OK to add 100 items to your listbox." MsgBox msg For i=l To 100 a="a:" &i ListAddltem a Next i End Sub 程序完成的功能是 ( )

    A.本程序使用Addltem方法增加100项给一个列表框

    B.本程序使用Addltem方法向一个列表框中添加100项,其内容是数字1~100

    C.本程序使用Addltem方法向一个列表框中添加的内容是1~100的和

    D.本程序使用Addhem方法增加100个列表框


    正确答案:A
    解析:向列表框中添加项目常用 AddItem方法,其格式为:列表框名.AddItem字符串[,序号]
    题中的程序使用Addltem方法增加100项给一个列表框,其内容为a:i(i为l到100的数字)。分析各选项,只有A项是正确的。

  • 第15题:

    可通过()属性判断ListBox列表框控件的项目总数目。

    AListIndex

    BListText

    CListcount

    D随机数


    C

  • 第16题:

    ListBox对象列表框中的内容是通过()属性来进行设置的。


    正确答案:items

  • 第17题:

    向列表框中的最后填加一个新项目,正确的语句是()

    • A、ListBox1.Items.Add ("How are You")
    • B、ListBox1.Items.Insert ("How are You")
    • C、ListBox1.Items.Add (2, "How are You")
    • D、ListBox1.Items.Insert (2, "How are You")

    正确答案:A

  • 第18题:

    引用ListBox(列表框)当前被选中的数据项应使用()语句

    • A、ListBox1.Items[ListBox1.Items.Count]
    • B、ListBox1.Items[ListBox1.SelectedIndex]
    • C、ListBox1.Items[ListBox1.Items.Count-1]
    • D、ListBox1.Items[ListBox1.SelectedIndex-1]

    正确答案:B

  • 第19题:

    假如列表框(List1)有四个数据项,把数据项“数据库原理”添加到列表框的最后,应使用()语句。

    • A、List1.AddItem“数据库原理”,List1.ListCount
    • B、List1.AddItem“数据库原理”,List1.ListCount-1
    • C、List1.AddItem3,“数据库原理”
    • D、List1.AddItem“数据库原理”,3

    正确答案:A

  • 第20题:

    列表框(ListBox)用于返回列表框中所有选项的个数,其属性listcount只能在程序代码中调用和设置。


    正确答案:正确

  • 第21题:

    单选题
    假如列表框(List1)有四个数据项,那么把数据项“China”添加到列表框的最后,应使用()语句。
    A

    List1.AddItem3,China

    B

    List1.AddItemChina,List1.List1Count-1

    C

    List1.AddItemChina,3

    D

    List1.AddItemChina


    正确答案: D
    解析: 暂无解析

  • 第22题:

    单选题
    下列关于列表控件(ListBox)的说法,错误的是(  )。
    A

    当列表框的RowSourceType为0时,在程序运行中,可以通过AddItem方法添加列表框条目

    B

    列表框可以有多个列,即一个条目可包含多个数据项

    C

    不能修改列表框中Value属性的值

    D

    列表框控件可显示一个数据项列表,用户只能从中选择一个条目


    正确答案: D
    解析:
    列表框提供一组条目(数据项),用户可以从中选择一个或多个条目。A项中添加列表框条目用AddItem方法,移去列表框条目用RemoveItem方法;C项返回列表框中被选中的条目用只读属性Value。

  • 第23题:

    单选题
    将数据项“China”添加到列表框List1中成为第一项,应使用的语句是()。
    A

    List1.AddItemChina,0

    B

    List1.AddItemChina,1

    C

    List1.AddItemChina,

    D

    List1.AddItem1,China


    正确答案: C
    解析: 暂无解析

  • 第24题:

    填空题
    列表框(ListBox)显示(),用户可以从中显示一个或多个项目。

    正确答案: 项目列表
    解析: 暂无解析