填空題(每題2分,計(jì)20分)
1.在Visual Basic中可以建立( )菜單和( )菜單。
2.建立打開文件、顏色對(duì)話框所使用的方法分別為( )和( )。如果使用action屬性,則應(yīng)把該屬性的值分別設(shè)置為( )和( )。
3.?dāng)?shù)學(xué)表達(dá)式 的VB算術(shù)表達(dá)式為( )。
4.表達(dá)式Ucase(right(“abcdefgh”,5)的值是( )。
5.以下程序的功能是:從鍵盤上輸入學(xué)生的考試分?jǐn)?shù),統(tǒng)計(jì)并輸出最高分?jǐn)?shù)和最低分,當(dāng)輸入負(fù)數(shù)時(shí)結(jié)束輸入,輸出結(jié)果。請(qǐng)?zhí)羁铡?/P>
Private Sub Form_click()
Dim x As Single, amax As Single, amin As Single
x = InputBox("enter a score")
amax = x
amin = x
Do While x > 0
If ( ) Then
amax = x
End If
If ( ) Then
amin = x
End If
x = InputBox("enter a score")
Loop
Print "max="; amax, "min="; amin
End Sub
1. 下拉式 彈出式
2. Showopen showcolor 1 3
3. Sqr(x)/(2*a)+3^2-3*x
4. DEFGH
5. amax<x amin>x
2015年全國(guó)職稱計(jì)算機(jī)考試教材(2007模 .. 定價(jià):¥225 優(yōu)惠價(jià):¥213 更多書籍 | |
全國(guó)職稱計(jì)算機(jī)考試速成過關(guān)系列套裝:W .. 定價(jià):¥133 優(yōu)惠價(jià):¥133.0 更多書籍 |