[go: up one dir, main page]

100% found this document useful (1 vote)
843 views122 pages

MCQ 2

This document provides multiple choice questions and answers related to concepts in Visual Basic. It tests knowledge of Visual Basic terms, properties, controls, events, and other programming concepts. Some key points covered include that Visual Basic allows developing applications using graphical user interfaces, the object browser is used to view objects and their properties/methods, and variables declared inside procedures are local variables. It also covers various Visual Basic windows, controls, data types, and other core programming topics.

Uploaded by

laxmi bagade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
843 views122 pages

MCQ 2

This document provides multiple choice questions and answers related to concepts in Visual Basic. It tests knowledge of Visual Basic terms, properties, controls, events, and other programming concepts. Some key points covered include that Visual Basic allows developing applications using graphical user interfaces, the object browser is used to view objects and their properties/methods, and variables declared inside procedures are local variables. It also covers various Visual Basic windows, controls, data types, and other core programming topics.

Uploaded by

laxmi bagade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 122

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


__________
A Real time
B Graphical User Interface
C Character User Interface
D None Of These

Answer: Option [B]


2 _________ is used for finding out about objects, properties and
methods.
A Form layout window
B Code editor window
C Object browser
D None of the above

Answer: Option [C]

3 In Visual Basic, a variable name cannot be more than


__________ characters.
A 255
B 300
C 355
D 400
View Answer Comment
Answer: Option [A]
4 ___________ function is used to return a copy of a string
without leading spaces.
A Rtrim
B Ltrim
C Trim
D All of the above
View Answer Comment

Answer: Option [B]


5 The variables that does not change the value during execution
of program is __________
A Numeric
B String
C Constant
D None of the above
View Answer Comment

Answer: Option [C]


6 ___________ is a method which moves the focus to the
specified control or form.
A Setfocus
B Lostfocus
C Gotfocus
D None of these
View Answer Comment

Answer: Option [A]


7 The function procedures are ___________ by default.
A public
B private
C protected
D None of the above
View Answer Comment

Answer: Option [A]


8 __________ is a data type that can be used to declare a text of
maximum 10 million characters.
A Date
B Ulong
C Numeric
D String
View Answer Comment

Answer: Option [D]


9 Variables are named storage locations in memory, the value of
which does not change during program ___________
A debug
B design
C execution
D All of the above
View Answer Comment

Answer: Option [C]


10 In visual basic ______ is the extension to represent project file.
A .frm
B .vbp
C .cls
D .vb
View Answer Comment

Answer: Option [B]


11 The default property for a text box control is __________
A Text
B Enable
C Multiline
D Password char
View Answer Comment

Answer: Option [A]


12 __________ is a collection of files.
A Class
B Group
C Project
D All of the above
View Answer Comment

Answer: Option [C]


13 The method, which loads the form into memory and displays it
on screen
A Load
B Show
C Display
D All of these
View Answer Comment

Answer: Option [B]


14 The code in an application can be broken into logical
components by _______ process.
A modular
B procedural
C partitioning
D None of the above
View Answer Comment

Answer: Option [C]


15 The ________ object is a stored query definition, which is a
precompiled SQL statement.
A QueryFed
B QueryDif
C QueryFix
D QueryDef
View Answer Comment

Answer: Option [D]


16 ________ function returns the intervals between two dates in
terms of years, months or days.
A DateDiff( )
B DateIn( )
C DateFix( )
D DiDate( )
View Answer Comment

Answer: Option [A]


17 ______ array size can be changed at run-time.
A Fixed
B Preserve
C Dynamic array
D Multidimensional
View Answer Comment

Answer: Option [C]


18 The window in which the individual documents are displayed is
called ____________window.
A Main
B Child
C Parent
D Root
View Answer Comment

Answer: Option [B]


19 _________ is the process of finding and removing errors.
A Checking
B Compiling
C Debugging
D Quick watch
View Answer Comment

Answer: Option [C]


20 ________ loop repeats a group of statements for each item in
a collection of objects or for each element of an array.
A While loop
B Do Until loop
C Do while loop
D For each loop
View Answer Comment

Answer: Option [D]

21 A __________ variable is one that is declared inside a


procedure.
A global
B local
C external
D None of the above
View Answer Comment
Answer: Option [B]
22 _______ control executes the timer events at specified
intervals of time.
A Clock
B Frame
C Timer
D Digital
View Answer Comment

Answer: Option [C]


23 MDI stands for _________
A Multiple Document Interface.
B Multiple Design Interface.
C Manipulated Document Interface.
D Menu Design Interface.
View Answer Comment

Answer: Option [A]


24 A _______control in visual basic is used to create applications
that present information in rows and columns.
A MSGridLine
B MSLineGrid
C MSGridFlex
D MSFlexGrid
View Answer Comment

Answer: Option [D]


25 __________ cannot be declared in a form or class module.
A Static constants
B Private constants
C Public constants
D None of these
View Answer Comment

Answer: Option [C]


26 __________ do not return a value.
A Sub procedure
B Function procedure
C Property procedures
D All of these
View Answer Comment

Answer: Option [A]


27 The default datatype for VB is ___________
A Integer
B Decimal
C Variant
D String
View Answer Comment

Answer: Option [C]


28 _________ is a built in function to return lower bound of an
array.
A Lbound()
B LRbound()
C Lowbound()
D None of these
View Answer Comment

Answer: Option [A]


29 The _________ allows direct exit from a For loop, Do loop,
Sub procedure, or Function procedure.
A Break
B Exit
C Exit for
D Exit Do
View Answer Comment

Answer: Option [B]


30 ___________ displays current directory with any
subdirectories and allows the user to change directory.
A FileListBox
B DirListBox
C DriveListBox
D All of these
View Answer Comment

Answer: Option [B]


31 Extension of ActiveX designers ____________
A .dsr
B .axd
C .adx
D None of these
View Answer Comment

Answer: Option [A]


32 ________ indicates whether a particular condition is on or off.
A Text box
B Check box
C List box
D Combo box
View Answer Comment

Answer: Option [B]


33 __________ statement enables us to trap runtime error.
A Error
B On Error
C On runtime Error
D All of these
View Answer Comment

Answer: Option [B]


34 Frame Control acts as a __________
A Event
B Method
C Class
D Container
View Answer Comment

Answer: Option [D]


35 Form_Mouse Down( ) procedure is executed when any mouse
button is clicked in a free area of the ______.
A form
B window
C screen
D None of these
View Answer Comment

Answer: Option [A]


36 ________ method removes a dialog box from view.
A Enabled
B Disable
C Hide
D Display
View Answer Comment

Answer: Option [C]


37 The ______ is a tool used for both the Input and output
purpose.
A label
B text box
C Combo box
D command button
View Answer Comment

Answer: Option [B]


38 In visual basic the declaration of variables is done by _____
key word.
A int
B dim
C static
D declare
View Answer Comment

Answer: Option [B]


39 An object datatype can store _______ bytes.
A 1 byte
B 2 byte
C 4 byte
D 8 byte
View Answer Comment

Answer: Option [C]


40 ________ method is used to clear the contents of
MSHFlexGrid control.
A Clr
B Cls
C RemoveItem
D Clear
View Answer Comment

Answer: Option [D]


41 The _______ function returns a string stored in a variant data type.
A Chr.
B Str.
C Char.
D None of these
View Answer Comment

Answer: Option [A]


42 The __________ property is used in VB for maximum form at
run time.
A caption
B window resize
C window status
D none of these
View Answer Comment

43 ___________ is property is used to hide the content in textbox


with some symbols.
A Name
B Caption
C Hidden
D Password char
View Answer Comment
Answer: Option [D]
44 ___________ method is used to retrieve the stored text from
the clipboard.
A Input
B Gettext
C Addtext
D Settext
View Answer Comment

Answer: Option [B]


45 _________ control displays current directory with any sub
directories and allows the user to change directly.
A File list box
B Drive list box
C Directory list box
D All of the above
View Answer Comment

Answer: Option [C]


46 ________ control is used to represent the items in a
hierarchical manner.
A Tree view
B Grid view
C Progress bar
D None of these
View Answer Comment

Answer: Option [A]


47 Which is not a property of the Common control class?
A Show
B Font
C BackColor
D ForeColor
View Answer Comment

Answer: Option [A]


48 Which symbol creates an access key in the text of a menu
item?
A @
B &
C $
D #
View Answer Comment

Answer: Option [B]


49 __________ event occurs when a form loaded into the
memory.
A Load
B Activate
C Initialize
D None of the above
View Answer Comment

Answer: Option [A]


50 _________ method is used to forcibly set the CPU focus to a
particular control.
A Setfocus
B Gotfocus
C Lostfocus
D None of the above
View Answer Comment

Answer: Option [A]


MCQ
51:When the form is first referenced in any manner by program, the
triggered event is.....
A Load
B Activate
C Initialize
D None of these
Answer: Option [C]

52:IDE stands for…………


A Integrated Desktop Environment
B Integrated Development Environment
C Integrated Dual Environment
D Internet Development Environment
Answer: Option [B]

53:Which windows displays a list of all forms and modules making up


your application?
A Project window
B Properties window
C Form layout window
D All of the above
Answer: Option [A]

54: Properties can be viewed in two ways


A Alphabetic and Categorized
B Alphabetic and Numeric
C Numeric and Alphanumeric
D None of these
Answer: Option [A]

55: Which of the following windows is the central to the development of


Visual Basic applications?
A Project window
B Form window
C Properties window
D All of the above
Answer: Option [B]

56 :Which of the following provides quick access to commonly used


commands in the programming environment?
A Toolbox
B Object browser
C Toolbar
D None of these
Answer: Option [C]

57: One or more option button controls can be selected from _____
choices
A multiple
B single
C dual
D parallel
Answer: Option [A]

58: _____ bar contains a set of tools to provide controls in the Form
A Status
B Tool
C Menu
D Progress
Answer: Option [C]

59: Debug window is the same as ____ window


A procedure
B object
C form
D code
Answer: Option [D]
60: A module-level is available to all the _______ in the module
A data
B procedures
C event
D task
Answer: Option [B]

61: ______variables are not reinitialized each time Visual basic invokes
a procedure and thus retains or preserves value even when a procedure
ends
A Static
B Dynamic
C Virtual
D Currency
Answer: Option [A]

62: In ……………… window we can write code


A Immediate window
B Locals window
C Code editor window
D None of these
Answer: Option [C]

63: The form module has file extension ….


A .frb
B .fra
C .frm
D .fru
Answer: Option [C]

64: A text box can hold as many as …...…. characters for a single line
text
A 2052
B 2048
C 2058
D 2047
Answer: Option [B]

65: A text box can hold as many as ……… characters for a multi-line
text
A 42000
B 48000
C 23000
D 32000
Answer: Option [D]

66: ……….. control is used to provide an identifiable grouping for other


controls
A Frame
B Label
C List box
D Command button
Answer: Option [A]

67: ………. property is used to set the maximum length of a text, a


textbox can hold
A Length
B Multiline
C Maxlength
D None of these
Answer: Option [C]

68: Code window consists of a ______ box and procedure list box
A object
B event
C tool
D message
Answer: Option [A]
69: The ____ statement checks in the module for usage of any
undeclared variables and reports an error to the user
A looping
B iteration
C dim
D external
Answer: Option [C]

70: Dynamic arrays can be declared when the user may not know the
_____of the array at design time
A exact column
B exact variable
C exact value
D exact size
Answer: Option [D]

71: DVariables of different data types when combined as a single


variable to hold several related information is called as ______ data
types
A numeric
B user defined
C string
D byte
Answer: Option [B]

72: _____ function translates a numeric value to a variable


A Message
B Build In
C Val
D Mod
Answer: Option [C]

73: _____ box provides a set of choices to the user


A List
B Command
C Combo
D Text
Answer: Option [A]

74: …………. control is used to display text, but user cannot change it
directly
A Textbox
B Labelbox
C Listbox
D Commandbutton
Answer: OptioN B

75: We can preserve the value of a local variable by making the


variable………
A Private
B Public
C Static
D Implicit
Answer :c

76: ………. arrays can be resized at anytime


A Dynamic
B Fixed
C Multidimensional
D Control array
Answer: Option [A]

77: …………. is a block of code that is executed in response to an event


A Function procedure
B Sub procedure
C property procedures
D All of the above
Answer: Option [B]

78: All the following statements are true about variable scope except
A Module
B Global
C Static
D Local
Answer: Option [C]

79: All the controls in an array will have the same _____
A Value
B properties
C
D location
Answer: Option [B]

80: The _____ property in Visual basic is common for many a tools
A location
B place
C window status
D name
Answer: Option [D]
81: Option button can be grouped in a ______control
A label
B text box
C frame
D check box
Answer: Option [C]

82: A _____ bar appears in the top of the screen


A title
B menu
C tool
D debug
Answer: Option [A]

33: A disabled menu item does not appear in the ____ bar
A menu
B standard
C status
D title
Answer: Option [A]

84: …….. is a control related event


A Keydown
B Load
C Terminate
D GotFocus
Answer: Option [D

85: ………….. returns or sets the number of characters selected


A Sellength
B Selstart
C Seltext
D None of the above
Answer: Option [A]

86: ………….. combines the features of the text box and list box
A Picture box
B Check box
C Combo box
D Option button
Answer: Option [C]

87: ………. property is an integer value corresponding to the position of


the scroll box in the scroll bar
A Value
B Change
C Visible
D None of the above
Answer: Option [A]

88: By default, the textbox control can hold text as …….


A Multiple lines
B Single line
C Password character
D None of these
Answer: Option [B]

89: What is the default range of horizontal scroll bar?


A 0 to 32767
B -32768 to 32767
C -32768 to 0
D None of these
Answer: Option [A]

90: A menu can include a maximum of ___ levels of sub menus


A3
B4
C6
D8
Answer: Option [C]

91: _____ is a tool used in visual basic to draw rectangle in the form
A Textbox
B Option button
C Command button
D Shape
Answer: Option [D]

42: In default ____ numbers of tools exist in toolbox


A 20
B 15
C 10
D8
Answer: Option [A]
93: The ______property of a form automatically sizes the picture loaded
to it
A auto size
B default
C size
D height
Answer: Option [A]

94: While entering a new project ______ option to be select from the
dialog box
A open exe
B standard exe
C activex exe
D activexdll
Answer: Option [B]

95: The ______control used to insert image to the form


A text box
B shape
C option
D picture
Answer: Option [D]

96: A………. displays a list of items from which user can select one or
more items
A Combo box
B List box
C Check box
D Scroll bar
Answer: Option [B]

97: ……. modules can be reused in many different applications


A Combo box
B Class modules
C Standard modules
D None of these
Answer: Option [C]

98: Storage size of Byte datatype is……….


A 1 byte
B 2 byte
C 4 byte
D None of these
Answer: Option [A]

99: ………. property is used to return or sets a value that determines


whether the control can respond to user-generated events
AAutosize
B Enable
C Visible
D Value
Answer: Option [B]

100) ………. shows the value of any variables within the scope of the
current procedure
A Immediate window
B Locals window
C Watches window
D None of these
Answer: Option [B]

The Line method can be used to draw ______ shape in VB


A oval
B ellipse
C circle
D rectangle
Answer: Option [D]
There can be only ____ MDI form in an application
A zero
B one
C two
D four
Answer: Option [B]

In Visual basic more than one child _____ is allowed to add in project
A form
B window
C property
D codings
Answer: Option [A]

Status bar appears at the _____ of the MDI form


A right
B left
C bottom
D top

Answer & Explanation


Answer: Option [C]

The _____ keyboard refers to current form in VB project


A case
B form
C current
D me

Answer & Explanation


Answer: Option [D]

Scroll bar is of _____ types in Visual Basic for usage


A two
B four
C five
D six

Answer & Explanation


Answer: Option [A]

The width of any tool in visual basic can be changed at ___ time
A run
B debug
C design
D edit
Answer & Explanation
Answe C

The Visual basic programming is ______ based programming concept in


general
A GUI
B concept
C logical
D CUI

Answer & Explanation


Answer: Option [D]

______ property is related with Command button specific for displaying


picture
A Picture
B Down picture
C Height
D Object

Answer & Explanation


Answer: Option [B]
____ is a tool used in form window for grouping the option button
A Shape
B Label
C Group
D Frame

Answer & Explanation


Answer: Option [D]

………. shows the property type as well as a short description of the


property
A Object box
B Description pane
C Form layout window
D Code editor

Answer & Explanation


Answer: Option [B]

…………… contains shortcuts to frequently performed actions


A Tool bar
B Tool box
C Menu bar
D Context menu

Answer & Explanation


Answer: Option [D]

……. are objects that are placed on form objects


A GUI
B IDE
C Controls
D Project
Answer & Explanation
Answer: Option [C]

……….. returns numeric code of a character


A Chr
B Asc
C Format
D Space

Answer & Explanation


Answer: Option [B]

…………. allows us to control the flow of our program’s execution


based on certain condition
A Looping
B Array
C Property
D Control structure

Answer & Explanation


Answer: Option [D]

……. property designates the text appearing in the form’s title bar
A Text
B Name
C Caption
D None of thses

Answer & Explanation


Answer: Option [C]

………… method is used to delete items from a list box


A Remove
B Remove item
C Clear
D Delete

Answer & Explanation


Answer: Option [B]

RTF stands for…….


A Rich Text Format
B Rich Title Format
C Row Text Format
D Rich Text Function

Answer & Explanation


Answer: Option [B]

To load graphics on a control at runtime, we have to use the


function……….
A LoadImage
B LoadGraphics
C LoadPicture
D None of these

Answer & Explanation


Answer: Option [C]

The list of forms will display in tree like structure in _____window


A form
B project explorer
C property
D form layout

Answer & Explanation


Answer: Option [B]
The _____ menu used for adding tools in to existing tools box
A file
B viewr
C project
D format

Answer & Explanation


Answer: Option [C]

In visual basic _____ types of scroll bars available in visual basic


A three
B two
C four
D five

Answer & Explanation


Answer: Option [B]

While designing the visual basic there are _____ methods used for
adding a tools in to form window
A two
B three
C four
D five

Answer & Explanation


Answer: Option [A]

In VB the main form consist of more than one sub form is called ____
A second level
B super
C child
D subordinate
Answer & Explanation
Answer: Option [C]

The ____ is shortcut key used for execution of visual basic program
A F7
B F5
C F2
D F9

Answer & Explanation


Answer: Option [B]

Among the events in VB, the Load event is associated with _____
A form
B text box
C label
D command button

Answer & Explanation


Answer: Option [A]

The Data Report designer is broken into ____ different sections


A ten
B eight
C six
D two

Answer & Explanation


Answer: Option [C]

____ window is used to align the form execution in desired position or


location
A property
B coding
C project explorer
D form layout

Answer & Explanation


Answer: Option [D]

Which of the following keywords is used to keep track of active window


A Current
B Me
C Active
D All of the above

Answer & Explanation


Answer: Option [B]

Which window shows information that results from debugging


statements in our code
A Watch window
B Variables window
C Locals window
D Immediate window

Answer & Explanation


Answer: Option [D]

A……… is a place in the code where the program temporarily stops


A Step over
B Break point
C Watch
D Break

Answer & Explanation


Answer: Option [B]

……….. is an action recognized by a form or the control


A Property
B Procedure
C Event
D Method

Answer & Explanation


Answer: Option [C]

……….. is one of the main building blocks in a VB application


A Procedure
B Method
C Event
D Form

Answer & Explanation


Answer: Option [D]

………. allows you to position the forms in your application using a


small graphical representation of the screen
A Debugging window
B Form designer window
C Property window
D Form layout window

Answer & Explanation


Answer: Option [D]
………… is an example for control
A Form
B Event
C Method
D Code editor

Answer & Explanation


Answer: Option [A]
………… property is used to check whether the object is active or
deactivate
A Name
B Visible
C Enabled
D Dragmode

Answer & Explanation


Answer: Option [C]

Mouse down event takes place when you


A Click the left mouse button
B Press the mouse button
C Mouse is moved over the control
D All of the above

Answer & Explanation


Answer: Option [B]

A Boolean datatype can store……….bytes


A 1 byte
B 4 byte
C 8 byte
D 2 byte

Answer & Explanation


Answer: Option [D]

In coding window, the programming statement has been written in the


_____
A block
B group
C event
D property
Answer & Explanation
Answer: Option [C]
_____event will execute automatically at the activation of the tool
A GotFocus
B LostFocus
C Enabled
D Click

Answer & Explanation


Answer: Option [A]

The ____ key is used as control key on moving around the form without
mouse
A Spacebar
B enter
C shift
D tab

Answer & Explanation


Answer: Option [D]

In command button the _____ property is used to change the label value
for any content
A name
B font
C caption
D height

Answer & Explanation


Answer: Option [C]

In visual basic the _____ file consist of complete coding and form
design
A project
B form
C class
D module

Answer & Explanation


Answer: Option [A]

Self Length Property is supported by ____ control in VB


A command button
B option button
C text box
D label

Answer & Explanation


Answer: Option [C]

In multiple form based project the current form represented by ___


keyword
A me
B class
C load
D form

Answer & Explanation


Answer: Option [A]

Like text box, _____ is another tool used for display / output the
information
A input box
B label
C frame
D message box

Answer & Explanation


Answer: Option [D]
Among the various properties of the tools in VB, in general _____
property in not supposed to change the value at maximum time
A caption
B name
C height
D color

Answer & Explanation


Answer: Option [B]

_____ property is used to hide the tool in run time by setting value as
false
A visible
B enabled
C hide
D delete

Answer & Explanation


Answer: Option [A]

In …………….. there is no need to declare a variable before using it


A Explicit declaration
B Option Explicit
C General Declarations
D Implicit declaration

Answer & Explanation


Answer: Option [D]

In……….scope, variables are available only to the module in which


they are declared
A Public
B Private
C Module
D Static

Answer & Explanation


Answer: Option [B]

……….. is the extension of a class module


A .cls
B .cla
C .clss
D None of these

Answer & Explanation


Answer: Option [A]

……… is the extension of the standard module


A .bsi
B .bas
C .std
D .stn

Answer & Explanation


Answer: Option [B]

……….. is a meaningful name that takes the place of a number or string


that does not change
A Variable
B Constant
C Event
D Datatype

Answer & Explanation


Answer: Option [B]

……….. is a set of sequentially indexed elements having the same type


of data
A Objects
B Variables
C Array
D Loop

Answer & Explanation


Answer: Option [C]

……….. is a built in function to return the upper bound of an array


A Upper()
B ToUpper()
C Ubound()
D URbound()

Answer & Explanation


Answer: Option [C]

………… statement is used to define a property procedure that assigns


the value of a property
A Property Let
B Property Get
C Property Set
D None of these

Answer & Explanation


Answer: Option [A]

If variables are not implicitly or explicitly type, they are assigned the
type by default….
A Character
B Integer
C Variant
D None of these

Answer & Explanation


Answer: Option [C]

All the following statements are true about variable names except
A You cannot use a reserved word.
B Can be any length
C They may include letters, numbers, and underscore(_)
D The first character must be a letter

Answer & Explanation


Answer: Option [B]

SDI stands for _____


A Simple Document Interface
B Single Document Interface
C Sample Document Interface
D Simple Document Internal

Answer & Explanation


Answer: Option [A]

____ is a command used to come out of the loop


A continue
B case
C elseif
D break

Answer & Explanation


Answer: Option [D]

The component option is used to insert new tool in to the toolbox, ____
menu is used
A file
B view
C project
D help
Answer & Explanation
Answer: Option [C]

___ boxes display information in a dialog box superimposed on the form


A Input
B Message
C Text
D List

Answer & Explanation


Answer: Option [B]

In visual basic the _____ value is equivalent to the vb YES NO button in


message box
A2
B4
C6
D8

Answer & Explanation


Answer: Option [B]

In VB the order in which you create the controls is the order used by
using ____ key
A scroll
B Spacebar
C caps
D tab

Answer & Explanation


Answer: Option [D]

The F5 is key pressed the ____ event of form is executed first


A activate
B got focus
C initialize
D paint procedure

Answer & Explanation


Answer: Option [C]

In coding window the _____ shortcut key is used to find the particular
character or code
A Ctrl + Q
B Ctrl + F
C Alt + F
D Alt + Q

Answer & Explanation


Answer: Option [B]

The right hand drop down list box in the coding window is called _____
list box
A procedure
B event
C task
D content

Answer & Explanation


Answer: Option [A]

The ____ shortcut is used to get the QuickInfo option in visual basic
A Ctrl + Q
B Ctrl + Z
C Ctrl + I
D Ctrl + F

Answer & Explanation


Answer: Option [C]
In visual basic the, Visible property consists _____ state
A6
B2
C4
D1

Answer & Explanation


Answer: Option [B]

…………. are used by VB to hold information needed by an application


A Objects
B Datatypes
C Variables
D Dim

Answer & Explanation


Answer: Option [C]

The ……. allows direct exit from a For loop, Do loop, Sub procedure, or
Function procedure
A Exit
B Exit for
C Exit Do
D Break

Answer & Explanation


Answer: Option [A]

If you declare an array in a module and you want every procedures to


access it, then declare it as………
A Private
B Public
C Private or public
D None of these
Answer & Explanation
Answer: Option [B]

When the form is first referenced in any manner by program, the


triggered event is ……
A Load
B Activate
C Initialize
D None of these

Answer & Explanation


Answer: Option [C]

What properties are required to be specified for a menu item


A Caption
B Caption
C Both a and b
D None of these

Answer & Explanation


Answer: Option [C]

………… present a list of choices to the user


A List box
B Rich text box
C Combo box
D None of these

Answer & Explanation


Answer: Option [A]

…………. displays the current drive and allows the user to select a
different drive by using a drop down arrow
A DirListBox
B DriveListBox
C FileListBox
D None of these

Answer & Explanation


Answer: Option [B]

………. displays a list of the files in the current directory or sudirectory


A FileListBox
B DirListBox
C DriveListBox
D None of these

Answer & Explanation


Answer: Option [A]

The Type Of statement is used to find out…….


A Type of picture displayed
B Type of object accessed in control collection
C Type of button clicked
D All of the above

Answer & Explanation


Answer: Option [B]
To attach a scroll bar to the textbox , the property of textbox should be
set to:
A Multiline=True
B Scrollbar=True
C SingleLine=False
D None of these

Answer & Explanation


Answer: Option [A]

The event occurs when certain key of keyboard is pressed


A keyType
B keyPress
C KeyEnter
D None of these

Answer & Explanation


Answer: Option [B]

The _____data type is the default and standard type used in


programming side
A variant
B string
C numeric
D byte

Answer A

In data type the ____ prefix used to represent the Boolean data
A bty
B bct
C bln
D bcl

Answer & Explanation


Answer: Option [C]

To run / to install the Visual basic 6.0 minimum of ____ ram capaciy
A 1 mb
B 32 mb
C 64 mb
D 128 mb

Answer & Explanation


Answer: Option [B]
____ option in project explorer window used display the coding of the
program
A View design
B View source
C View object
D View code

Answer & Explanation


Answer: Option [D]

To open the property window for usage ____ shortcut key is used
A F4
B F5
C F2
D F3

Answer & Explanation


Answer: Option [A]

In visual basic form, the caption property content will reflect in ____
area
A status
B work
C title
D right

Answer & Explanation


Answer: Option [C]

The ____ is a shortcut key used to replace the content by specific data in
coding window
A Ctrl + F
B Ctrl + H
C Ctrl + Z
D Ctrl + U
Answer & Explanation
Answer: Option [B]

In declaration a variables _____ length of characters is allotted for a


variable
A 32
B 64
C 255
D 128

Answer & Explanation


Answer: Option [C]

From the following _____tool is used to display pictures in VB form


A picture
B shape
C list box
D check box

Answer & Explanation


Answer: Option [A]

In VB form, the name property can be named with alphabets; ____ is the
maximum number of character allowed
A 20
B 30
C 40
D 50

Answer & Explanation


Answer: Option [C]

In command button, the ____ symbol is used to make the button with
shortcut key access
A%
B&
C#
D@

Answer & Explanation


Answer: Option [B]

____ property is used to set the flow of control in between the multiple
controls
A Index
B Tab Value
C Tab Index
D Value

Answer & Explanation


Answer: Option [C]

The _____ number of events related to form execution


A6
B8
C2
D 12

Answer & Explanation


Answer: Option [A]
The ____ is the function is used to display the picture using picture box
A display picture( )
B pic( )
C load picture( )
D picture( )

Answer & Explanation


Answer: Option [C]
A………. is used to display information entered at design time, by a
user at runtime ,or assigned within the code
A LabelBox
B TextBox
C ListBox
D ComboBox

Answer & Explanation


Answer: Option [B]

………. method adds a row to an MSHFlexGrid


A Add
B New
C Additem
D None of these

Answer & Explanation


Answer: Option [C]

……..files contains bitmaps, strings, and other data that we can change
without having to reedit and recompile the program code
A Resource file
B Forms
C Class file
D None of these

Answer & Explanation


Answer: Option [A]

Extension of ActiveX controls ………


A .oxc
B .ocx
C acv
D .acx
Answer & Explanation
Answer: Option [B]

…………… is used to select a particular record


A File pointer
B VDM
C Database
D Dataprovider

Answer & Explanation


Answer: Option [A]

…………. is a collection of code which translates application request


into physical operation on datastore.
A Database
B Data provider
C Interface
D None of these

Answer & Explanation


Answer: Option [B]

Question
…….. is a Microsoft product for windows platform
A Jet database engine
B ODBC
C OLEDB
D None of these

Answer & Explanation


Answer: Option [A]

………. allows access to the client server databases on a network


A OLEDB
B Jet database engine
C ODBC
D None of these

Answer & Explanation


Answer: Option [C]

………… can access data from relational and non relational databases
A Jet database engine
B OLEDB
C ODBC
D None of these

Answer & Explanation


Answer: Option [B]

…………. method of recordset object can be used to allocate memory


for a new blank record
A Update
B Add
C Edit
D Addnew

Answer & Explanation


Answer: Option [D]

……… is a special tool available in VB to access databases directly


A VDM
B DAO
C ADO
D None of these

Answer & Explanation


Answer: Option [A]
The ____ concept is used to check for multiple conditions in VB
A if
B for....loop
C if elseif
D while

Answer & Explanation


Answer: Option [C]

In the following logic, the condition is check at the end of the loop
A do_While
B While
C For
D If.then

Answer & Explanation


Answer: Option [A]

In for loop operation ____ keyword is used to increment the value of


variable for execution
Aincr
B step
C else
D select

Answer & Explanation


Answer: Option [B]

___ is the keyword represents the end of the for loop in Visual basic
A next
B stop
C end
D close

Answer & Explanation


Answer: Option [A]

The ___ type of operator is used for checking comparing values


A logic
B bits wise
C relational
D arithmetic

Answer & Explanation


Answer: Option [C]

The ____ is a keyword is used to combine two conditions for checking


at same time
A else
B loop
C and
D or

Answer & Explanation


Answer: Option [A]

In for loop concept in visual basic ____ keyword is used to come out the
loop immediately
A exit
B out for
C exit for
D exit if

Answer & Explanation


Answer: Option [C]

The ____ statement is used to change the control to specified location


without any condition
A while
B else if
C select
D goto

Answer & Explanation


Answer: Option [D]

In list box concept ____ function is used to insert item to the list
A addlist()
B additem()
C adddata()
D addcount()

Answer & Explanation


Answer: Option [B]

___ function is used to delete all the data items be completely removed
A listremove()
B list()
C listclear()
D listdel()

Answer & Explanation


Answer: Option [C]

A complete repaint of a form or control can be enforced by ________


method
A show
B fresh
C hide
D refresh

Answer & Explanation


Answer: Option [D]
________ is used to link or embed object, display and manipulate data
from other windows based applications
A DLE
B OLE
C CLE
D MLE

Answer & Explanation


Answer: Option [B]

The _______ event occurs when the form is closed by the user
A unload
B double click
C load
D click

Answer & Explanation


Answer: Option [A]

………. is the top level object in DAO hierarchy


A Data provider
B Database
C DB Enginer
D None of these

Answer & Explanation


Answer: Option [C]

………… defines and manages the current user account


A Filepointer
B Workspace
C Group
D None of these

Answer & Explanation


Answer: Option [B]

……… represents a user account with particular access permission in a


particular workspace
A User
B Workspace
C Database
D None of these

Answer & Explanation


Answer: Option [A]

……… object contains information about an error occurred during a


DAO operation
A ERR
B Debugging
C Error
D None of these

Answer & Explanation


Answer: Option [C]

……… object contains information about an error occurred during a


DAO operation
A User
B Table def
C Query def
D None of these

Answer & Explanation


Answer: Option [B]

………… object in DAO model represents objects like saved forms,


modules, reports etc:
A Container
B Fields
C Query def
D None of these

Answer & Explanation


Answer: Option [A]

The ________ method is used to display a form object


A list
B control
C hide
D show

Answer & Explanation


Answer: Option [D]

A ________ is a window that contains application code and has other


objects placed on it to create the user interface
A code
B form
C object
D explorer

Answer & Explanation


Answer: Option [B]

Visual basic project files are saved with an extension _________


A .vbp
B .lmp
C .bvp
D .frm

Answer & Explanation


Answer: Option [A]
Form files are saved with an extension __________
A .prj
B .vbp
C .rfm
D .frm

Answer & Explanation


Answer: Option [D]

The ________ box displays the name of the selected object associated
with the form
A checkbox
B object
C list
D combo

Answer & Explanation


Answer: Option [B]

A ________ procedure is used to create and manipulate custom


properties
A property
B maxi
C mini
D stored

Answer & Explanation


Answer: Option [

Writing code in _________ modules can create new objects


A form
B procedure
C class
D window
Answer & Explanation
Answer: Option [C]

Writing code in _________ modules can create new objects


A Do While
B For Next
C Select-case
D Do case

Answer & Explanation


Answer: Option [C]

The ________ statement first executes the statements and then tests the
condition after each execution
A do-until
B do-loop while
C select-case
D if endif

Answer & Explanation


Answer: Option [B]

………. connectivity is independent of any DBMS or operating system


A DAO
B OLEDB
C ODBC
D None of these

Answer & Explanation


Answer: Option [C]

…………… method used to load or import a text file or .rtf file into a
rich text box
A Load
B Load file
C Import
D None of these

Answer & Explanation


Answer: Option [B]

…………. control provides all standard dialog boxes into our VB form
A Common dialog control
B Rich text box
C Input box
D All of these

Answer & Explanation


Answer: Option [A]

………. are called design time entities


A Class
B Form
C Control
D None of these

Answer & Explanation


Answer: Option [A]

………… are called runtime entities

A Control
B Form
C Object
D Class
View Answer
Answer & Explanation
Answer: Option [C]

In a class, …………is used to pass value to the property

A Property Get procedure


B Property Let procedure
C Property Set procedure
D None of these
View Answer

AAnswer: Option [B]

In a class, …………is used to store data in a property and returns the


property.

A Property Get procedure


B Property Let procedure
C Property Set procedure
D None of these
View Answer

Answer & Explanation


Answer: Option [A]

In a class, …………is used to pass object itself as a function argument

A Property Get procedure


B Property Set procedure
C Property Let procedure
D None of these
View Answer
Answer & Explanation
Answer: Option [B]

………… are called runtime entities

A Control
B Form
C Object
D Class
View Answer

Answer & Explanation


Answer: Option [C]

In a class, …………is used to pass value to the property

A Property Get procedure


B Property Let procedure
C Property Set procedure
D None of these
View Answer

AAnswer: Option [B]

In a class, …………is used to store data in a property and returns the


property.

A Property Get procedure


B Property Let procedure
C Property Set procedure
D None of these
View Answer

Answer & Explanation


Answer: Option [A]

In a class, …………is used to pass object itself as a function argument

A Property Get procedure


B Property Set procedure
C Property Let procedure
D None of these
View Answer

Answer & Explanation


Answer: Option [B]

……….. is an event of a class

A Initialize
B Click
C Got focus
D None of these
View Answer

Answer & Explanation


Answer: Option [A]

The _________ function with symbols representing the date and time is
used to print the formatted dates and times

A String
B Val
C Format
D date
View Answer

Answer & Explanation


Answer: Option [C]

______ is the function used to compare two strings

A CompStr
B StrComp
C Strinv
D String
View Answer

Answer & Explanation


Answer: Option [B]

The __________ function returns the intervals between two dates in


terms of years, months or days

A datediff
B dateinter
C diffdate
D dateiff
View Answer

Answer & Explanation


Answer: Option [A]

The ________ function returns the length of string

A length
B len
C strlen
D lenstr
View Answer

Answer & Explanation


Answer: Option [B]

________ function returns a Variant (Long) specifying the position of


the first occurrence of one string within another

A InStr
B StrIn
C StrVar
D VarStr
View Answer

Answer & Explanation


Answer: Option [A]

The value property of the scroll bar represents its current value which
may be any integer between ________ and ________ value

A mini,maxi
B large,short
C high,low
D minimum, maximum
View Answer

Answer & Explanation


Answer: Option [D]

A Combobox combines the feature of ________ and _________

A listbox,scrollbar
B textbox, listbox
C textbox,checkbox
D listbox,optionbutton
View Answer
Answer & Explanation
Answer: Option [B]

_________ method removes list entries from a list box at run time

A Delete
B Item remove
C Remove item
D Erase
View Answer

Answer & Explanation


Answer: Option [A]

Control arrays are added at run time using __________ statement

A unload object
B load object
C form load
D form unload
View Answer

Answer & Explanation


Answer: Option [B]

________ statement removes a control from an array

A Form Unload
B Form Load
C Load Object
D Unload Object
View Answer

Answer & Explanation


Answer: Option [D]
______ is displayed as a horizontal line between items on a menu bar

A Horizontal Bar
B Separator Bar
C Vertical Bar
D Split Bar
View Answer

Answer & Explanation


Answer: Option [B]

Check mark can be placed on a menu item using __________ property

A text
B caption
C unchecked
D checked
View Answer

Answer & Explanation


Answer: Option [D]

_______ argument is an integer called button

A Third
B Second
C First
D Fourth
View Answer

Answer & Explanation


Answer: Option [C]

________ event occurs when the user presses any mouse button

A MouseDown
B Mouse Left
C Mouse Right
D Mouse Up
View Answer

Answer & Explanation


Answer: Option [A]

………… event occurs when an object of a class is created

A Click
B Got focus
C Initialize
D None of these
View Answer

Answer & Explanation


Answer: Option [C]

………… event occurs when an object of a class is created

A Initialize
B Terminate
C Got focus
D None of these
View Answer

Answer & Explanation


Answer: Option [B]

…….. keyword is used to create an object for the class

A Allocate
B Create
C New
D None of these
View Answer

Answer & Explanation


Answer: Option [C]

……….. is a group of objects gathered together as a single object

A Collection
B Form
C Array
D None of these
View Answer

Answer & Explanation


Answer: Option [A]

By using …….. keyword we can create a collection

A Create
B New
C Allocate
D None of these
View Answer

Answer & Explanation


Answer: Option [B]

To find out the total number of items in a collection we can use ……..
property

A Add
B Find
C Count
D None of these
View Answer
Answer & Explanation
Answer: Option [C]

………. is an important property of a file list box

A File
B Pattern
C Drive
D None of these
View Answer

Answer & Explanation


Answer: Option [B]

…………. is the important event of a timer control

A Change
B Click
C Timer
D Got focus
View Answer

Answer & Explanation


Answer: Option [C]

………….. property is used to return the index of a selected item in a


listbox

A New index
B Index
C Sel index
D List index
View Answer

Answer & Explanation


Answer: Option [C]
……….. control returns Boolean value

A List box
B Combo box
C Option button
D Scroll bar
View Answer

Answer & Explanation


Answer: Option [C]

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

A The text property changes to match any changes in the name


property
B They are the same when the control is first created
C The name property changes to match any changes in the text
property
D They are never the same unless the programmer makes it that
way
View Answer

Answer & Explanation


Answer: Option [B]

________ argument gives the status of the SHIFT, CTRL and ALT keys

A Second
B First
C Third
D Fourth
View Answer

Answer & Explanation


Answer: Option [A]
________ and ________ functions are used to add predefined dialog
boxes

A Input( ) and Listbox( )


B Combobox( ) and Input( )
C Msgbox( ) and Listbox( )
D Input( ) and Msgbox( )
View Answer

Answer: Option [D]


The common Dialog is used as a _________ that lets the user select and
saves files

A input box
B msgbox
C dialog box
D listbox
View Answer

Answer & Explanation


Answer: Option [C]

______ function specifies the file name and assigns the picture to the
picture property

A Unload picture
B Show picture
C List picture
D Load picture
View Answer

Answer & Explanation


Answer: Option [D]

The point method returns the ________ of a particular pixel


A center point
B coordinate
C position
D color
View Answer

Answer & Explanation


Answer: Option [D]

________ property of an image control sizes the picture loaded to it

A Declared variable
B Image
C Text
D Undeclared variable
View Answer

Answer & Explanation


Answer: Option [A

________ event occurs whenever the size of the form is changed

A Change
B Resize
C Size
D Fixed
View Answer

Answer & Explanation


Answer: Option [B]

View Answer

________ method with _______ argument is used to cascade forms

A Arrange, Cascade
B Arrange, VbFill
C Arrange, VbCascade
D Arrange, VbUnfill
View Answer

Answer & Explanation


Answer: Option [C]

A cell is an intersection of _______ and _______

A row, column
B row, rows
C column, column
D row, line
View Answer

Answer & Explanation


Answer: Option [A]

_______ property is set to change the height of a cell

A Column height
B Column
C Row
D Row height
View Answer

Answer & Explanation


Answer: Option [D]

________ kinds of rows and columns are created in the Ms Flex Grid
control

A Two
B One
C Three
D Four
View Answer

Answer & Explanation


Answer: Option [A]

Which statement about objects is true?

A One class is used to create one object


B One object can create many classes
C One class can create many objects
D One object is used to create one class
View Answer

Answer & Explanation


Answer: Option [C]

In event-driven programming an event is generated by:

A The system
B User’s action
C The program itself
D All of the above
View Answer

Answer & Explanation


Answer: Option [D]

Which two controls combined to form the ComboBox control?

A ListBox and TextBox


B ListBox and InputBox
C ListBox and MsgBox
D Label and TextBox
eAnswer: Option [A]r & Explanati
………….. automates much of work involved in creating and deploying
the files needed for our program to run on another computer

A DLL
B File systems
C Package and deployment wizard
D None of these
View Answer

Answer & Explanation


Answer: Option [C]

…….. is a compressed file that is well suited to distribution on either


disks or the internet

A CBA
B CAB
C PCB
D None of these
View Answer

Answer & Explanation


Answer: Option [B]

………….. allows you to define exactly what the startmenu group


contains and what icons are used

A DLL
B File systems
C Package and deployment wizard
D None of these
View Answer

Answer & Explanation


Answer: Option [C]
Through ………. controls we can access information in the databases

A Report
B Wizard
C Data control
D Data bound control
View Answer

Answer & Explanation


Answer: Option [D]

……… type of recordset creates a dynamic set of records that represents


a database table or the results of a query containing fields from one or
more tables

A Table type
B Dynaset
C Snapshot
D All of the above
View Answer

Answer & Explanation


Answer: Option [B]

_______ is a process involving a minimum of two independent entries


one being the client and the other is the server

A Server Architecture
B Client Architecture
C Client/Server Architecture
D Network
View Answer

Answer & Explanation


Answer: Option [C]
A __________ is a collection of object classes that model the structure
of a relational database system

A DAO
B RDO
C DOA
D ADO
View Answer

Answer & Explanation


Answer: Option [A]

________ queries are SQL statements that perform specific actions on


the database

A Select
B Unfixed
C Fixed
D Action
View Answer

Answer & Explanation


Answer: Option [D]

The _______ method creates a connection between the application and


the ODBC database and assigns it to a database type object

A OpenDatabase
B CreateDatabase
C SelectDatabase
D FixedDatabase
View Answer

Answer & Explanation


Answer: Option [A]
The Data control implements data access by using the __________

A Microsoft RDO
B Microsoft Jet Database Engine
C Microsoft ADO
D Microsoft DAO
View Answer

Answer & Explanation


Answer: Option [B]

Visual basic Programming is an _______ driven programming concept

A exection
B flow
C task
D event
View Answer

Answer & Explanation


Answer: Option [D]

The ________ method of the connection object is used to run the queries
against the database

A Close Resultset
B Open Resultset
C Fix Resultset
D Unfix Resultset
View Answer

Answer & Explanation


Answer: Option [B]

The print command in Visual basic programming is used to ____


A give output
B print the form content
C find error
D display the content in form
View Answer

Answer & Explanation


Answer: Option [D]

_____ of the query designer interface displays the input sources for
querying

A Diagram
B Select
C Image
D Result
View Answer

Answer & Explanation


Answer: Option [A]

A _____ object represents a connection to a remote database used as a


data source for the associated commands

A RDO
B ADO
C connection
D fixed
View Answer

Answer & Explanation


Answer: Option [C]

______control displays data that is calculated at runtime, using built-in


functions, as the report is generated
A Function
B Connection
C Text
D Caption
View Answer

Answer & Explanation


Answer: Option [A]

_____ property is used to change the label value of command button

A name
B text
C caption
D value
View Answer

Answer & Explanation


Answer: Option [C]

………. type of recordset creates a set of records that represent a single


database table that we can use to add change or delete records

A Table type
B Dynaset
C Snapshot
D All of the above
View Answer

Answer & Explanation


Answer: Option [A

……….. type of recordset creates a static copy of a set of records that


we can use to find data or generate reports

A Table type
B Snapshot
C Dynaset
D All of the above
View Answer

Answer & Explanation


Answer: Option [B]

…… is a pointer in to a set of records

A EOF
B BOF
C File
D Cursor
View Answer

Answer & Explanation


Answer: Option[D]

………. is the capability to wrap all aspects of functionality and user


interface into a single entity?

A Data hiding
B Encapsulation
C Abstraction
D None of these
View Answer

Answer & Explanation


Answer: Option [B]

All the features and benefits of using objects are wrapped up what
Microsoft calls …………

A CAP
B CAM
C COM
D None of these
View Answer

Answer & Explanation


Answer: Option [C

COM stands for …………

A Component Object Model


B Class Object Model
C Common Object Model
D None of these
View Answer

Answer & Explanation


Answer: Option [A]

The main objective of the COM philosophy is …….

A Abstraction
B Reliability
C Reusability
D None of these
View Answer

Answer & Explanation


Answer: Option [C]

The important property of a scroll bar is ……

A Scroll
B Value
C Change
D None of these
View Answer

Answer & Explanation


Answer: Option [B]

…….. event occurs when the user presses a key from the keyboard

A Keypress
B Keydown
C Keyup
D All of the above

Answer: Option [B]


The button parameter used to identify the left mouse button is ……….

A 4
B 3
C 2
D 1
Answer: Option [D]& Explanati

The button parameter used to identify the right mouse button is ……….

A 1
B 2
C 3
D 4
View Answer

Answer & Explanation


Answer: Option [B]

……………event occurs when the content of a control changes

A Load
B Got focus
C Change
D None of these
View Answer

Answer: Option [C]


The default event of a text box is …….

A Click
B Got focus
C Load
D Change
View Answer

Answer: Option [D]


The integer data type is range form ____

A -32,768 to 32,767
B -33,768 to 33768
C -2,147,483,648 to 2,147,483,648
D -,147,483,648 to 3,147,483,648
View Answer

Answer & Explanation


Answer: Option [A]

_____occurs when the user presses any mouse button

A MouseUp
B MouseLeft
C MouseDown
D MouseRight
View Answer

Answer & Explanation


Answer: Option [C]
Each menu control array element is identified by a unique index value,
indicated in the _________property box on the menu editor

A index
B array
C value
D number
View Answer

Answer & Explanation


Answer: Option [A]

________property of an Image control is used to automatically resize a


picture and place it inside the control

A Resize
B Stretch
C Image
D Control
View Answer

Answer & Explanation


Answer: Option [B

_________ is the process of clicking the mouse button in a control and


moving the mouse while holding down the mouse button

A Dragging
B Moving
C Cutting
D Dropping
View Answer

Answer & Explanation


Answer: Option [A]

_____ array size always remains the same


A Dynamic
B Preserve
C Fixed-size
D Multidimension
View Answer

Answer & Explanation


Answer: Option [C]

Visual Basic Objective Questions and Answers

1. Home/
2. Computer Science/
3. the-keyword-is-used-when-we-want-visual-basic-to-create-a-
new-instance-of-the-original-object
Question

The ____keyword is used when we want Visual Basic to create a new


instance of the original object

A destructor
B preprocessor
C intermediate
D constructor
View Answer

Answer & Explanation


Answer: Option [A]

A specific object can be referenced by an object variable of that object


type using the _______ keyword

A ungeneric
B dynamic
C static
D generic
View Answer

Answer & Explanation


Answer: Option [D]

The role of the _________ is to free the space allocated in the


constructor

A old
B memory
C object
D new
View Answer

Answer & Explanation


Answer: Option [D

A _______control variable can refer to any control on any form in an


application

A dynamic
B static
C set
D reset
View Answer

Answer & Explanation


Answer: Option [C]

_______can be built by adding custom properties to a Form and then


they can be used as templates for new objects

A Classes
B Tools
C Controls
D Objects
View Answer

Answer & Explanation


Answer: Option [A]

…….. keyword is used to preserve the previously stored values of a


dynamic array

A Redim
B Preserve
C Dim
D Static
View Answer

Answer & Explanation


Answer: Option [B]

……….. procedures have return values

A Event
B General
C Sub
D Function
View Answer

Answer & Explanation


Answer: Option [D]

……….. event occurs when the form is set to nothing

A Initialize
B Activate
C Terminate
D All of the above
View Answer
Answer & Explanation
Answer: Option [C

In VB, arguments are passed by default by …….

A Value
B Reference
C Object
D None of these
View Answer

Answer & Explanation


Answer: Option [B]

…………. method is used to retrieve a particular record on the basis of a


criteria

A Find
B Move
C Add
D None of these
View Answer

Answer & Explanation


Answer: Option [A]

When …… is true then the file pointer will be above the first record

A File
B BOF
C EOF
D None of these
View Answer

Answer & Explanation


Answer: Option [B
Which is not a valid Exit statement?

A Exit Form
B Exit Sub
C Exit For
D Exit Do
View Answer

Answer & Explanation


Answer: Option [A]

Which function should be used to validate that input is not a string


before performing arithmetic operations?

A IsArithmetic
B IsNumeric
C IsString
D IsNotString
View Answer

Answer & Explanation


Answer: Option [B]

What is the most number of states a CheckBox can have?

A 3
B 1
C 2
D 0
View Answer

Answer & Explanation


Answer: Option [A]

The scope of a variable refers to:

A The length of the variable


B The name of the variable
C The datatype of the variable
D The accessibility of the variable
View Answer

Answer & Explanation


Answer: Option [D]

In the statement, Dim Days(7) as String, what part of the array does the
number 7 refer to?

A Array name
B Datatype
C Upperbound
D Lowerbound
View Answer

Answer & Explanation


Answer: Option [C]

lass modules have two events ___ and ___

A initialize, terminate
B initialize, interrupt
C terminate, interrupt
D interrupt, exception
View Answer

Answer & Explanation


Answer: Option [A

The ________method is used to read a value of a property of control


from container form file

A ScanProperty
B TextProperty
C WriteProperty
D ReadProperty
View Answer

Answer & Explanation


Answer: Option [D

An ActiveX EXE, otherwise called as an ____server

A inprocess
B remote
C out of process
D active
View Answer

Answer & Explanation


Answer: Option [C]

Hyper link is a web based object that is used to navigate to another


document using the _______method

A Navigate out
B Navigate set
C Navigate in
D Navigate to
View Answer

Answer & Explanation


Answer: Option [D]

An _______ is an object that we place on a form to enable or enhance a


users interaction with an application

A Module
B ActiveX control
C Procedure
D Control
View Answer

Answer & Explanation


Answer: Option [B

the ________ control is used to create a hierarchy that shows at least 2


or more levels of a database

A tree view
B level view
C tool view
D form view
View Answer

Answer & Explanation


Answer: Option [A

A ________ control is a frame that can contain of several panels, which


inform the user of the status of an application. The control can hold upto
16 frames

A list bar
B tool bar
C frame bar
D status bar
View Answer

Answer & Explanation


Answer: Option [D

A _______ control acts like the dividers in a note book or the labels on a
group of file folders

A tab strip
B control strip
C window strip
D tool strip
View Answer

Answer & Explanation


Answer: Option [A]

The changes are saved in a transaction using _________ operation

A rollback
B commit
C truncate
D store
View Answer

Answer & Explanation


Answer: Option [B]

________ allows us to build a query in a graphical user interface without


having to learn SQLn

A Table designer
B Form designer
C Report designer
D Query designer
View Answer

Answer & Explanation


Answer: Option [D

The _____ menu is used to add a new tool in the tools box

A File
B Project
C Edit
D View
View Answer
Answer & Explanation
Answer: Option [B

351.A web browser control can accept ____________ targets by default

A copy and paste shortcuts


B cut and paste shortcuts
C drag and drop shortcuts
D select and deselect shortcuts
View Answer

Answer & Explanation


Answer: Option [C]

Which menu object property places a check mark in the


display of the menu text?

[A] CheckOn
[B] CheckMark
[C] Checked
[D] Check
Answer & Explanation
Answer: Option [C]

Which is not a standard dialog box?

[A] ZoomDialog
[B] OpenDialog
[C] FontDialog
[D] ColorDialog
Answer & Explanation
Answer: Option [A]

Where is a single element of data stored?

[A] Table
[B] Record
[C] Field
[D] Both A and B
Answer & Explanation
Answer: Option [C]

Where is a collection of related data elements stored?

[A] Table
[B] Record
[C] Field
[D] Both a and b
Answer & Explanation
Answer: Option [B]

Q.

Which statement about objects is true?

[A] One class can create many objects


[B] One object can create many classes
[C] One class is used to create one object
[D] One object is used to create one class
Answer & Explanation
Answer: Option [A]

In event-driven programming an event is generated by:

[A] The system


[B] A user’s action
[C] The program itself
[D] All of the above
Answer & Explanation
Answer: Option [D]

The important property of a timer control is …………


[A] Name
[B] Interval
[C] Timer
[D] Time
Answer & Explanation
Answer: Option [B]

The only object that is not a collection and is not contained


within another container in the DAO is …………

[A] Table def


[B] Group
[C] DB Engine
[D] Workspace
Answer & Explanation
Answer: Option [C]

Inorder to add a new node into a tree view control we must


use ……… method

[A] Addnode
[B] Add
[C] Additem
[D] None of these
Answer & Explanation
Answer: Option [B]

The _______ control is always cleared if the users leave the


page and then use the back button to return to the page

[A] password field


[B] user field
[C] text field
[D] tab field
Answer & Explanation
Answer: Option [A
The _______control is used for accepting multiple lines of
standard text with a scroll bar attached

[A] label area


[B] multiline area
[C] text area
[D] frame area
Answer & Explanation
Answer: Option [C]

The _________ object to save a query definition in our


application

[A] command
[B] save
[C] label
[D] text
Answer & Explanation
Answer: Option [A]

The _________, commonly known as stored procedures,


perform an action on the database without returning a record
set

[A] commit query


[B] rollback query
[C] select query
[D] action query
Answer & Explanation
Answer: Option [D]

The _______ method fills the combo box item

[A] add item


[B] addition
[C] list
[D] addlist
Answer & Explanation
Answer: Option [A]

The ________ property of the file list box is updated


according to the selected file type

[A] select
[B] list
[C] pattern
[D] fill
Answer & Explanation
Answer: Option [C]

A ______ access file is like a database

[A] static
[B] dynamic
[C] sequential
[D] random
Answer & Explanation
Answer: Option [D]

________ files are accessed byte by byte

[A] Random
[B] Binary
[C] Dynamic
[D] Sequential
Answer & Explanation
Answer: Option [B]

_________ property can be used to copy, cut and paste from


any text box that has focus

[A] Active control


[B] ActiveX control
[C] Active DAO
[D] Active RDO
Answer & Explanation
Answer: Option [A

Any ________ typed in one text box can be cut, copied and
pasted in the other text box

[A] word
[B] text
[C] data
[D] label
Answer & Explanation
Answer: Option [B]

________ bugs are those that occur when we attempt to


create the program executable file (EXE) or run the object

[A] Error time


[B] Intermediate time
[C] Run time
[D] Compile time
Answer & Explanation
Answer: Option [D]

……… represents the immediate parent node for the new


node in a tree view control

[A] Image
[B] Relative
[C] Relationship
[D] Key
Answer & Explanation
Answer: Option [B]
………. control specifies the progress of an operation based
on some time limits

[A] Grid
[B] Progress bar
[C] Status bar
[D] None of these
Answer & Explanation
Answer: Option [B]

……… control specifies current status of the form

[A] Status bar


[B] Progress bar
[C] Grid
[D] None of these
Answer & Explanation
Answer: Option [A]

By using ……….. property of a progress bar, we can display


the progress of an operation

[A] Progress
[B] Interval
[C] Time
[D] Value
Answer & Explanation
Answer: Option [D]

………….. control is used to execute a set of programs


automatically at regular intervals without the interaction of
user

[A] File controls


[B] Timer
[C] Progress bar
[D] Scroll bar
Answer & Explanation
Answer: Option [B]

………. can act as a container for other controls.

[A] List box


[B] Image box
[C] Picture box
[D] Combo box
Answer & Explanation
Answer: Option [C]

By using ……… property of Drive list box we can access the selected
drive

[A] Drive
[B] File
[C] Path
[D] Pattern
Answer & Explanation
Answer: Option [A]

………. event occurs while the scroll box is moved by


dragging the mouse

[A] Change
[B] Mouse move
[C] Scroll
[D] None of these
Answer & Explanation
Answer: Option [C]

To insert a picture into a picturebox we can use ……….


method

[A] Load picture


[B] Load image
[C] Load
[D] None of these
Answer & Explanation
Answer: Option [A]

………….. is the property of a flexgrid to access the index of


current row

[A] Index
[B] Rowsel
[C] New index
[D] Row
Answer & Explanation
Answer: Option [D]

……………. is used to display the data in a tabular format on


the form

[A] Flexgrid
[B] Table
[C] List
[D] All of the above
Answer & Explanation
Answer: Option [A]

The ________in VB displays any required or optional


parameters for methods

[A] auto quick info


[B] auto decre info
[C] auto incre info
[D] optional info
Answer & Explanation
Answer: Option [B]
DHTML is based on the ________, which is the hierarchy of
web page elements

[A] document model object


[B] model document object
[C] document object model
[D] object document model
Answer & Explanation
Answer: Option [B]

_________ defines a line in the code window where VB


suspends execution of application

[A] Run Point


[B] Compile Point
[C] Break Point
[D] Error Point
Answer & Explanation
Answer: Option [C]

_________ returns a variant string containing a copy of a


specified string without leading spaces and trailing spaces

[A] Trim ( )
[B] Midtrim( )
[C] Rtrim( )
[D] Ltrim( )
Answer & Explanation
Answer: Option [A]

__________ returns a date for a specified year, month and


day

[A] DateOust( )
[B] DateInst( )
[C] DateDiff( )
[D] DateSerial( )
Answer & Explanation
Answer: Option [D]

________ returns an integer containing the specified part of a


given date

[A] DateInst( )
[B] DateDiff( )
[C] DatePart( )
[D] DateDiff( )
Answer & Explanation
Answer: Option [C]

Variables are used for storing values ___________

[A] variably
[B] constantly
[C] permanently
[D] temporarily
Answer & Explanation
Answer: Option [D]

VB encounters a new variable it assigns the default variable


type and value is called ___________ declaration

[A] internal
[B] external
[C] implicit
[D] explicit
Answer & Explanation
Answer: Option [C]

_________ statement removes the form from the display and


releases its memory

[A] Load
[B] Unload
[C] Hide
[D] Unhide
Answer & Explanation
Answer: Option [B]

The __________ and ________ properties should be set if the


user wants the label to properly display variable length lines
or varying numbers of lines

[A] autosize, wordwrap


[B] autoresize, wordart
[C] autosize, wordart
[D] autoresize, wordwrap
Answer & Explanation
Answer: Option [A]

If the user is interested in displaying multiple lines of text in


a TextBox control, set the ____________ property to true

[A] multi
[B] singleline
[C] single
[D] multiline
Answer & Explanation
Answer: Option [D]

One of the important method of a flexgrid control is ……..

[A] Remove
[B] Add
[C] AddItem
[D] All of the above
Answer & Explanation
Answer: Option [C]
…………. is the temporary buffer area which is used to store
data temporarily

[A] Rich text


[B] Clipboard
[C] Text
[D] Cursor
Answer & Explanation
Answer: Option [B]

The method which is used to clear a form control is……..

[A] Cls
[B] Null
[C] Clear
[D] Clr
Answer & Explanation
Answer: Option [A]

Date and Time are internally stores as _______ in Visual


Basic

[A] symbols
[B] characters
[C] numbers
[D] strings
Answer & Explanation
Answer: Option [C]

The ____________ function in VB retrieves the date and time

[A] date
[B] now
[C] datediff
[D] datenow
Answer & Explanation
Answer: Option [B]

The individual elements of an array are identified using an


_______

[A] index
[B] character
[C] value
[D] number
Answer & Explanation
Answer: Option [A]

_________ is named storage locations in memory, the value


of which does not change during program execution

[A] Dynamic
[B] Static
[C] Variable
[D] Constant
Answer & Explanation
Answer: Option [D]

Variables of different data types when combined as a single


variable to hold several relation informations are called a
__________

[A] user-undefined data type


[B] user-declared data type
[C] user-defined data type
[D] user-undeclared data type
Answer & Explanation
Answer: Option [C]

When we want to change the size of the array without losing


the previous data we have to use _______keyword with the
ReDim statement
[A] permanent
[B] dynamic
[C] static
[D] preserve
Answer & Explanation
Answer: Option [D]

A _________ variable is available to all the procedures in the


module

[A] object-level
[B] module-level
[C] class-level
[D] procedure-level
Answer & Explanation
Answer: Option [B]

The _______ displays a list of items from which a user can


select one

[A] labelbox
[B] textbox
[C] combobox
[D] listbox
Answer & Explanation
Answer: Option [D]

_________ is a control used to display message and enter


text

[A] TextBox
[B] ListBox
[C] combobox
[D] Labelbox
Answer & Explanation
Answer: Option [A]
______ control serves as a visual and functional container
for controls

[A] ListBox
[B] Combobox
[C] Frame
[D] Labelbox
Answer & Explanation
Answer: Option [C]

______ displays a text that the user cannot modify or interact


with

[A] Combo
[B] Combobox
[C] Label
[D] Text
Answer & Explanation
Answer: Option [A]

ComboBox contains a ________ and __________

[A] labelbox, textbox


[B] listbox, labelbox
[C] textbox, listbox
[D] listbox, optionbox
Answer & Explanation
Answer: Option [C]

A __________ control is used to create applications that


present information in rows and columns

[A] flexgrid
[B] flexline
[C] gridline
[D] gridflex
Answer & Explanation
Answer: Option [A]

_______ method sets the colour of an individual pixel

[A] RSet
[B] LSet
[C] SSet
[D] PSet
Answer & Explanation
Answer: Option [D]

___________ method paints graphics at arbitrary locations

[A] ImagePicture
[B] PaintPicture
[C] Image
[D] Picture
Answer & Explanation
Answer: Option [B]

A __________ array is a group of controls that share the


same name and type

[A] control
[B] local
[C] static
[D] fixed
Answer & Explanation
Answer: Option [A]

The ____________ is a commonly used control, which


enables the user to select a value by positioning it at the
desired locatione

[A] horizonalbar
[B] menubar
[C] verticalbar
[D] scrollbar
Answer & Explanation
Answer: Option [D]

Tooltips can be added to a button by setting a text to the


__________ property of the command button

[A] tooltip
[B] nametip
[C] menutip
[D] listtip
Answer & Explanation
Answer: Option [A]

The text color of a command button can be set using the


____________ property

[A] backcolor
[B] fillcolor
[C] forecolor
[D] listcolor
Answer & Explanation
Answer: Option [C]

A ___________ is a set of menu items on a menu that share


the same name and event procedure

[A] static array


[B] list array
[C] control array
[D] menu control array
Answer & Explanation
Answer: Option [D]
A ________menu is a floating menu that is displayed over a
form independent of the menu bar

[A] pop-down
[B] pop-right
[C] pop-up
[D] pop-left
Answer & Explanation
Answer: Option [C]

_______ boxes are used to display information to the user


and to prompt the user for the data needed to continue an
application

[A] Dialog
[B] Listbox
[C] Inputbox
[D] Msgbox
Answer & Explanation
Answer: Option [A]

A shape control is a visual element that contains several


_________shapes

[A] defined
[B] predefined
[C] lateral
[D] formlevel
Answer & Explanation
Answer: Option [B]

Child forms are displayed within the _________area of a MDI


Form at run time

[A] internal
[B] external
[C] limited
[D] unlimited
Answer & Explanation
Answer: Option [A]

The _________property of controls collection returns the


number of controls on the form

[A] numbercount
[B] linecount
[C] count
[D] countline
Answer & Explanation
Answer: Option [C]

________ method is used to draw and fill boxes

[A] Fill
[B] Draw
[C] Line
[D] Image
Answer & Explanation
Answer: Option [C]

The ________ and _______ properties specify the current cell


in a MSFlexGrid

[A] row, col


[B] row, cell
[C] row, rows
[D] col, cols
Answer & Explanation
Answer: Option [C]

A _________ method is used to draw a variety of circular and


elliptical shapes
[A] shape
[B] circle
[C] square
[D] line
Answer & Explanation
Answer: Option [B]

A _________dialog box does not allow the user to continue


with other applications unless it is closed or unloaded

[A] modal
[B] modalless
[C] modeless
[D] modalfull
Answer & Explanation
Answer: Option [A]

The _________ dialog box allows shifting of focus between


the dialog box and another form without closing the dialog
box

[A] modal
[B] modaladd
[C] modeless
[D] modalfull
Answer & Explanation
Answer: Option [C]

______ occurs when the user releases any mouse button

[A] MouseLeft
[B] MouseUp
[C] MouseRight
[D] MouseDown
Answer & Explanation
Answer: Option [B]
MSDN Stands for ________

[A] microsoft Dynamic network


[B] microsoft Dial netwrok
[C] microsoft domain network
[D] microsoft developer network
Answer & Explanation
Answer: Option [D]

The various properties in property window are arranged in


_____ order

[A] Alphabeticalk
[B] Sequential
[C] Binary
[D] Descending
Answer & Explanation
Answer: Option [A]

In date data type the _______ byte is require for storing data

[A] 10
[B] 6
[C] 8
[D] 2
Answer & Explanation
Answer: Option [C]

The ______ number of characters are allowed for naming the


variables

[A] 128
[B] 255
[C] 64
[D] 32
Answer & Explanation
Answer: Option [B]

Normally declared in the general section of the codes'


windows using the ____statement

[A] dim
[B] int
[C] str
[D] val
Answer & Explanation
Answer: Option [A]

______allows a procedure to be repeated as many times as


long as the processor could support

[A] leywrods
[B] reserved words
[C] data type
[D] looping
Answer & Explanation
Answer: Option [D]

_______indicates that the function is applicable to the whole


program

[A] local
[B] public
[C] private
[D] global
Answer & Explanation
Answer: Option [B]

_____ are the operations that an object can perform

[A] variables
[B] objects
[C] class
[D] methods
Answer & Explanation
Answer: Option [D]

Event-driven languages are ____

[A] FORTRAN based


[B] OOP
[C] Designed to make programming GUI easier
[D] Are used to write procedural languages
Answer & Explanation
Answer: Option [C]

Which of the following is not part of the IDE _____

[A] General window


[B] Properties window
[C] Form layout window
[D] Code editor window
Answer & Explanation
Answer: Option [A]

The application name always appears in the _____

[A] Code window


[B] Title bar
[C] Intermediate window
[D] Properties window
Answer & Explanation
Answer: Option [B]

n visual basic controls are also called as ______

[A] Code
[B] Part of the menus
[C] Objects
[D] Rules
Answer & Explanation
Answer: Option [C]

The location of the form on the desktop during execution is


determined by the ____

[A] Form Layout window


[B] Context Menu
[C] Project Explorer window
[D] Form Designer window
Answer & Explanation
Answer: Option [A]

Visual Basic forms are identified by a _____

[A] .for suffix


[B] .mak suffix
[C] .frm suffix
[D] A special icon
Answer & Explanation
Answer: Option [C]

The _____ control is used for checking the multiple option in


given list

[A] radio button


[B] check box
[C] list box
[D] text box
Answer & Explanation
Answer: Option [B]

You might also like