12. (p. 176) Use the Visual Studio intrinsic constant, _______, to determine lin
ID: 3638676 • Letter: 1
Question
12. (p. 176) Use the Visual Studio intrinsic constant, _______, to determine line endings.A. VB.Multiline
B. Environment.NewLine
C. VS.NewLine
D. VB.NewLine
13. (p. 177) The Show method of a MessageBox returns a _______ object that you can check to see which button the user clicked.
A. Show
B. ShowMe
C. Selected
D. DialogResult
14. (p. 179) Checking to verify that appropriate values have been entered for a text box is called _______.
A. verification
B. validation
C. a MessageBox
D. a watch expression
15. (p. 181) Which of the following statements does NOT apply to the Case structure?
A. It can be used instead of nested Ifs.
B. It can be used for testing numeric and string values.
C. It must begin with Select Case and it must end with End Case.
D. Case Else is optional.
16. (p. 181) The Select Case statement is a code structure used for ________.
A. repetition
B. selection
C. sequence
D. none of these
17. (p. 181) The Select Case statement must end with __________.
A. End Select
B. End Case
C. Select End
D. Case End
18. (p. 181) _______ is an optional clause available for the Case Structure when no match is found in any of the Case statements.
A. Case Else
B. Default
C. ElseIf
D. Else Case
19. (p. 181) What is the value of MysteryInteger when the following statements are executed?
Const NUMBER_Integer As Integer = 10
Select Case NUMBER_Integer
Case 1, 3, 5, 7, 9
MysteryInteger = NUMBER_Integer
Case 2, 4, 6, 8, 10
MysteryInteger = NUMBER_Integer + 1 * 2
Case Else
MysteryInteger = NUMBER_Integer * 2 + 1
End Select
A. 10
B. 12
C. 21
D. 22
20. (p. 183) When you share an event procedure with radio buttons, Visual Basic creates and passes a system variable object named, _______, which has a name property containing the name of the selected button.
A. sender
B. integer
C. source
D. number
21. (p. 183) You can write a set of instructions in an event procedure and then ________ the event procedure from any other procedure.
A. declare the variables in
B. force a break in
C. use Option Explicit in
D. call
22. (p. 194) The Debug.WriteLine method will display its results in the ________ window.
A. Debug
B. Immediate
C. WriteLine
D. Breakpoint
23. (p. 198) You can use _______________ as your project executes in order to view the values of variables and control contents that are referenced in the current statement and a few statements on either side of the current statement.
A. the Locals window
B. the Procedure Box
C. the Autos window
D. Step Into
24. (p. 198) The _______ displays all objects and variables that are within scope during a break in program execution.
A. Locals window
B. Procedure Box
C. Autos window
D. Step Into
25. (p. 116) select the right choice. Which of the following is a valid statement that can be used to declare a local variable that will store fractions?
A. Dim IndexFraction As Fraction B. Dim IndexString As String
C. Dim IndexDecimal As Decimal D. Dim IndexInteger As Integer
26. (p. 118) select the right choice. What statement should be used to declare a variable that is accessible from all procedures of a form?
A. Dim B. Const C. Private D. Public
27. (p. 120) select the right choice. Which of the following is NOT a valid method for parsing?
A. Integer.Parse B. Decimal.Parse C. Parse.String D. All of these are valid
Explanation / Answer
12. (p. 176) Use the Visual Studio intrinsic constant, _______, to determine line endings.
A. VB.Multiline
B. Environment.NewLine
C. VS.NewLine
D. VB.NewLine
Ans: B
13. (p. 177) The Show method of a MessageBox returns a _______ object that you can check to see which button the user clicked.
A. Show
B. ShowMe
C. Selected
D. DialogResult
Ans: A
14. (p. 179) Checking to verify that appropriate values have been entered for a text box is called _______.
A. verification
B. validation
C. a MessageBox
D. a watch expression
Ans: B
15. (p. 181) Which of the following statements does NOT apply to the Case structure?
A. It can be used instead of nested Ifs.
B. It can be used for testing numeric and string values.
C. It must begin with Select Case and it must end with End Case.
D. Case Else is optional.
Ans: C
16. (p. 181) The Select Case statement is a code structure used for ________.
A. repetition
B. selection
C. sequence
D. none of these
Ans: B
17. (p. 181) The Select Case statement must end with __________.
A. End Select
B. End Case
C. Select End
D. Case End
Ans: A
18. (p. 181) _______ is an optional clause available for the Case Structure when no match is found in any of the Case statements.
A. Case Else
B. Default
C. ElseIf
D. Else Case
Ans: A
19. (p. 181) What is the value of MysteryInteger when the following statements are executed?
Const NUMBER_Integer As Integer = 10
Select Case NUMBER_Integer
Case 1, 3, 5, 7, 9
MysteryInteger = NUMBER_Integer
Case 2, 4, 6, 8, 10
MysteryInteger = NUMBER_Integer + 1 * 2
Case Else
MysteryInteger = NUMBER_Integer * 2 + 1
End Select
A. 10
B. 12
C. 21
D. 22
Ans: B
20. (p. 183) When you share an event procedure with radio buttons, Visual Basic creates and passes a system variable object named, _______, which has a name property containing the name of the selected button.
A. sender
B. integer
C. source
D. number
Ans: A
21. (p. 183) You can write a set of instructions in an event procedure and then ________ the event procedure from any other procedure.
A. declare the variables in
B. force a break in
C. use Option Explicit in
D. call
Ans: D
22. (p. 194) The Debug.WriteLine method will display its results in the ________ window.
A. Debug
B. Immediate
C. WriteLine
D. Breakpoint
Ans: Output window (option is not there)
23. (p. 198) You can use _______________ as your project executes in order to view the values of variables and control contents that are referenced in the current statement and a few statements on either side of the current statement.
A. the Locals window
B. the Procedure Box
C. the Autos window
D. Step Into
24. (p. 198) The _______ displays all objects and variables that are within scope during a break in program execution.
A. Locals window
B. Procedure Box
C. Autos window
D. Step Into
Ans: A
25. (p. 116) select the right choice. Which of the following is a valid statement that can be used to declare a local variable that will store fractions?
A. Dim IndexFraction As Fraction B. Dim IndexString As String
C. Dim IndexDecimal As Decimal D. Dim IndexInteger As Integer
Ans: C
26. (p. 118) select the right choice. What statement should be used to declare a variable that is accessible from all procedures of a form?
A. Dim B. Const C. Private D. Public
Ans: C
27. (p. 120) select the right choice. Which of the following is NOT a valid method for parsing?
A. Integer.Parse B. Decimal.Parse C. Parse.String D. All of these are valid
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.