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

Posted Date:-2022-02-05 11:42:00


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

Posted Date:-2022-02-06 05:59:24


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

Posted Date:-2022-02-05 11:43:04


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

1.Keypress

2.KeyChar

3.Keychar

4.Key.Char

Posted Date:-2022-02-05 11:42:41


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

1.Text

2.Caption

3.Name

4.label lines

Posted Date:-2022-02-06 05:49:11


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

Posted Date:-2022-02-06 05:54:25


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

Posted Date:-2022-02-06 05:52:56


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

1.Priming read

2.After read

3.Before read

4.Reading

Posted Date:-2022-02-06 05:59:50


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

Posted Date:-2022-02-05 11:38:12


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

Posted Date:-2022-02-06 06:01:04


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

1.Access key

2.Shortcut key

3. Assigned key

4.Designated key

Posted Date:-2022-02-06 05:49:37


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

Posted Date:-2022-02-05 11:46:07


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

Posted Date:-2022-02-06 06:12:06


Question:
An application communicates with the user through _______

1. DialogBox

2.AlertBox

3. MessageBox

4.AlertDialog

Posted Date:-2022-02-05 11:39:17


Question:
Checkbox are used to _____

1.make interface look better

2.make coding easier

3. limit user input

4.fill multiple information

Posted Date:-2022-02-06 05:48:06


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

Posted Date:-2022-02-06 05:48:44


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

Posted Date:-2022-02-05 11:45:08


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

Posted Date:-2022-02-06 06:13:53


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

Posted Date:-2022-02-06 05:54:52


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

Posted Date:-2022-02-06 06:13:01


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

1.MessageBox

2.AlertBox.View

3.MessageBox.show

4.MessageBox.Show

Posted Date:-2022-02-05 11:39:39


Question:
Programmers use __________ known as loops.

1.Repetition structure

2.Conditional structure

3.Goto

4.Unconditional structure

Posted Date:-2022-02-06 05:51:39


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

1.Text

2.Caption

3.Name

4.label lines

Posted Date:-2022-02-05 11:45:31


Question:
Radio buttons are used to ____

1.make interface look better

2. make coding easier

3.limit user input

4.fill unique information

Posted Date:-2022-02-05 11:44:47


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

Posted Date:-2022-02-06 05:58:55


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

1.Priming read

2. After read

3.Before read

4.Update read

Posted Date:-2022-02-06 06:00:30


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

Posted Date:-2022-02-06 05:55:22


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

Posted Date:-2022-02-05 11:37:50


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

1.2

2. 3

3.4

4.1

Posted Date:-2022-02-05 11:42:20


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

Posted Date:-2022-02-06 05:52:30


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

1.Looping condition

2.Conditional statement

3.Iterative statement

4.Initialization statement

Posted Date:-2022-02-06 05:52:04


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

1.KeyPress

2.check

3.checkchar

4.checkinput

Posted Date:-2022-02-05 11:41:35


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

Posted Date:-2022-02-06 05:53:59


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

Posted Date:-2022-02-06 05:53:34


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

Posted Date:-2022-02-06 06:14:18


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

Posted Date:-2022-02-06 06:13:29


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

Posted Date:-2022-02-06 05:58:35


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

Posted Date:-2022-02-05 11:40:47


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

Posted Date:-2022-02-05 11:40:22


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)

Posted Date:-2022-02-05 11:38:39


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

Posted Date:-2022-02-05 11:41:10


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

1.Button

2. Radio

3.Option

4.Checkbox

Posted Date:-2022-02-06 05:47:10


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

1.Button

2.Radio

3.Option

4.RadioButton

Posted Date:-2022-02-05 11:44:06


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

1.Counting

2. Updating

3.Accumulating

4.Decrementing

Posted Date:-2022-02-06 06:15:07


Question:
______ is a counter-controlled loop.

1.For..next loop

2.Do..while loop

3.While loop

4. If statement

Posted Date:-2022-02-06 06:12:29


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

1. Accumulator

2.Counter

3.Positive

4. Negative

Posted Date:-2022-02-06 05:57:17


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

1.Accumulator

2. Counter

3.Positive

4. Negative

Posted Date:-2022-02-06 05:56:26


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

1. Initializing

2.Updating

3.Backtracking

4. Checking

Posted Date:-2022-02-06 05:58:11


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

1.Accumulator

2.Counter

3. Positive

4.Negative

Posted Date:-2022-02-06 06:05:44


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

1. Initializing

2.Updating

3. Incrementing

4.Checking

Posted Date:-2022-02-06 05:57:46


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!