Home
MCQS
VB.Net MCQ Quiz Hub
VB.Net Mcq Question Set 11
Choose a topic to test your knowledge and improve your VB.Net skills
1. ____ can be used instead of a Structure statement.
Class
Struct
StructDef
Sdef
2. It is disadvantageous to use public variables in classes because ____
Its values cannot be initialized
It results in compilation error
It cannot be accessed by other variables
It cannot control its values
3. ____ variables of a class are not visible to applications that use the instance of that class.
Public
Private
Default
Static
4. You create a Public property using a _______ procedure.
SetProp
Property
Access
SetAccess
5. The ________ keyword indicates that the property’s value can be retrieved (read) by an application.
Access
Get
Read
ReadOnly
6. The ________ keyword indicates that an application can set the property’s value, but it cannot retrieve the value.
Receive
Write
WriteOnly
ReceiveOnly
7. The code contained in the ______ allows an application to retrieve the contents of the Private variable associated with the property.
Set Block
Retrieve
Get Block
Getter Block
8. Is there an error in the below code? Private _intSide As Integer Public Property Side As Integer _intSide=_intSide+2 End Property
No error
Runtime Error
Syntax error
Compilation Error
9. 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
No error
Runtime Error
Compilation Error
Syntax error
10. A ________ is a special computer that serves webpages.
Server
Host
Client
Router
11. A _______ computer requests web pages from the server.
Server
Host
Client
Router
12. A ________ web page is not interactive and is used to display information only.
Dynamic
Static
Server
Client-server model
13. ASP is a ________ language that tells the client’s browser how to render the page on the computer screen.
Markup
Programming
Structured Query
Data storage
14. Text that cannot be changed by the user is termed as _____ text.
Constant
Dynamic
Static
Hardcoded
15. The first webpage added to an application is the _______ page.
Default.aspx
Home.aspx
Index.aspx
Start.aspx
16. ___ property sets the border of an image.
BorderProperty
Border
Surround
Line termination character
17. _____ initializes a new instance of Line class.
BorderProperty
Border
Surround
Line()
18. The background color of a Web page is determined by the ______ property.
BackColor
BackgroundColor
BgColor
BColor
19. A ______ Web page contains controls with which the user can interact.
Static
Dynamic
Server
Client-server model
20. A button’s _______ event is used to run code.
OnClick
onclick
Click
click
21. The ______ validator is used to compare an entry with a constant value or the property stored in a control.
CompareValidator
RangeValidator
RequiredFieldValidator
ValidationSummary
22. The ______ validator is used to display all of the validation error messages in a single location on aWeb page.
CompareValidator
RangeValidator
RequiredFieldValidator
ValidationSummary
23. The ______ validator is used to verify that an entry is within the specified minimum and maximum values.
CompareValidator
RangeValidator
RequiredFieldValidator
ValidationSummary
24. The ______ validator is used to verify that an entry matches a specific pattern.
CompareValidator
RegularExpressionValidator
RequiredFieldValidator
ValidationSummary
25. The ______ validator is used to verify that a control contains data.
CompareValidator
RangeValidator
RequiredFieldValidator
ValidationSummary
26. The ______ validator is used to verify that control contains data verify that an entry passes the specified validation logic.
CompareValidator
RangeValidator
CustomValidator
ValidationSummary
27. To make text appear around image ______ section is used.
Wrapping style
Text style
Image properties
Align
28. 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?
Align
AlignLeft
Left
right
29. The default property for a text box control is
Text
Enable
Multiline
Password char
30. 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?
ByRef
ByVal
Default
Friend
31. A _____ performs invisible tasks even if you write no code
Destructor
private method
constructor
Functional testing
32. A GUI
uses buttons, menus, and icons
should be easy for a user to manipulate
stands for Graphic Use Interaction
Both A and B
33. Visual Studio .NET provides which feature:
debugging
application deployment
syntax checking
All of the above
34. ___ allow custom items of information about a program element to be stored with an assembly's metadata.
Properties
Attributes
Methods
Classes
35. Which of the following is not correct about the value types and reference types in VB.NET?
Dim statement is used to create a variable that represents a value type
Data associated with a value type is allocated on the stack
Reference types must be instantiated after declaration
Data associated with a reference type is allocated on the stack
36. Microsoft Windows uses a GUI environment. GUI (pronounced "gooey") stands for ____
Geographical User Interchange
Graphical User Interface
Geometrical Upper Intelligence
Grammatical User Incorporation
37. The _____ enable us to pass data between a program and a class.
Functions
Properties
Procedures
Variables
38. Which is true about the name and text property of a control?
They are the same when the control is first created
The text property changes to match any changes in the name property
The name property changes to match any changes in the text property
They are never the same unless the programmer makes it that way
39. Visual Basic is a tool that allows you to develop application in…………
Real time
Graphical User Interface
Character User Interface
None of These
40. Form_Mouse Down ( ) procedure is executed when any mouse button is clicked in a free area of the ______.
window
form
screen
None of the above.
41. ____ method removes a dialog box from view.
Display
Disable
Hide
Enabled
42. ______ cannot be declared in a form or class module
Public constants
Private constants
Static constants
None of these
43. ____ function is used to return a copy of a string without leading spaces.
Ltrim
Rtrim
Trim
All of the above
44. _____ is a method which moves the focus to the specified control or form
Setfocus
Gotfocus
Lostfocus
None of these
45. The default property for a text box control is _____
Text
Password char
Multiline
Enable
46. The ______ is a tool used for both the Input and output purpose
. command button
text box
label
combo box
47. In visual basic the declaration of variables is done by _____ key word.
int
dim
static
declare
Submit