题干

中考进入考场的铃声响了,考生都自觉地走进考场,说明声音可以传递____;这个过程中铃声是靠____传播的,其传播速度为____ _m/s.小明和小华肩走向考场,以小华为参照物,小明是____的;交警部门在考场附近设置了如图所示的交通标志,从控制噪声的角度分析,这是从____处减弱噪声的.

上一题 下一题 0.0难度 选择题 更新时间:2017-11-14 07:07:42

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

信息,空气,340,静止,声源

同类题1

从产品库里面的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

同类题5

任务型阅读

    Happiness is not the absence of problems____Here are a few reminders to help motivate you when you need it most:

    ⒈Pain is part of growing.

    When times are tough, remind yourself that no pain comes without a purpose____ Every great success requires some type of worthy struggle to get there. Good things take time. Everything is going to come together; maybe not immediately, but eventually.

    ⒉____

    Every time it rains, it stops raining. Every time you get hurt, you heal. After darkness there is always light. So if things are good right now, enjoy it. It won't last forever. If things are bad, don't worry because it won't last forever either.

    ⒊Worrying and complaining changes nothing.

    ____ It's always better to attempt to do something great and fail than to attempt to do nothing and succeed. It's not over if you've lost; it's over when you do nothing but complain about it. If you believe in something, keep trying. Don't let the shadows of the past darken the doorstep of your future.

    ⒋Your scars are symbols of your strength.

    Never be ashamed of the scars life has left you with. A scar means the hurt is over and the wound is closed. It means you overcame the pain, learned a lesson, grew stronger, and moved forward____

A. Everything in life is temporary (暂时的).

B. But it is the ability to deal with them.

C. Rarely do people do things because of you.

D. A scar is the sign of a success to be proud of.

E. Those who complain the most, accomplish the least.

F. Move on from what hurt you, but never forget what it taught you.

G. Change because it makes you a better person and leads you to a brighter future.