VB.Net MCQ Quiz Hub

VB.Net Mcq Question Set 7

Choose a topic to test your knowledge and improve your VB.Net skills

The number that appears after the period in the __________ value indicates the order in which the controls were added to the groupbox.





✅ Correct Answer: 1

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 ___





✅ Correct Answer: 2

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.





✅ Correct Answer: 2

An application communicates with the user through _______





✅ Correct Answer: 3

One can display a message box using the __________ method.





✅ Correct Answer: 4

Which is the caption part for the following Visual Basic command? MessageBox.Show("Delete this record?","Payroll",MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2).





✅ Correct Answer: 2

When referring to the method’s return value in code, one should use the __________ value rather than the integer.





✅ Correct Answer: 4

You use the __________ constant to include the Exclamation icon in a message box.





✅ Correct Answer: 3

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





✅ Correct Answer: 1

A control’s KeyPress event occurs every time ____





✅ Correct Answer: 3

The procedure associated with the KeyPress event has __________ parameters.





✅ Correct Answer: 1

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





✅ Correct Answer: 2

‘e’ parameter’s __________ property is used to cancel the key if not accepted in the text area.





✅ Correct Answer: 3

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





✅ Correct Answer: 4

Radio buttons are used to ____





✅ Correct Answer: 3

During runtime radio button can be selected, if a radio button is already selected or not by using the __________ property.





✅ Correct Answer: 1

Radio button in an interface is labeled using __________ property.





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 4

Checkbox are used to _____





✅ Correct Answer: 3

During runtime checkbox can be selected, if a checkbox is already selected or not by using the __________ property.





✅ Correct Answer: 1

Checkbox in an interface is labeled using __________ property.





✅ Correct Answer: 1

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





✅ Correct Answer: 1

Programmers use __________ known as loops.





✅ Correct Answer: 1

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





✅ Correct Answer: 1

The requirement for not repeating the instructions is referred to as the _





✅ Correct Answer: 1

In a __________ loop the condition is evaluated before the instructions within the loop are processed.





✅ Correct Answer: 2

The __________ is used to code both pretest and posttest loops.





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

The instructions in a __________ loop are always processed at least once, whereas the instructions in a __________ loop might not be processed at all.





✅ Correct Answer: 1

______ is a numeric variable used for counting something.





✅ Correct Answer: 2

______ is a numeric variable used for accumulating something.





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

When a checkbox’s ____________ property is set to true, it can both accept and display multiple lines of text.





✅ Correct Answer: 1

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





✅ Correct Answer: 2

A text box’s _____________ property specifies whether the text box has scroll bar.





✅ Correct Answer: 4

The instruction above the loop is known as the ______





✅ Correct Answer: 1

The instruction in the loop body is referred to as _______





✅ Correct Answer: 4

The _______ allows you to abbreviate an assignment statement.





✅ Correct Answer: 1

_______ is a numeric variable used for counting something.





✅ Correct Answer: 2

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





✅ Correct Answer: 1

______ is a counter-controlled loop.





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 3

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2