题干

如图表示一项生长素的研究实验,下列关于实验结果的叙述理论上是正确的是

A:M长得比N长

B:N长得比M长

C:M弯向一侧而N不弯曲

D:N弯向一侧而M不弯曲

上一题 下一题 0.0难度 选择题 更新时间:2018-07-12 02:46:41

答案(点此获取答案解析)

A

同类题2

从产品库里面的product数据表中读出产品信息(ID,类别,产品名,图片路径,格式5个字段)。已知product表中已经按ID排序,读出后的数据直接连接成字符串在List1中显示,现在希望能不改变原有列表顺序的情况下,在list2中显示按产品名排序的结果。一般的方法是按产品名建立索引(不存在重复的产品名)。基本思路如下:

⑴用一个数组product()来存放产品名。

⑵用另一个数组a()来存放产品名数据的下标(已经按产品名排序的)。

按产品名排序的方法是:取第一个产品名product(0),与后面所有的产品名比较一遍,如果有比第一个产品名大的,M+1,M用来计该产品名的位次。一轮结束后在a(M)元素记下第一个产品名的下标0。然后再取product(1)与其它所有产品名比较一遍,其余同第一个产品名。依次完成每一个产品名位次的计算并记录在a()数组中。

⑶最后按a()数组指定的位置取出list1中的项添加到list2中。

程序代码如下,请补充完整下面的空缺。

Dim products(100) As String  '存放产品名的数组

Dim num As Integer          '从数据库中读出的记录数

Private Sub Command1_Click()

Dim a(100) As Integer           '存放按产品名索引的产品数组下标

Dim i As Integer, j As Integer, m As Integer    'm比当前产品名大的产品名个数

For i = 0 To 100

    a(i) = 0

Next i

For i = 0 To num

   m = 0

   For j = ____ 

     If i <> j And products(i) > products(j) Then m = m + 1

   Next j

   ____ 

Next i

For i = 1 To num

 List2.AddItem  ____     '按a数组的索引从list1中取出项添加到list2

Next i

End Sub

Private Sub Form_Load()

Dim conn As New ADODB.Connection

Dim rs As New ADODB.Recordset

Dim s As String, i As Integer

conn.ConnectionString = "provider=microsoft.ace.oledB.12.0;data source=" & App.Path & "\产品库.accdb "

conn.Open

Set rs.ActiveConnection = conn

rs.Open "select * from product"

num = 0

Do While Not rs.EOF And num <= 100

    s = ""

    For i = 1 To 5

     products(num) = rs.Fields(2)           '读出当前记录的产品名保存到products数组

     s = s & rs.Fields(i - 1) & " ,"        '将一条记录的各字段内容连接成字符串

    Next i

    List1.AddItem s

    ____

    num = num + 1

 Loop

 num = num - 1

 rs.Close

 conn.Close

 Set rs = Nothing

 Set conn = Nothing

End Sub

同类题3

根据短文理解,选择正确答案。

    One of Scotland's most active centenarians ( 百岁的人), Lady Morton, drove for nearly 80 years. She loved driving and spent the war years as an ambulance driver for Bangour Hospital. Aged 100 she was still driving around Edinburgh, up to Perthshire and elsewhere — the oldest among all the drivers in Scotland. But she had her first ever accident several days after her 100th birthday — she hit a traffic island (a raised area in the middle of a road where people can wait until it is safe to cross) when she took her new car for a drive in Edinburgh.

    Lady Morton, who celebrated her 100th birthday in July, was given a car as a present. She talked about the accident happened that night. “I wasn't going fast, but I hit a traffic island. I couldn't see it, because it had no light, which I think was unbelievable and unreasonable. But I am all right and luckily my car wasn't badly damaged.

    Although Lady Morton had the accident, she didn't plan to stop driving.“Some people are just born to drive, and I think I am one of them. I've been a good driver since the first time I got in a car, she said. “I am musical, so I listen to sound of the car to know when to change gear (档位).

    Lady Morton bought her first car in 1927. The main change she had noticed since then is the traffic. “It's appalling. However, I don't mind it, because I am experienced, but I feel very sorry for beginners,” she said.