VB.Net/VB.Net Mcq Question Set 11 Sample Test,Sample questions

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

1.Dynamic

2.Static

3. Server

4.Client-server model


Question:
 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

1.No error

2.Runtime Error

3.Compilation Error

4.Syntax error


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

1.Geographical User Interchange

2.Graphical User Interface

3.Geometrical Upper Intelligence

4.Grammatical User Incorporation


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

1.Set Block

2.Retrieve

3.Get Block

4.Getter Block


Question:
 The default property for a text box control is

1.Text

2. Enable

3.Multiline

4. Password char


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

1.Default.aspx

2.Home.aspx

3. Index.aspx

4.Start.aspx


Question:
 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?

1.ByRef

2.ByVal

3.Default

4.Friend


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

1.OnClick

2.onclick

3.Click

4.click


Question:
A GUI

1. uses buttons, menus, and icons

2.should be easy for a user to manipulate

3.stands for Graphic Use Interaction

4. Both A and B


Question:
A _____ performs invisible tasks even if you write no code

1.Destructor

2.private method

3.constructor

4.Functional testing


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

1. Static

2.Dynamic

3.Server

4.Client-server model


Question:
A _______ computer requests web pages from the server.

1.Server

2.Host

3. Client

4.Router


Question:
A ________ is a special computer that serves webpages.

1.Server

2.Host

3. Client

4.Router


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

1.Markup

2. Programming

3.Structured Query

4.Data storage


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

1.window

2.form

3.screen

4.None of the above.


Question:
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?

1. Align

2.AlignLeft

3.Left

4.right


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

1.int

2.dim

3.static

4.declare


Question:
Is there an error in the below code?

Private _intSide As Integer
Public Property Side As Integer
_intSide=_intSide+2
End Property

1.No error

2.Runtime Error

3.Syntax error

4. Compilation Error


Question:
It is disadvantageous to use public variables in classes because ____

1. Its values cannot be initialized

2. It results in compilation error

3.It cannot be accessed by other variables

4. It cannot control its values


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

1. Constant

2.Dynamic

3.Static

4. Hardcoded


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

1. BackColor

2. BackgroundColor

3.BgColor

4.BColor


Question:
The default property for a text box control is _____ 

1.Text

2.Password char

3.Multiline

4.Enable


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

1.Functions

2.Properties

3.Procedures

4.Variables


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

1.. command button

2.text box

3.label

4.combo box


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

1.CompareValidator

2.RangeValidator

3.RequiredFieldValidator

4. ValidationSummary


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

1.CompareValidator

2.RangeValidator

3.RequiredFieldValidator

4.ValidationSummary


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

1.CompareValidator

2.RangeValidator

3.RequiredFieldValidator

4.ValidationSummary


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

1.CompareValidator

2. RangeValidator

3.RequiredFieldValidator

4.ValidationSummary


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

1.CompareValidator

2.RegularExpressionValidator

3.RequiredFieldValidator

4.ValidationSummary


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

1.CompareValidator

2.RangeValidator

3.CustomValidator

4.ValidationSummary


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

1.Receive

2.Write

3.WriteOnly

4. ReceiveOnly


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

1.Access

2.Get

3.Read

4. ReadOnly


Question:
To make text appear around image ______ section is used.

1.Wrapping style

2. Text style

3. Image properties

4. Align


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

1.Real time

2.Graphical User Interface

3.Character User Interface

4.None of These


Question:
Visual Studio .NET provides which feature:

1. debugging

2.application deployment

3.syntax checking

4.All of the above


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

1.They are the same when the control is first created

2.The text property changes to match any changes in the name property

3.The name property changes to match any changes in the text property

4.They are never the same unless the programmer makes it that way


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

1.Dim statement is used to create a variable that represents a value type

2.Data associated with a value type is allocated on the stack

3.Reference types must be instantiated after declaration

4.Data associated with a reference type is allocated on the stack


Question:
You create a Public property using a _______ procedure.

1. SetProp

2.Property

3.Access

4.SetAccess


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

1.Properties

2.Attributes

3.Methods

4.Classes


Question:
___ property sets the border of an image.

1.BorderProperty

2.Border

3. Surround

4.Line termination character


Question:
____ can be used instead of a Structure statement.

1.Class

2. Struct

3.StructDef

4. Sdef


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

1.Ltrim

2.Rtrim

3.Trim

4.All of the above


Question:
____ method removes a dialog box from view.

1.Display

2.Disable

3.Hide

4.Enabled


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

1.Public

2. Private

3.Default

4.Static


Question:
_____ initializes a new instance of Line class.

1.BorderProperty

2. Border

3.Surround

4.Line()


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

1.Setfocus

2.Gotfocus

3.Lostfocus

4.None of these


Question:
______ cannot be declared in a form or class module 

1.Public constants

2.Private constants

3.Static constants

4.None of these


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
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite 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!