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

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

( )1. 插入按鈕是那個圖示(1) (2) (3) (4)
( )2. 使用array函數建立陣列,型別必須為(1)date (2)variant (3)int (4)string
( )3. 在Excel VBA的即時視窗輸入 print 2^3請問會顯示(1)8 (2)6 (3)23 (4)1
( )4. 圖中的數字1代表(1)cell (2)row(列) (3)column(行) (4)worksheet
( )5. 在Excel VBA的即時視窗輸入 print lcase("How are you")請問會顯示(1)how are you (2)How Are You (3)HOW ARE YOU (4)How are you
( )6. 工作表如圖,若執行底下程式會顯示什麼?
Sub test7()
    Dim i As Integer
    
    i = 1
    
    Do While Cells(i + 1, 3).Value <> "" And Cells(i + 2, 3).Value <> ""
       i = i + 1
    Loop
    
    MsgBox Cells(i, 3).Value

End Sub
(1)86 (2)62 (3)38 (4)41
( )7. 在Excel VBA的即時視窗輸入 print 1+2+3 請問會顯示(1)123 (2)1+2+3 (3)6 (4)0
( )8. 圖中的數字5代表(1)range (2)cell (3)row (4)column
( )9. 底下程式碼執行結果會在即時視窗出現
Sub test4()
    Dim i, n As Integer
    
    n = 0
    
    For i = 5 To 1 Step -1
       n = n + 1
       i = i - 1
    Next i
    Debug.Print n & "," & i
    
End Sub(1)3,0 (2)3,-1 (3)5,0 (4)5,-2
( )10. 在Excel VBA的即時視窗輸入 print 5/2 請問會顯示(1)1 (2)0 (3)2.5 (4)2
( )11. 在Excel VBA中不等於的符號是(1)>=< (2)== (3)!= (4)<>
( )12. 請問此圖那一個的真值表(1)or (2)and (3)not (4)xor
( )13. 底下程式執行時會在即時視窗顯示什麼
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)1 (2)2 (3)3 (4)4
( )14. 圖中的數字4代表(1)workbook (2)worksheet (3)range (4)cell
( )15. 在Excel物件的使用方式中是用什麼來表示階層(1)等號 (2)冒號 (3)減號 (4)句號
( )16. 在Excel VBA中變數的宣告要使用那一個指令(1)let (2)print (3)set (4)dim
( )17. 程式碼如下
For i= 1 to 10 
      cells(i,1).value=i
Next i
此程式的執行結果?(1)在儲存格A1:A10填入1到10 (2)在儲存格A1:A10都顯示1 (3)在儲存格A1:J1填入1到10 (4)在儲存格A1:J1填入1到1
( )18. Dim StdNo(10) as String這樣的宣告跟底下那一個相同(1)Dim StdNo(0 to 10) as date (2)Dim StdNo(10) as Integer (3)Dim StdNo(1 to 10) as String (4)Dim StdNo(0 to 10) as String
( )19. 在Excel VBA中要宣告變數I為有小數語法為(1)dim I as date (2)dim I as integer (3)dim I as single (4)dim I as string
( )20. 在Excel VBA的即時視窗輸入 print right("N1234",1) 請問會顯示(1)N (2)4 (3)1 (4)2
( )21. 在Excel VBA的即時視窗輸入 print 1 & 2 + 3 請問會顯示(1)6 (2)0 (3)15 (4)123
( )22. 程式碼如下
For i= 1 to 10 
      cells(1,i).value=i
Next i
此程式的執行結果?(1)在儲存格A1:A10都顯示1 (2)在儲存格A1:J1填入1到10 (3)在儲存格A1:J1填入1到1 (4)在儲存格A1:A10填入1到10
( )23. 在Excel VBA的即時視窗輸入 print 1 & 2 & 3 請問會顯示(1)6 (2)123 (3)0 (4)1+2+3
( )24. 在Excel VBA參數與參數中間是用什麼符號區隔(1)減號 (2)逗點 (3)等號 (4)冒號
( )25. 下列那一個Excel VBA語法是正確的(1)cells("a1").value=123 (2)cells(1,1)=123 (3)excel.range("a1").text=123 (4)range(a1).value=123

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

詳解: