Tutorial 6, Lesson B
Questions
1. d Resize
2. c ScaleWidth, Width
3. c form’s Resize
4. a,d Height, Width
5. b,c ScaleHeight,ScaleWidth
6. a,c Caption, Name
7. b Click
8. b menu titles
9. e separator bar
10. c hyphen
11. a access
12. e shortcut
13. a ampersand (&)
14. e If a menu title requires additional information from the user, follow the menu
title’s name with an ellipsis (…).
15. a Menu items, which can be from one to three words, should be entered using
sentence capitalization.
16. a Clipboard.Clear
17. d Clipboard.SetText “Hello”
18. b lblMsg.Caption = Clipboard.GetText()
19. b SelText
20. a GetText()
21. c Enabled
22. b MultiLine
23. c ScrollBars
24. b MultiLine
Tutorial 6, Lesson C
Questions
1. b,c Left, Mid
2. c,d Mid Right
3. c Mid
4. d Ha
5. c ay
6. c lcom
7. b Mid(strName, 1, 3)
8. d Mid(strName, 11, 3)
9. a 0
10. c 17
11. c 17
12. a 0
13. d SelStart
14. a 9
Tutorial 7, Lesson A
Questions
1. c Common Dialog
2. e ShowOpen
3. e ShowPrinter
4. c Save As
5. d ShowColor
6. d ShowFont
7. c Filter
8. a “Picture Files(*.pic)|*.pic”
9. b “Project Files(*.vbp;*.mak;*.vbg)|*.vbp;*.mak;*.vbg”
10. c FileName
11. c Flags
12. c Flags
Tutorial 7, Lesson B
Questions
1. c both a and b (save a new file and save an existing file under a new name)
2. d both a and b (the document’s name and the application’s name)
3. e both b and c (the application’s name and the type of document the application
creates)
4. a cdlOFNOverwritePrompt
5. b cdlOFNPathMustExist
6. c dlgEdit.Filter = “Document Files(*.doc)|*.doc”
7. e FileName
8. d Write #
9. b Print #
10. d CancelError
11. c error trapping
12. c error-handling routine or error handler
13. b On Error GoTo
14. d Exit Sub
15. a colon (:)
16. d Call mnuFileSaveAs_Click
17. a True and False
Tutorial 10, Lesson A
Questions
1. a,c,e are related in some way, have the same data type, have the same name
2. e subscript
3. d intStock sub 2
4. c Variable arrays use many more variable names.
5. e Dim strItem(1 To 5) as String
6. a You use the Dim statement to fill an array with data.
7. b Mary
8. b replace the name “Patrick” with the name “Jan”
9. b replace the name “Tom” with the name “Sue”
10. c replace the 500 amount with 510
11. a replace the 500 amount with 12000
12. a 22000
13. e If intX >= 1 and intX <= 5 Then
14. d For intX = 1 To 5 Step 1
curSales(intX) = curSales(intX) + 100
Next intX
15. b 6
16. e For intX = 1 To 4 Step 1
intTotal = intTotal + intNum(intX)
Next intX
sngAvg = intTotal / (intX –1)
Print sngAvg
17. a 0
18. c 4.8
19. a 0
20. b 3.8
21. e 6
22. a Dim strItem(1 To 3, 1 To 4) as String
23. c Print intNum(2,2)
24. b For intRow = 1 To 2 Step 1
For intCol = 1 To 3 Step 1
Input #1, intNum(intRow, intCol)
Next intCol
Next intRow
25. a fill the array incorrectly
10 50 25
200 300 30
26. c fill the array correctly
10 200 50
300 25 30
27. b result in the “Subscript out of range.” message
10 200
50 300
28. b result in the “Subscript out of range.” message
10
200