VB.Net MCQ Quiz Hub

VB.Net Mcq Question Set 8

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

_________ in flowchart is used to represent a for clause.





✅ Correct Answer: 4

How many times will the MessageBox.Show method in the following code be processed? For intNum As Integer = 5 To 1 Step -1 MessageBox.Show(“Hi”) Next intNum





✅ Correct Answer: 2

What value is stored in the intNum variable when the loop ends? For intNum As Integer = 5 To 1 Step -1 MessageBox.Show(“Hi”) Next intNum





✅ Correct Answer: 1

The ______ ensures that the computer processes any previous lines of code that affect the interface’s appearance.





✅ Correct Answer: 1

To delay program execution, you can use the ______





✅ Correct Answer: 2

A millisecond is ________ of a second.





✅ Correct Answer: 1

Which of the following statements pauses program execution for 1 second?





✅ Correct Answer: 3

What will the following code display in the lblSum control? Dim intSum As Integer Dim intY As Integer Do While intY < 3 For intX As Integer = 1 To 4 intSum = intSum + intX Next intX intY = intY + 1 Loop lblSum.Text = Convert.ToString(intSum)





✅ Correct Answer: 4

A _______displays a list of choices.





✅ Correct Answer: 1

The number of choices the user can select is controlled by the list box’s _______





✅ Correct Answer: 1

The items in a list box belong to a collection called the ______





✅ Correct Answer: 2

You specify each item to display in a list box using the Items collection’s________





✅ Correct Answer: 1

Every variable has both a value and ______





✅ Correct Answer: 1

Passing a copy of the variable is referred to as _________





✅ Correct Answer: 1

Passing a variable’s address is referred to as __________





✅ Correct Answer: 3

To pass a variable by value, you include the keyword ________________ before the name of its corresponding parameter.





✅ Correct Answer: 1

The _____statement does not indicate whether a variable is passed by value or by reference.





✅ Correct Answer: 1

The position of an item in a list box depends on the value stored in the list box’s _______





✅ Correct Answer: 3

The items in a list box are sorted based on the ___________ characters in each item.





✅ Correct Answer: 1

The ___________ keyword tells the computer to pass the variable’s address rather than its contents.





✅ Correct Answer: 1

The items listed in the Call statement are referred to as _________





✅ Correct Answer: 1

Which of the following is false?





✅ Correct Answer: 1

________ returns a value after performing its specific task.





✅ Correct Answer: 1

The functions header and footer contains the _____ keyword.





✅ Correct Answer: 1

A function’s header includes the ___________ data type.





✅ Correct Answer: 1

A function can receive information either by value or by _________





✅ Correct Answer: 1

Between the function’s _____________ and ___________________ you enter the instructions to process when the function is invoked.





✅ Correct Answer: 1

______ statement is the last statement in the function.





✅ Correct Answer: 3

Each memory location listed in the parameterList in the procedure header is referred to as _______





✅ Correct Answer: 3

To determine whether a variable is being passed to a procedure by value or by reference, you will need to examine ______





✅ Correct Answer: 1

Which of the following is false?





✅ Correct Answer: 3

Which of the following instructs a function to return the contents of the decStateTax variable?





✅ Correct Answer: 1

Which property is used to specify a combo box’s style?





✅ Correct Answer: 2

The items in a combo box belong to which collection?





✅ Correct Answer: 1

Which of the following selects the Cat item, which appears third in the cboAnimal control?





✅ Correct Answer: 3

The item that appears in the text portion of a combo box is stored in which property?





✅ Correct Answer: 3

The _______________ event occurs when the user either types a value in the text portion of a combo box or selects a different item in the list portion.





✅ Correct Answer: 4

A form’s _______ event is triggered when you click the Close button on its title bar.





✅ Correct Answer: 4

A form’s ____________ event is triggered when the computer processes the Me.Close() statement.





✅ Correct Answer: 4

Which of the following statements prevents a form from being closed?





✅ Correct Answer: 4

Which of the following rounds the contents of the intNum variable to three decimal places?





✅ Correct Answer: 2

A ______ allows you to select from a list of choices.





✅ Correct Answer: 1

The number of characters contained in a String is stored as Integer in String’s ______





✅ Correct Answer: 2

_______ method is used to remove space from beginning and end of a string.





✅ Correct Answer: 1

_________ method is used to remove specified number of characters located anywhere in the String.





✅ Correct Answer: 2

What will contain in txtFirst after the following Visual Basic code is executed? strName = "Penny Swanson" txtFirst.Text = strName.Remove(5)





✅ Correct Answer: 1

What will be the value of num after the following Visual Basic code is executed? strName=”Veronica Yardley” num=strName.Length





✅ Correct Answer: 2

________ method allows you to insert anywhere in the string.





✅ Correct Answer: 2

What will be in strName after the following code is executed? strName=”Joanne Hashen” strName=strName.Insert(7,”C.”);





✅ Correct Answer: 1

__________ and ________ methods are used to align characters in a String.





✅ Correct Answer: 1