A control’s KeyPress event occurs every time ____
1.The user selects the text area
2.The user submits the information in the text area
3.The user types a character in the text area
4.The user taps the enter key
A text box’s _____________ property specifies whether the text box has scroll bar.
1. Multiline Property
2.ReadOnly Property
3. ReadWrite Property
4.ScrollBars Property
‘e’ parameter’s __________ property is used to cancel the key if not accepted in the text area.
1.Remove
2.RemoveChar
3.Handled
4.handled
‘e’ parameter’s __________ property is used to determine the pressed key.
1.Keypress
2.KeyChar
3.Keychar
4.Key.Char
Checkbox in an interface is labeled using __________ property.
1.Text
2.Caption
3.Name
4.label lines
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
1.0
2.1
3.3
4.4
In a __________ loop the condition is evaluated before the instructions within the loop are processed.
1.Posttest
2. Pretest
3.Conditional loop
4.Unconditional loop
The _______ allows you to abbreviate an assignment statement.
1.Arithmetic assignment operator
2. Shorthand operator
3.Long operator d) Predefined opera
4. Predefined opera
The instruction above the loop is known as the ______
1.Priming read
2.After read
3.Before read
4.Reading
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.1
2.5.0
3.5.1
4.1.5
_____ is the process of adding a number to the value stored in a value.
1.Counting
2. Updating
3.Accumulating
4.Decrementing
______ is a counter-controlled loop.
1.For..next loop
2.Do..while loop
3.While loop
4. If statement
______ is a numeric variable used for accumulating something.
1. Accumulator
2.Counter
3.Positive
4. Negative
______ is a numeric variable used for counting something.
1.Accumulator
2. Counter
3.Positive
4. Negative
______ means adding a number to the value stored in the accumulator or counter.
1. Initializing
2.Updating
3.Backtracking
4. Checking
_______ is a numeric variable used for counting something.
1.Accumulator
2.Counter
3. Positive
4.Negative
_______means to assign a beginning value to the counter or accumulator.
1. Initializing
2.Updating
3. Incrementing
4.Checking
A ____________ loop is a loop whose processing is controlled by a counter.
1.Counter-controlled
2.Entry-controlled
3. Exit-controlled
4.Accumulator-controlled
A checkbox can be directly accessed from the keyboard using a ____
1.Access key
2.Shortcut key
3. Assigned key
4.Designated key
A Radio button can be directly accessed from the keyboard using a _______
1. Access key
2. Shortcut key
3. Assigned key
4.Designated key
An application communicates with the user through _______
1. DialogBox
2.AlertBox
3. MessageBox
4.AlertDialog
Checkbox are used to _____
1.make interface look better
2.make coding easier
3. limit user input
4.fill multiple information
During runtime checkbox can be selected, if a checkbox is already selected or not by using the __________ property.
1.Checked
2.Unchecked
3.On
4.Selected
During runtime radio button can be selected, if a radio button is already selected or not by using the __________ property.
1.Checked
2.Unchecked
3.On
4.Selected
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
1. 0
2.1
3.2
4. 4
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
1.0
2.1
3. 3
4. 4
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
1. 3
2. 4
3. 5
4.8
One can display a message box using the __________ method.
1.MessageBox
2.AlertBox.View
3.MessageBox.show
4.MessageBox.Show
Programmers use __________ known as loops.
1.Repetition structure
2.Conditional structure
3.Goto
4.Unconditional structure
Radio button in an interface is labeled using __________ property.
1.Text
2.Caption
3.Name
4.label lines
Radio buttons are used to ____
1.make interface look better
2. make coding easier
3.limit user input
4.fill unique information
Text box’s ReadOnly Property is set to ______________ by default.
1.True
2.False
3.all of the above
4.None of the mentioned
The __________ in a Do…Loop statement can contain variables, methods, constants, properties and operators.
1.Exit statement
2. Condition
3.Statement
4.Iteration statement
The __________ is used to code both pretest and posttest loops.
1. Do loop statement
2.For loop statement
3. While loop statement
4. If statement
The instruction in the loop body is referred to as _______
1.Priming read
2. After read
3.Before read
4.Update read
The instructions in a __________ loop are always processed at least once, whereas the instructions in a __________ loop might not be processed at all.
1.Posttest, pretest
2.Pretest, posttest
3.Pretest, pretest d) Posttest, posttest
4. Posttest, posttest
The number that appears after the period in the __________ value indicates the order in which the controls were added to the groupbox.
1.Tab index
2. Tab order
3. Groupbox tool
4.Tab value
The procedure associated with the KeyPress event has __________ parameters.
1.2
2. 3
3.4
4.1
The requirement for not repeating the instructions is referred to as the _
1. Loop exit condition
2.Looping condition
3.Conditional statement
4.Iterative statement
The requirement for repeating the instructions is referred to as the ____
1.Looping condition
2.Conditional statement
3.Iterative statement
4.Initialization statement
The text box’s __________ event procedure prevents user from entering a specified character.
1.KeyPress
2.check
3.checkchar
4.checkinput
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
1.10
2.9
3.8
4.7
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
1.10
2.11
3.12
4.13
When a checkbox’s ____________ property is set to true, it can both accept and display multiple lines of text.
1.Multiline Property
2. ReadOnly Property
3.ReadWrite Property
4.ScrollBars Property
When referring to the method’s return value in code, one should use the __________ value rather than the integer.
1. DoubleReturn
2.BooleanResults
3.charResult
4.DialogResult
Which is the caption part for the following Visual Basic command? MessageBox.Show("Delete this record?","Payroll",MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2).
1.“Delete this record?”
2.“Payroll”
3.MessageBoxButtons.YesNo
4.MessageBoxIcon.Exclamation
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.
1.Financial.Pmt (0.09/4, 3*12, 6000)
2. Financial.Pmt (0.09/4, 3*4, 6000)
3.Financial.Pmt(0.09/12, 3*12, 6000)
4.Financial.Pmt( 0.09/12, 3*4, 6000)
You use the __________ constant to include the Exclamation icon in a message box.
1.MessageBox.exclamation
2.MessageBox.Iconexclamation
3.MessageBoxIcon.Exclamation
4. MessageBoxWarning.Icon
You use the __________ tool to add a checkbox to a form.
1.Button
2. Radio
3.Option
4.Checkbox
You use the __________ tool to add a radio button to a form.
1.Button
2.Radio
3.Option
4.RadioButton