VB.Net/VB NET MCQ SET 1 Sample Test,Sample questions

Question:
	
Extension of ActiveX designers ____________

1. .dsr

2. .axd

3..adx

4.None of These


Question:
	
In Visual Basic, a variable name cannot be more than __________ characters.

1.255

2.300

3.355

4.400


Question:
	
The ________ object is a stored query definition, which is a precompiled SQL statement.

1.QueryFed

2.QueryDif

3.QueryFix

4.QueryDef


Question:
	
VB.Net is

1. Platform Independent

2. Compiler Language

3.Forward compatibale

4. Backward compatible


Question:
	
Which task is accomplished in the Code editor?

1.Adding forms to the project

2.Adding controls to the form

3.Adding controls to the title

4.Adding event procedures to the form


Question:
	
Which type of project can a developer choose in the New Project dialog box?

1.Visual Basic Projects

2.Visual C++ Projects

3.Visual C# Projects

4.All of the above


Question:
	
_________ is a built in function to return lower bound of an array.

1.Lbound()

2. LRbound()

3.Lowbound()

4.None of These


Question:
	
__________ is a data type that can be used to declare a text of maximum 10 million characters.

1.Date

2.Ulong

3.Numeric

4.String


Question:
A click event procedure stud for the label control can be created by:

1.selecting the object and event from the code editor window’s drop-down boxes.

2.typing the code in the code editor window.

3. by double clicking the control.

4. All of the above


Question:
A GUI

1.uses buttons, menus, and icons

2.should be easy for a user to manipulate

3.both (a) and (b)

4.stands for Graphic Use Interaction


Question:
A window that lists the solution name, the project name and all the forms used in the project.

1.Properties Window

2.Solution Explorer

3. Windows Form Designer

4.Project Window


Question:
A _______control in visual basic is used to create applications that present information in rows and columns.

1.MSGridLine

2.MSLineGrid

3.MSGridFlex

4.MSFlexGrid


Question:
A __________ variable is one that is declared inside a procedure.

1.global

2.local

3.external

4.None of the above


Question:
An object datatype can store _______ bytes.

1. 1 byte

2.2 byte

3.4 byte

4.8 byte


Question:
An object is composed of:

1.properties

2.events

3.methods

4.All of the above


Question:
For which task does the IDE provide multiple ways to accomplish the task?

1.Putting a control on the form

2.Running the program

3.Activating the property window for a control

4.All of the above


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

1.form

2.window

3.screen

4.None of These


Question:
Frame Control acts as a __________

1.Event

2.Method

3.Class

4.Container


Question:
In event-driven programming an event is generated by:

1.the system

2. a user’s action

3. the program itself

4. All of the above


Question:
In visual basic ______ is the extension to represent project file.

1.frm

2..vbp

3..cls

4..vb


Question:
It is a comprehensive, object-oriented collection of reusable types that you can use to develop applications.

1. Class Library .

2.Solution Explorer

3.Properties Window

4.Windows Form Designer


Question:
It translates all high level instructions into machine code first before running the program.

1.Interpreter

2.Compiler

3.Translator

4.Language


Question:
JIT stands for

1.Just In Type

2. Just In Time

3.Just In Thread

4. Just In Text


Question:
MDI stands for _________

1.Multiple Document Interface.

2.Multiple Design Interface.

3.Manipulated Document Interface.

4.Menu Design Interface.


Question:
The .Net class library:

1.uses namespaces to manage all of the classes.

2. contains over 25,000 classes

3. both (a) and (b)

4.has the System.Form namespace for classes used in Windows-based application.


Question:
The Button control can be activated:

1. by clicking the button with the mouse.

2.programmatically through the click event.

3. both (a) and (b)

4.with the form’s DefaultButton property.


Question:
The CancelButton property belongs to which object?

1.Form

2.Button

3.Label

4.TextBox


Question:
The default datatype for VB is ___________

1.Integer

2.Decimal

3.Variant

4.String


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

1.Text

2.Enable

3.Multiline

4.Password char


Question:
The function procedures are ___________ by default.

1.public

2.private

3.protected

4.None of the above


Question:
The Java and Visual Basic .NET belong to this type of programming language.

1.Assembly language

2.Machine language

3.High level programming language

4. Object oriented programming language


Question:
The method, which loads the form into memory and displays it on screen

1.Load

2.Show

3.Display

4.All of these


Question:
The variables that does not change the value during execution of program is __________

1.Numeric

2.String

3.Constant

4.None of the above


Question:
The window in which the individual documents are displayed is called ____________window.

1.Main

2.Child

3.Parent

4.Root


Question:
The window in which the individual documents are displayed is called ____________window.

1.Main

2.Child

3.Parent

4.Root


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

1.label

2. text box

3.Combo box

4. command button


Question:
The _______ function returns a string stored in a variant data type.

1.Chr.

2.Str.

3.Char

4.None of these


Question:
The _________ allows direct exit from a For loop, Do loop, Sub procedure, or Function procedure.

1.Break

2.Exit

3.Exit for

4.Exit Do


Question:
The __________ property is used in VB for maximum form at run time.

1.caption

2. window resize

3.window status

4.none of these


Question:
Variables are named storage locations in memory, the value of which does not change during program ___________

1.debug

2.design

3.execution

4.All of the above


Question:
VB.Net supports

1.Structured error handling

2. Unstructured error handling

3. Both

4.None


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:
What does IDE stand for?

1.Integrated Design Environment

2.Integrated Development Environment

3.Interior Design Environment

4.Interior Development Environment


Question:
Which are the standard prefixes for the Button and Combo box controls respectively?

1.bto and cbo

2.bto and chb

3.btn and cbo

4.btn and chb


Question:
Which are the standard prefixes for the text box and label controls respectively?

1.txb and lbl

2.txb and lab

3.tex and lbl

4.tex and lab


Question:
Which does the solution explorer not display?

1.Form Properties

2.Reference Folder

3.Form File

4.Assemble File


Question:
Which is an example of Visual Basic Objects?

1.ASP.NET

2.ADO.NET

3.Control objects

4.All of the above


Question:
Which is not a feature of a GUI that makes learning a program easy for users?

1.Detailed key strokes and commands

2.WYSIWYG formatting

3.Dialog boxes

4.Online help


Question:
Which is not a main component of the Visual Studio IDE?

1.start menu

2.Tool box

3.designer window

4.Solution Explorer


Question:
Which is not a property of the Common control class?

1. Show

2.Font

3.BackColor

4. ForeColor


Question:
Which is not true about forms and controls in Visual Basic?

1.They are pre-built.

2.They are graphical objects.

3.Buttons can be created with the drag and drop method.

4.New versions of the classes must be created with each project.


Question:
Which language is not a true object-oriented programming language?

1.VB 6

2.VB.NET

3.JAVA

4.C++


Question:
Which property determines whether a control is displayed to the user?

1.Visible

2.Enabled

3.Show

4.Hide


Question:
Which statement about objects is true?

1.One class is used to create one object.

2. One object is used to create one class.

3. One class can create many objects.

4.One object can create many classes.


Question:
Which symbol creates an access key in the text of a menu item?

1.@

2. &

3.$

4. #


Question:
______ array size can be changed at run-time.

1.Fixed

2.Preserve

3.Dynamic array

4.Multidimensional


Question:
_______ control executes the timer events at specified intervals of time.

1.Clock

2.Frame

3.Timer

4.Digital


Question:
________ control is used to represent the items in a hierarchical manner.

1.Tree view

2.Grid view

3.Progress bar

4.None of these


Question:
________ function returns the intervals between two dates in terms of years, months or days.

1.DateDiff( )

2.DateIn( )

3.DateFix( )

4.DiDate( )


Question:
________ indicates whether a particular condition is on or off.

1.Text box

2.Check box

3.List box

4. Combo box


Question:
________ loop repeats a group of statements for each item in a collection of objects or for each element of an array.

1.While loop

2. Do Until loop

3.Do while loop

4.For each loop


Question:
________ method is used to clear the contents of MSHFlexGrid control.

1.Clr

2.Cls

3.RemoveItem

4.Clear


Question:
________ method removes a dialog box from view.

1.Enabled

2.Disable

3.Hide

4.Display


Question:
_________ control displays current directory with any sub directories and allows the user to change directly.

1.File list box

2.Drive list box

3.Directory list box

4.All of the above


Question:
_________ is the process of finding and removing errors.

1.Checking

2.Compiling

3.Debugging

4.Quick watch


Question:
_________ is used for finding out about objects, properties and methods.

1.Form layout window

2.Code editor window

3.Object browser

4.None of the above


Question:
_________ is used for finding out about objects, properties and methods.

1.Form layout window

2.Code editor window

3.Object browser

4.None of these


Question:
_________ method is used to forcibly set the CPU focus to a particular control.

1.Setfocus

2.Gotfocus

3.Lostfocus

4.None of the above


Question:
__________ cannot be declared in a form or class module.

1.Static constants

2.Private constants

3.Public constants

4.None of these


Question:
__________ do not return a value.

1.Sub procedure

2.Function procedure

3.Property procedures

4.All of these


Question:
__________ event occurs when a form loaded into the memory.

1.Load

2.Activate

3.Initialize

4.None of the above


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

1.Rtrim

2.Ltrim

3.Trim

4.All of the above


Question:
__________ is a collection of files.

1.Class

2.Group

3.Project

4.All of the above


Question:
__________ is a collection of files.

1.Class

2.Group

3.Project

4.All of the above


Question:
__________ statement enables us to trap runtime error.

1.Error

2.On Error

3.On runtime Error

4.All of the these


Question:
___________ displays current directory with any subdirectories and allows the user to change directory.

1.FileListBox

2. DirListBox

3.DriveListBox

4.All of the above


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

1.Setfocus

2.Lostfocus

3.Gotfocus

4.None of these


Question:
___________ is property is used to hide the content in textbox with some symbols.

1.Name

2.Caption

3.Hidden

4. Password char


Question:
___________ method is used to retrieve the stored text from the clipboard.

1.Input

2.Gettext

3.Addtext

4.Settext


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!