MCQ 2
MCQ 2
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]
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]
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]
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]
74: …………. control is used to display text, but user cannot change it
directly
A Textbox
B Labelbox
C Listbox
D Commandbutton
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]
33: A disabled menu item does not appear in the ____ bar
A menu
B standard
C status
D title
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]
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]
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]
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]
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]
In Visual basic more than one child _____ is allowed to add in project
A form
B window
C property
D codings
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
……. property designates the text appearing in the form’s title bar
A Text
B Name
C Caption
D None of thses
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
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
Among the events in VB, the Load event is associated with _____
A form
B text box
C label
D command button
The ____ key is used as control key on moving around the form without
mouse
A Spacebar
B enter
C shift
D tab
In command button the _____ property is used to change the label value
for any content
A name
B font
C caption
D height
In visual basic the _____ file consist of complete coding and form
design
A project
B form
C class
D module
Like text box, _____ is another tool used for display / output the
information
A input box
B label
C frame
D message box
_____ property is used to hide the tool in run time by setting value as
false
A visible
B enabled
C hide
D delete
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
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
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]
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
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
The right hand drop down list box in the coding window is called _____
list box
A procedure
B event
C task
D content
The ____ shortcut is used to get the QuickInfo option in visual basic
A Ctrl + Q
B Ctrl + Z
C Ctrl + I
D Ctrl + F
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
…………. 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 A
In data type the ____ prefix used to represent the Boolean data
A bty
B bct
C bln
D bcl
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
To open the property window for usage ____ shortcut key is used
A F4
B F5
C F2
D F3
In visual basic form, the caption property content will reflect in ____
area
A status
B work
C title
D right
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 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
In command button, the ____ symbol is used to make the button with
shortcut key access
A%
B&
C#
D@
____ property is used to set the flow of control in between the multiple
controls
A Index
B Tab Value
C Tab Index
D Value
……..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
Question
…….. is a Microsoft product for windows platform
A Jet database engine
B ODBC
C OLEDB
D None of these
………… can access data from relational and non relational databases
A Jet database engine
B OLEDB
C ODBC
D None of these
In the following logic, the condition is check at the end of the loop
A do_While
B While
C For
D If.then
___ is the keyword represents the end of the for loop in Visual basic
A next
B stop
C end
D close
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
In list box concept ____ function is used to insert item to the list
A addlist()
B additem()
C adddata()
D addcount()
___ function is used to delete all the data items be completely removed
A listremove()
B list()
C listclear()
D listdel()
The _______ event occurs when the form is closed by the user
A unload
B double click
C load
D click
The ________ box displays the name of the selected object associated
with the form
A checkbox
B object
C list
D combo
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
…………… 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
…………. 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
A Control
B Form
C Object
D Class
View Answer
Answer & Explanation
Answer: Option [C]
A Control
B Form
C Object
D Class
View Answer
A Initialize
B Click
C Got focus
D None of these
View Answer
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
A CompStr
B StrComp
C Strinv
D String
View Answer
A datediff
B dateinter
C diffdate
D dateiff
View Answer
A length
B len
C strlen
D lenstr
View Answer
A InStr
B StrIn
C StrVar
D VarStr
View Answer
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
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
A unload object
B load object
C form load
D form unload
View Answer
A Form Unload
B Form Load
C Load Object
D Unload Object
View Answer
A Horizontal Bar
B Separator Bar
C Vertical Bar
D Split Bar
View Answer
A text
B caption
C unchecked
D checked
View Answer
A Third
B Second
C First
D Fourth
View Answer
________ event occurs when the user presses any mouse button
A MouseDown
B Mouse Left
C Mouse Right
D Mouse Up
View Answer
A Click
B Got focus
C Initialize
D None of these
View Answer
A Initialize
B Terminate
C Got focus
D None of these
View Answer
A Allocate
B Create
C New
D None of these
View Answer
A Collection
B Form
C Array
D None of these
View Answer
A Create
B New
C Allocate
D None of these
View Answer
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]
A File
B Pattern
C Drive
D None of these
View Answer
A Change
B Click
C Timer
D Got focus
View Answer
A New index
B Index
C Sel index
D List index
View Answer
A List box
B Combo box
C Option button
D Scroll bar
View Answer
________ argument gives the status of the SHIFT, CTRL and ALT keys
A Second
B First
C Third
D Fourth
View Answer
A input box
B msgbox
C dialog box
D listbox
View Answer
______ 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
A Declared variable
B Image
C Text
D Undeclared variable
View Answer
A Change
B Resize
C Size
D Fixed
View Answer
View Answer
A Arrange, Cascade
B Arrange, VbFill
C Arrange, VbCascade
D Arrange, VbUnfill
View Answer
A row, column
B row, rows
C column, column
D row, line
View Answer
A Column height
B Column
C Row
D Row height
View Answer
________ kinds of rows and columns are created in the Ms Flex Grid
control
A Two
B One
C Three
D Four
View Answer
A The system
B User’s action
C The program itself
D All of the above
View Answer
A DLL
B File systems
C Package and deployment wizard
D None of these
View Answer
A CBA
B CAB
C PCB
D None of these
View Answer
A DLL
B File systems
C Package and deployment wizard
D None of these
View Answer
A Report
B Wizard
C Data control
D Data bound control
View Answer
A Table type
B Dynaset
C Snapshot
D All of the above
View Answer
A Server Architecture
B Client Architecture
C Client/Server Architecture
D Network
View Answer
A DAO
B RDO
C DOA
D ADO
View Answer
A Select
B Unfixed
C Fixed
D Action
View Answer
A OpenDatabase
B CreateDatabase
C SelectDatabase
D FixedDatabase
View Answer
A Microsoft RDO
B Microsoft Jet Database Engine
C Microsoft ADO
D Microsoft DAO
View Answer
A exection
B flow
C task
D event
View Answer
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
_____ of the query designer interface displays the input sources for
querying
A Diagram
B Select
C Image
D Result
View Answer
A RDO
B ADO
C connection
D fixed
View Answer
A name
B text
C caption
D value
View Answer
A Table type
B Dynaset
C Snapshot
D All of the above
View Answer
A Table type
B Snapshot
C Dynaset
D All of the above
View Answer
A EOF
B BOF
C File
D Cursor
View Answer
A Data hiding
B Encapsulation
C Abstraction
D None of these
View Answer
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
A Abstraction
B Reliability
C Reusability
D None of these
View Answer
A Scroll
B Value
C Change
D None of these
View Answer
…….. event occurs when the user presses a key from the keyboard
A Keypress
B Keydown
C Keyup
D All of the above
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
A Load
B Got focus
C Change
D None of these
View Answer
A Click
B Got focus
C Load
D Change
View Answer
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
A MouseUp
B MouseLeft
C MouseDown
D MouseRight
View Answer
A index
B array
C value
D number
View Answer
A Resize
B Stretch
C Image
D Control
View Answer
A Dragging
B Moving
C Cutting
D Dropping
View Answer
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
A destructor
B preprocessor
C intermediate
D constructor
View Answer
A ungeneric
B dynamic
C static
D generic
View Answer
A old
B memory
C object
D new
View Answer
A dynamic
B static
C set
D reset
View Answer
A Classes
B Tools
C Controls
D Objects
View Answer
A Redim
B Preserve
C Dim
D Static
View Answer
A Event
B General
C Sub
D Function
View Answer
A Initialize
B Activate
C Terminate
D All of the above
View Answer
Answer & Explanation
Answer: Option [C
A Value
B Reference
C Object
D None of these
View Answer
A Find
B Move
C Add
D None of these
View Answer
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
A Exit Form
B Exit Sub
C Exit For
D Exit Do
View Answer
A IsArithmetic
B IsNumeric
C IsString
D IsNotString
View Answer
A 3
B 1
C 2
D 0
View Answer
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
A initialize, terminate
B initialize, interrupt
C terminate, interrupt
D interrupt, exception
View Answer
A ScanProperty
B TextProperty
C WriteProperty
D ReadProperty
View Answer
A inprocess
B remote
C out of process
D active
View Answer
A Navigate out
B Navigate set
C Navigate in
D Navigate to
View Answer
A Module
B ActiveX control
C Procedure
D Control
View Answer
A tree view
B level view
C tool view
D form view
View Answer
A list bar
B tool bar
C frame bar
D status bar
View Answer
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
A rollback
B commit
C truncate
D store
View Answer
A Table designer
B Form designer
C Report designer
D Query designer
View Answer
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
[A] CheckOn
[B] CheckMark
[C] Checked
[D] Check
Answer & Explanation
Answer: Option [C]
[A] ZoomDialog
[B] OpenDialog
[C] FontDialog
[D] ColorDialog
Answer & Explanation
Answer: Option [A]
[A] Table
[B] Record
[C] Field
[D] Both A and B
Answer & Explanation
Answer: Option [C]
[A] Table
[B] Record
[C] Field
[D] Both a and b
Answer & Explanation
Answer: Option [B]
Q.
[A] Addnode
[B] Add
[C] Additem
[D] None of these
Answer & Explanation
Answer: Option [B]
[A] command
[B] save
[C] label
[D] text
Answer & Explanation
Answer: Option [A]
[A] select
[B] list
[C] pattern
[D] fill
Answer & Explanation
Answer: Option [C]
[A] static
[B] dynamic
[C] sequential
[D] random
Answer & Explanation
Answer: Option [D]
[A] Random
[B] Binary
[C] Dynamic
[D] Sequential
Answer & Explanation
Answer: Option [B]
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]
[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]
[A] Progress
[B] Interval
[C] Time
[D] Value
Answer & Explanation
Answer: Option [D]
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]
[A] Change
[B] Mouse move
[C] Scroll
[D] None of these
Answer & Explanation
Answer: Option [C]
[A] Index
[B] Rowsel
[C] New index
[D] Row
Answer & Explanation
Answer: Option [D]
[A] Flexgrid
[B] Table
[C] List
[D] All of the above
Answer & Explanation
Answer: Option [A]
[A] Trim ( )
[B] Midtrim( )
[C] Rtrim( )
[D] Ltrim( )
Answer & Explanation
Answer: Option [A]
[A] DateOust( )
[B] DateInst( )
[C] DateDiff( )
[D] DateSerial( )
Answer & Explanation
Answer: Option [D]
[A] DateInst( )
[B] DateDiff( )
[C] DatePart( )
[D] DateDiff( )
Answer & Explanation
Answer: Option [C]
[A] variably
[B] constantly
[C] permanently
[D] temporarily
Answer & Explanation
Answer: Option [D]
[A] internal
[B] external
[C] implicit
[D] explicit
Answer & Explanation
Answer: Option [C]
[A] Load
[B] Unload
[C] Hide
[D] Unhide
Answer & Explanation
Answer: Option [B]
[A] multi
[B] singleline
[C] single
[D] multiline
Answer & Explanation
Answer: Option [D]
[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] Cls
[B] Null
[C] Clear
[D] Clr
Answer & Explanation
Answer: Option [A]
[A] symbols
[B] characters
[C] numbers
[D] strings
Answer & Explanation
Answer: Option [C]
[A] date
[B] now
[C] datediff
[D] datenow
Answer & Explanation
Answer: Option [B]
[A] index
[B] character
[C] value
[D] number
Answer & Explanation
Answer: Option [A]
[A] Dynamic
[B] Static
[C] Variable
[D] Constant
Answer & Explanation
Answer: Option [D]
[A] object-level
[B] module-level
[C] class-level
[D] procedure-level
Answer & Explanation
Answer: Option [B]
[A] labelbox
[B] textbox
[C] combobox
[D] listbox
Answer & Explanation
Answer: Option [D]
[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]
[A] Combo
[B] Combobox
[C] Label
[D] Text
Answer & Explanation
Answer: Option [A]
[A] flexgrid
[B] flexline
[C] gridline
[D] gridflex
Answer & Explanation
Answer: Option [A]
[A] RSet
[B] LSet
[C] SSet
[D] PSet
Answer & Explanation
Answer: Option [D]
[A] ImagePicture
[B] PaintPicture
[C] Image
[D] Picture
Answer & Explanation
Answer: Option [B]
[A] control
[B] local
[C] static
[D] fixed
Answer & Explanation
Answer: Option [A]
[A] horizonalbar
[B] menubar
[C] verticalbar
[D] scrollbar
Answer & Explanation
Answer: Option [D]
[A] tooltip
[B] nametip
[C] menutip
[D] listtip
Answer & Explanation
Answer: Option [A]
[A] backcolor
[B] fillcolor
[C] forecolor
[D] listcolor
Answer & Explanation
Answer: Option [C]
[A] pop-down
[B] pop-right
[C] pop-up
[D] pop-left
Answer & Explanation
Answer: Option [C]
[A] Dialog
[B] Listbox
[C] Inputbox
[D] Msgbox
Answer & Explanation
Answer: Option [A]
[A] defined
[B] predefined
[C] lateral
[D] formlevel
Answer & Explanation
Answer: Option [B]
[A] internal
[B] external
[C] limited
[D] unlimited
Answer & Explanation
Answer: Option [A]
[A] numbercount
[B] linecount
[C] count
[D] countline
Answer & Explanation
Answer: Option [C]
[A] Fill
[B] Draw
[C] Line
[D] Image
Answer & Explanation
Answer: Option [C]
[A] modal
[B] modalless
[C] modeless
[D] modalfull
Answer & Explanation
Answer: Option [A]
[A] modal
[B] modaladd
[C] modeless
[D] modalfull
Answer & Explanation
Answer: Option [C]
[A] MouseLeft
[B] MouseUp
[C] MouseRight
[D] MouseDown
Answer & Explanation
Answer: Option [B]
MSDN Stands for ________
[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]
[A] 128
[B] 255
[C] 64
[D] 32
Answer & Explanation
Answer: Option [B]
[A] dim
[B] int
[C] str
[D] val
Answer & Explanation
Answer: Option [A]
[A] leywrods
[B] reserved words
[C] data type
[D] looping
Answer & Explanation
Answer: Option [D]
[A] local
[B] public
[C] private
[D] global
Answer & Explanation
Answer: Option [B]
[A] variables
[B] objects
[C] class
[D] methods
Answer & Explanation
Answer: Option [D]
[A] Code
[B] Part of the menus
[C] Objects
[D] Rules
Answer & Explanation
Answer: Option [C]