VB.Net MCQ Quiz Hub

VB.Net Mcq Question Set 11

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

____ can be used instead of a Structure statement.





✅ Correct Answer: 1

It is disadvantageous to use public variables in classes because ____





✅ Correct Answer: 4

____ variables of a class are not visible to applications that use the instance of that class.





✅ Correct Answer: 2

You create a Public property using a _______ procedure.





✅ Correct Answer: 2

The ________ keyword indicates that the property’s value can be retrieved (read) by an application.





✅ Correct Answer: 4

The ________ keyword indicates that an application can set the property’s value, but it cannot retrieve the value.





✅ Correct Answer: 3

The code contained in the ______ allows an application to retrieve the contents of the Private variable associated with the property.





✅ Correct Answer: 3

Is there an error in the below code? Private _intSide As Integer Public Property Side As Integer _intSide=_intSide+2 End Property





✅ Correct Answer: 4

Is there an error in the below code? Private _dblBonus As Double Public ReadOnly Property Bonus As Double Set(ByVal value As Decimal) _dblBonus = value End Set End Property





✅ Correct Answer: 3

A ________ is a special computer that serves webpages.





✅ Correct Answer: 1

A _______ computer requests web pages from the server.





✅ Correct Answer: 3

A ________ web page is not interactive and is used to display information only.





✅ Correct Answer: 2

ASP is a ________ language that tells the client’s browser how to render the page on the computer screen.





✅ Correct Answer: 1

Text that cannot be changed by the user is termed as _____ text.





✅ Correct Answer: 3

The first webpage added to an application is the _______ page.





✅ Correct Answer: 1

___ property sets the border of an image.





✅ Correct Answer: 1

_____ initializes a new instance of Line class.





✅ Correct Answer: 4

The background color of a Web page is determined by the ______ property.





✅ Correct Answer: 3

A ______ Web page contains controls with which the user can interact.





✅ Correct Answer: 2

A button’s _______ event is used to run code.





✅ Correct Answer: 3

The ______ validator is used to compare an entry with a constant value or the property stored in a control.





✅ Correct Answer: 1

The ______ validator is used to display all of the validation error messages in a single location on aWeb page.





✅ Correct Answer: 4

The ______ validator is used to verify that an entry is within the specified minimum and maximum values.





✅ Correct Answer: 2

The ______ validator is used to verify that an entry matches a specific pattern.





✅ Correct Answer: 2

The ______ validator is used to verify that a control contains data.





✅ Correct Answer: 3

The ______ validator is used to verify that control contains data verify that an entry passes the specified validation logic.





✅ Correct Answer: 3

To make text appear around image ______ section is used.





✅ Correct Answer: 1

If you want text to appear to the left of the selected image control on a Web form, you would need to click which button in thePosition dialog box?





✅ Correct Answer: 3

The default property for a text box control is





✅ Correct Answer: 1

Which of the following accesss modifier specifies that one or more declared programming elements are accessible from within the assembly that contains their declaration, not only by the component that declares them?





✅ Correct Answer: 4

A _____ performs invisible tasks even if you write no code





✅ Correct Answer: 3

A GUI





✅ Correct Answer: 4

Visual Studio .NET provides which feature:





✅ Correct Answer: 4

___ allow custom items of information about a program element to be stored with an assembly's metadata.





✅ Correct Answer: 2

Which of the following is not correct about the value types and reference types in VB.NET?





✅ Correct Answer: 2

Microsoft Windows uses a GUI environment. GUI (pronounced "gooey") stands for ____





✅ Correct Answer: 2

The _____ enable us to pass data between a program and a class.





✅ Correct Answer: 2

Which is true about the name and text property of a control?





✅ Correct Answer: 1

Visual Basic is a tool that allows you to develop application in…………





✅ Correct Answer: 2

Form_Mouse Down ( ) procedure is executed when any mouse button is clicked in a free area of the ______.





✅ Correct Answer: 2

____ method removes a dialog box from view.





✅ Correct Answer: 3

______ cannot be declared in a form or class module





✅ Correct Answer: 1

____ function is used to return a copy of a string without leading spaces.





✅ Correct Answer: 1

_____ is a method which moves the focus to the specified control or form





✅ Correct Answer: 1

The default property for a text box control is _____





✅ Correct Answer: 1

The ______ is a tool used for both the Input and output purpose





✅ Correct Answer: 2

In visual basic the declaration of variables is done by _____ key word.





✅ Correct Answer: 2