VB.Net/VB.Net Mcq Question Set 7 Sample Test,Sample questions

Question:
 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


Question:
 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


Question:
 ‘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


Question:
 ‘e’ parameter’s __________ property is used to determine the pressed key.

1.Keypress

2.KeyChar

3.Keychar

4.Key.Char


Question:
 Checkbox in an interface is labeled using __________ property.

1.Text

2.Caption

3.Name

4.label lines


Question:
 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


Question:
 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


Question:
 The instruction above the loop is known as the ______

1.Priming read

2.After read

3.Before read

4.Reading


Question:
 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


Question:
 The _______ allows you to abbreviate an assignment statement.

1.Arithmetic assignment operator

2. Shorthand operator

3.Long operator d) Predefined opera

4. Predefined opera


Question:
A checkbox can be directly accessed from the keyboard using a ____

1.Access key

2.Shortcut key

3. Assigned key

4.Designated key


Question:
A Radio button can be directly accessed from the keyboard using a _______

1. Access key

2. Shortcut key

3. Assigned key

4.Designated key


Question:
A ____________ loop is a loop whose processing is controlled by a counter.

1.Counter-controlled

2.Entry-controlled

3. Exit-controlled

4.Accumulator-controlled


Question:
An application communicates with the user through _______

1. DialogBox

2.AlertBox

3. MessageBox

4.AlertDialog


Question:
Checkbox are used to _____

1.make interface look better

2.make coding easier

3. limit user input

4.fill multiple information


Question:
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


Question:
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


Question:
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


Question:
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


Question:
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


Question:
One can display a message box using the __________ method.

1.MessageBox

2.AlertBox.View

3.MessageBox.show

4.MessageBox.Show


Question:
Programmers use __________ known as loops.

1.Repetition structure

2.Conditional structure

3.Goto

4.Unconditional structure


Question:
Radio button in an interface is labeled using __________ property.

1.Text

2.Caption

3.Name

4.label lines


Question:
Radio buttons are used to ____

1.make interface look better

2. make coding easier

3.limit user input

4.fill unique information


Question:
Text box’s ReadOnly Property is set to ______________ by default.

1.True

2.False

3.all of the above

4.None of the mentioned


Question:
The instruction in the loop body is referred to as _______

1.Priming read

2. After read

3.Before read

4.Update read


Question:
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


Question:
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


Question:
The procedure associated with the KeyPress event has __________ parameters.

1.2

2. 3

3.4

4.1


Question:
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


Question:
The requirement for repeating the instructions is referred to as the ____

1.Looping condition

2.Conditional statement

3.Iterative statement

4.Initialization statement


Question:
The text box’s __________ event procedure prevents user from entering a specified character.

1.KeyPress

2.check

3.checkchar

4.checkinput


Question:
The __________ in a Do…Loop statement can contain variables, methods, constants, properties and operators.

1.Exit statement

2. Condition

3.Statement

4.Iteration statement


Question:
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


Question:
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


Question:
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


Question:
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


Question:
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


Question:
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


Question:
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)


Question:
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


Question:
You use the __________ tool to add a checkbox to a form.

1.Button

2. Radio

3.Option

4.Checkbox


Question:
You use the __________ tool to add a radio button to a form.

1.Button

2.Radio

3.Option

4.RadioButton


Question:
_____ is the process of adding a number to the value stored in a value.

1.Counting

2. Updating

3.Accumulating

4.Decrementing


Question:
______ is a counter-controlled loop.

1.For..next loop

2.Do..while loop

3.While loop

4. If statement


Question:
______ is a numeric variable used for accumulating something.

1. Accumulator

2.Counter

3.Positive

4. Negative


Question:
______ is a numeric variable used for counting something.

1.Accumulator

2. Counter

3.Positive

4. Negative


Question:
______ means adding a number to the value stored in the accumulator or counter.

1. Initializing

2.Updating

3.Backtracking

4. Checking


Question:
_______ is a numeric variable used for counting something.

1.Accumulator

2.Counter

3. Positive

4.Negative


Question:
_______means to assign a beginning value to the counter or accumulator.

1. Initializing

2.Updating

3. Incrementing

4.Checking


More MCQS

  1. VB.Net Mcq Question Set 1
  2. VB.Net Mcq Question Set 2
  3. VB.Net Mcq Question Set 3
  4. VB.Net Mcq Question Set 4
  5. VB.Net Mcq Question Set 5
  6. VB.Net Mcq Question Set 6
  7. VB.Net Mcq Question Set 7
  8. VB.Net Mcq Question Set 8
  9. VB.Net Mcq Question Set 9
  10. VB.Net Mcq Question Set 10
  11. VB.Net Mcq Question Set 11
  12. VB NET MCQ SET 1
  13. VB NET MCQ SET 2
  14. VB NET MCQ SET 3
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!