<   Excel VBA實務班(第二班)測驗(全部95題任選25題)   >

免費免註冊,彰化一整天線上測驗:http://exam.bestdaylong.com/test2226.htm

( )1. 修改Excel按鈕顯示文字是使用那一個屬性(1)caption (2)name (3)text (4)value
( )2. 圖中的數字2代表(1)range (2)cell (3)workbook (4)worksheet
( )3. 請問此圖i若變成95,執行時會在即時視窗顯示(1)乙 (2)丙 (3)丁 (4)甲
( )4. 在Excel VBA的即時視窗輸入 print ucase("How are you")請問會顯示(1)How Are You (2)HOW ARE YOU (3)How are you (4)how are you
( )5. Dim StdNo(10) as String這樣的宣告跟底下那一個相同(1)Dim StdNo(1 to 10) as String (2)Dim StdNo(0 to 10) as String (3)Dim StdNo(0 to 10) as date (4)Dim StdNo(10) as Integer
( )6. 在Excel VBA中變數的宣告要使用那一個指令(1)set (2)dim (3)let (4)print
( )7. 底下程式執行時會在即時視窗顯示什麼
Sub test6()
    Dim i As Integer
    Dim std_no(5) As Integer
    
    For i = 1 To 5
        std_no(i) = i
    Next
    
    Debug.Print std_no(3)   '顯示陣列索引為3的資料
End Sub(1)4 (2)1 (3)2 (4)3
( )8. 在Excel VBA的即時視窗輸入? Mid("daylong", 2, 3)請問會顯示(1)ay (2)ayl (3)yl (4)ylo
( )9. 程式碼如下

For i= 1 to 9 
    For j=1 to 9
        cells(i,j).value=i*j
    Next j
Next i當i=5,j=3時,執行結果(1)在儲存格C5顯示15 (2)在儲存格E3顯示3 (3)在儲存格C5顯示5 (4)在儲存格E3顯示15
( )10. 程式碼如下
For i= 1 to 10 
      cells(1,i).value=1
Next i
此程式的執行結果?(1)在儲存格A1:A10填入1到10 (2)在儲存格A1:A10都顯示1 (3)在儲存格A1:J1填入1到10 (4)在儲存格A1:J1填入1到1
( )11. 在Excel VBA的即時視窗輸入 print 1 & 2 & 3 請問會顯示(1)1+2+3 (2)6 (3)123 (4)0
( )12. 在Excel VBA中要顯示一段文字hello那一段語法是對的(1)say "hello" (2)say hello (3)msgbox hello (4)msgbox "hello"
( )13. 程式碼如下
For i= 1 to 10 
      cells(i,1).value=i
Next i
此程式的執行結果?(1)在儲存格A1:J1填入1到10 (2)在儲存格A1:J1填入1到1 (3)在儲存格A1:A10填入1到10 (4)在儲存格A1:A10都顯示1
( )14. 在Excel VBA中列的英文為(1)x (2)row (3)column (4)cell
( )15. 在Excel VBA的即時視窗輸入 print mid("N1234",2,1) 請問會顯示(1)2 (2)3 (3)N (4)1
( )16. 底下程式執行時會在即時視窗顯示什麼
Sub test7()
    Dim i As Integer
    Dim std_no(5) As Integer
    
    For i = 1 To 5
        std_no(i - 1) = i - 1
    Next
    
    Debug.Print std_no(3)   '顯示陣列索引為3的資料
End Sub(1)2 (2)3 (3)4 (4)1
( )17. 在Excel中工作表的英文名稱為(1)worksheet (2)excel (3)Application (4)workbook
( )18. 底下程式執行時會在即時視窗顯示什麼
Sub test2()
    Dim no As Variant
    no = Array(1, 2, 3, 4, 5)
    Debug.Print no(5)   '顯示陣列索引為5的資料
End Sub(1)4 (2)1 (3)出現陣列索引超出範圍 (4)3
( )19. 在Excel VBA中要宣告變數I為有小數語法為(1)dim I as string (2)dim I as date (3)dim I as integer (4)dim I as single
( )20. 工作表如圖,若執行底下程式會顯示什麼?
Sub test6()
    Dim i As Integer
    
    i = 1
    
    Do While Cells(i + 1, 3).Value <> "" Or Cells(i + 2, 3).Value <> ""
       i = i + 1
    Loop
    
    MsgBox Cells(i, 3).Value

End Sub(1)62 (2)41 (3)50 (4)59
( )21. 切換設計模式及執行模式圖示是(1) (2) (3) (4)
( )22. 圖中的數字3代表(1)row (2)column (3)range (4)cell
( )23. 底下程式執行時會在即時視窗顯示什麼
Sub test1()
    Dim no As Variant
    no = Array(1, 2, 3, 4, 5)
    Debug.Print no(1)   '顯示陣列索引為1的資料
End Sub(1)4 (2)1 (3)2 (4)3
( )24. 工作表如圖,若執行底下程式會顯示什麼?
Sub test10()
    Dim i As Integer
    
    i = 1
    
    Do While Cells(6, i).Value <> ""
       i = i + 1
    Loop
    
    MsgBox i

End Sub(1)4 (2)1 (3)2 (4)3
( )25. 在Excel 2007要儲存含有巨集的格式,檔案副檔名為(1)xlsx (2)csv (3)txt (4)xlsm

解答:
001.【1】002.【3】003.【4】004.【2】005.【2】006.【2】007.【4】008.【2】009.【1】010.【4】
011.【3】012.【4】013.【3】014.【2】015.【4】016.【2】017.【1】018.【3】019.【4】020.【2】
021.【3】022.【2】023.【3】024.【3】025.【4】

詳解: