R4RIN
Articles
Java 8
MCQS
VB.Net MCQ Quiz Hub
VB.Net Mcq Question Set 7
Choose a topic to test your knowledge and improve your VB.Net skills
1. The number that appears after the period in the __________ value indicates the order in which the controls were added to the groupbox.
Tab index
Tab order
Groupbox tool
Tab value
2. The TabIndex value of a group box is 5. If the txtName control was the first control added to the group box, its TabIndex value will be ___
1
5.0
5.1
1.5
3. Which of the following calculates the quarterly payment on a loan of $6000 for 3 years at 9% interest? Payments should be expressed as a negative number.
Financial.Pmt (0.09/4, 3*12, 6000)
Financial.Pmt (0.09/4, 3*4, 6000)
Financial.Pmt(0.09/12, 3*12, 6000)
Financial.Pmt( 0.09/12, 3*4, 6000)
4. An application communicates with the user through _______
DialogBox
AlertBox
MessageBox
AlertDialog
5. One can display a message box using the __________ method.
MessageBox
AlertBox.View
MessageBox.show
MessageBox.Show
6. Which is the caption part for the following Visual Basic command? MessageBox.Show("Delete this record?","Payroll",MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2).
“Delete this record?”
“Payroll”
MessageBoxButtons.YesNo
MessageBoxIcon.Exclamation
7. When referring to the method’s return value in code, one should use the __________ value rather than the integer.
DoubleReturn
BooleanResults
charResult
DialogResult
8. You use the __________ constant to include the Exclamation icon in a message box.
MessageBox.exclamation
MessageBox.Iconexclamation
MessageBoxIcon.Exclamation
MessageBoxWarning.Icon
9. The text box’s __________ event procedure prevents user from entering a specified character.
KeyPress
check
checkchar
checkinput
10. A control’s KeyPress event occurs every time ____
The user selects the text area
The user submits the information in the text area
The user types a character in the text area
The user taps the enter key
11. The procedure associated with the KeyPress event has __________ parameters.
2
3
4
1
12. ‘e’ parameter’s __________ property is used to determine the pressed key.
Keypress
KeyChar
Keychar
Key.Char
13. ‘e’ parameter’s __________ property is used to cancel the key if not accepted in the text area.
Remove
RemoveChar
Handled
handled
14. You use the __________ tool to add a radio button to a form.
Button
Radio
Option
RadioButton
15. Radio buttons are used to ____
make interface look better
make coding easier
limit user input
fill unique information
16. During runtime radio button can be selected, if a radio button is already selected or not by using the __________ property.
Checked
Unchecked
On
Selected
17. Radio button in an interface is labeled using __________ property.
Text
Caption
Name
label lines
18. A Radio button can be directly accessed from the keyboard using a _______
Access key
Shortcut key
Assigned key
Designated key
19. You use the __________ tool to add a checkbox to a form.
Button
Radio
Option
Checkbox
20. Checkbox are used to _____
make interface look better
make coding easier
limit user input
fill multiple information
21. During runtime checkbox can be selected, if a checkbox is already selected or not by using the __________ property.
Checked
Unchecked
On
Selected
22. Checkbox in an interface is labeled using __________ property.
Text
Caption
Name
label lines
23. A checkbox can be directly accessed from the keyboard using a ____
Access key
Shortcut key
Assigned key
Designated key
24. Programmers use __________ known as loops.
Repetition structure
Conditional structure
Goto
Unconditional structure
25. The requirement for repeating the instructions is referred to as the ____
Looping condition
Conditional statement
Iterative statement
Initialization statement
26. The requirement for not repeating the instructions is referred to as the _
Loop exit condition
Looping condition
Conditional statement
Iterative statement
27. In a __________ loop the condition is evaluated before the instructions within the loop are processed.
Posttest
Pretest
Conditional loop
Unconditional loop
28. The __________ is used to code both pretest and posttest loops.
Do loop statement
For loop statement
While loop statement
If statement
29. The __________ in a Do…Loop statement can contain variables, methods, constants, properties and operators.
Exit statement
Condition
Statement
Iteration statement
30. How many times will the MessageBox.Show method in the following code be processed? intCount =0 Do While intCount > 3 MessageBox.Show("Hello") intCount = intCount + 1 Loop
0
1
3
4
31. How many times will the MessageBox.Show method in the following code be processed? intCount =0; Do MessageBox.Show("Hello") intCount += 1 Loop While intCount > 3
0
1
3
4
32. The instructions in a __________ loop are always processed at least once, whereas the instructions in a __________ loop might not be processed at all.
Posttest, pretest
Pretest, posttest
Pretest, pretest d) Posttest, posttest
Posttest, posttest
33. ______ is a numeric variable used for counting something.
Accumulator
Counter
Positive
Negative
34. ______ is a numeric variable used for accumulating something.
Accumulator
Counter
Positive
Negative
35. _______means to assign a beginning value to the counter or accumulator.
Initializing
Updating
Incrementing
Checking
36. ______ means adding a number to the value stored in the accumulator or counter.
Initializing
Updating
Backtracking
Checking
37. When a checkbox’s ____________ property is set to true, it can both accept and display multiple lines of text.
Multiline Property
ReadOnly Property
ReadWrite Property
ScrollBars Property
38. Text box’s ReadOnly Property is set to ______________ by default.
True
False
all of the above
None of the mentioned
39. A text box’s _____________ property specifies whether the text box has scroll bar.
Multiline Property
ReadOnly Property
ReadWrite Property
ScrollBars Property
40. The instruction above the loop is known as the ______
Priming read
After read
Before read
Reading
41. The instruction in the loop body is referred to as _______
Priming read
After read
Before read
Update read
42. The _______ allows you to abbreviate an assignment statement.
Arithmetic assignment operator
Shorthand operator
Long operator d) Predefined opera
Predefined opera
43. _______ is a numeric variable used for counting something.
Accumulator
Counter
Positive
Negative
44. A ____________ loop is a loop whose processing is controlled by a counter.
Counter-controlled
Entry-controlled
Exit-controlled
Accumulator-controlled
45. ______ is a counter-controlled loop.
For..next loop
Do..while loop
While loop
If statement
46. How many times will the MessageBox.Show method in the following code be processed? For intCount As Integer = 4 To 11 Step 2 MessageBox.Show("Hello") Next intCount
3
4
5
8
47. What value is stored in the intCount variable when the loop ends? For intCount As Integer = 4 To 11 Step 2 MessageBox.Show("Hello") Next intCount
10
11
12
13
48. How many times will the MessageBox.Show method in the following code be processed? For count As Integer = 5 to 9 Step 5 MessageBox.Show(“Hi”) Next count
0
1
2
4
49. What value is stored in the count variable when the loop ends? For count As Integer = 5 to 9 Step 5 MessageBox.Show(“Hi”) Next count
10
9
8
7
50. _____ is the process of adding a number to the value stored in a value.
Counting
Updating
Accumulating
Decrementing
Submit