Question: 01
In order to change the mouse pointer shape from glass to watch-glass, the property to be used is:


a.MousePointer
b.Picture
c.Menu
d.PointerStyle
e.Pointer
f.Cursor
g.CursorStyle
h.CursorShape


Question: 02
How can you keep the user from exiting a form by clicking the Close button?


a.Place code in the Terminate event
b.Place code in the Unload event
c.Place code in the QueryUnload event
d.This can only be done by using the Windows API
e.Place code in the Load event
f.Place code in the Deactivate event
g.None of the above


Question: 03
Which property of the ProgressBar determines how much of the bar is filled?


a.Min
b.Max
c.Value
d.CurrentVal
e.FillValue
f.Fill
g.BarComplete


Question: 04
Which property of the Err object returns the numeric value associated with the most recent runtime error?


a.Description
b.No
c.Number
d.Source
e.Errorcode
f.Num
g.Code


Question: 05
Which of the following is the only drag related event?


a.DragEnter
b.DragLeave
c.DragStart
d.DragStop
e.DragDrop
f.BeginDrag
g.EndDrag


Question: 06
Which of the following methods is used to inform an ActiveX control’s container that one of its properties has been modified?


a.PropertyChanged
b.CanPropertyChange
c.ModifyProperty
d.PropertyModify
e.PropertyChange
f.PropertyModified
g.PropertyChanges
h.ChangeProperty


Question: 07
Which line of code listed here can be used to create a string of fixed length:


a.Dim strFirstName as String
b.strFirstName * 255
c.strFirstName = 255
d.Dim strFirstName as String(255)
e.None of the above


Question: 08
How do you create a read only property in a form?


a.Create only a Property Set procedure
b.Create only a Property Get procedure
c.Create only a Property Let procedure
d.Create both a Property Get and Property Let procedure
e.Declare a public variable in the Declarations section of the form
f.Declare a private variable in the Declarations section of the form
g.Create both a Property Get and Property Set procedure


Question: 09
Which event procedure is called only if AutoRedraw property is set to false:


a.Form_GotFocus
b.Form_Paint
c.Form_Activate


Question: 10
What is the purpose of the Class Builder add-in in Visual Basic:


a.To add classes to the current project
b.To change the current project to a class based project
c.To create new classes and define their properties, methods & events
d.To draw out how the application model will look


Question: 11
Which object is used for error handling?


a.Error
b.Err
c.OnError
d.App
e.Application
f.AppErr
g.Exception


Question: 12
Only Controls with a ________ property such as Picturebox, Toolbox, Statusbar etc. can be placed on an MDI form:


a.Showtips
b.Negotiate
c.Align
d.BorderStyle = 0
e.Visible
f.Locked
g.Enabled
h.Tag


Question: 13
What you must do before you make calls to an ActiveX DLL project in the same Project Group?


a.Compile the DLL
b.Check the DLL off in your project’s Reference List
c.Make sure the DLL is the Startup Project
d.Ensure that a Standard Exe form is included and is made the Startup Form.


Question: 14
Message Boxes can hold a maximum of _______ characters.


a.256
b.512
c.1024
d.2046
e.4092
f.5000
g.10000
h.No limit


Question: 15
Which form event would you use to activate a pop-up menu when the user clicks the right mouse button?


a.Click
b.MouseMove
c.DragOver
d.DragDrop
e.MouseUp
f.Mouse-popup
g.PopupMenu
h.ShowMenu


Question: 16
Visual Basic fires the _______ event everytime a part of the form is newly exposed.


a.Load
b.Activate
c.Paint
d.Show
e.Initialize


Question: 17
Which parameter of the Execute method of the Connection object returns the number of records that the operation affected?


a.RecordsAffected
b.RowsAffected
c.RecordsUpdated
d.RowsOperated
e.RecordsOperated


Question: 18
Procedures declared in a _____ are local whereas procedures declared in a ______ are  available to the whole application.


a.Form window, standard or code module
b.Project window, view code window
c.Class module, code module


Question: 19
Which function or method will you use to get a count of the maximum index limit of an array?


a.UBound function
b.LBound function
c.Substr function
d.Bound Control method
e.Limit method
f.UpperLimit method
g.Upper method
h.MaxArray function


Question: 20
The ______ property is used to show Tool Tips or Help Balloons when the mouse rests on the object:


a.ToolTipText
b.Tag
c.Dragmode
d.ShowTips
e.Help
f.Tip
g.ShowHelp
h.Tab


Question: 21
The Kill command in Visual Basic is used for:


a.Stopping the current process
b.Deleting files
c.Terminating the application
d.Stopping the current thread
e.Debugging the application
f.Error handling
g.None of the above


Question: 22
Name the only property supported by a collection?


a.Name
b.Index
c.Count
d.Type
e.Value
f.Add
g.Remove
h.None of the above


Question: 23
Which of the following approaches to data modifications is the least efficient?


a.Updating through a cursor using a recordset
b.A stored procedure
c.An update statement prepared and executed
d.An update statement executed directly
e.Updating through a data control


Question: 24
Variables that allow sharing of values across event procedures are called:


a.Form level variable
b.Object variable
c.Module level variable


Question: 25
You want to display the code and the description of an error. What would be the correct syntax?


a.Msgbox err.no & err.text
b.Msgbox err.number & err.text
c.Msgbox error.number & error.text
d.Msgbox error.number & error.description
e.Msgbox err.number & err.description
f.Msgbox err.num & err.description
g.Msgbox err.num & err.text
h.None of the above


Question: 26
A prepared statement is:


a.Query text cached on the client
b.Query text cached on the server
c.Compiled query cached on the client
d.Compiled query cached on the server
e.A stored procedure
f.None of the above


Question: 27
What does the forms collection contain?


a.A list of all forms in a project
b.A list of all hidden forms
c.A list of all currently loaded forms
d.A list of all visible forms
e.All the child forms of an MDI application.


Question: 28
Which of the following ADO recordset types provides the greatest degree of concurrency?


a.Static
b.Forward-only
c.Dynamic
d.Keyset
e.Read only
f.Keyset and Dynamic


Question: 29
Which of the following statements is incorrect regarding toolbars?


a.There can be only one toolbar on a form
b.Toolbars can be positioned anywhere on the form
c.Toolbars can be customized by the user
d.Toolbar buttons can display images
e.Toolbar buttons can display text
f.Toolbars can have both images and buttons


Question: 30
Which of the following will perform a direct execution of a Command object?


a.The Execute method
b.The Prepare method
c.The ExecDirect method
d.The Open method
e.The Exec method
f.The ExecProcedure method
g.None of the above


Question: 31
An ADO dynamic property is:


a.A property that changes value at runtime
b.A value defined by the user
c.A value defined by the operating system
d.A property that dynamically resizes as needed to accommodate database parameters
e.A property implemented by the OLE DB service provider


Question: 32
Which event occurs only once in the entire life cycle of an ActiveX control?


a.Initialize
b.Resize
c.Terminate
d.WriteProperties
e.InitProperties
f.Activate
g.None of the above


Question: 33
In order to enable the DBGridControl or the MSFlexGrid Control to display the contents of a table or query, you need to set only the ______ property:


a.DataSource
b.Connection
c.RecordSource
d.TableType
e.RecordType
f.DataType


Question: 34
Which of the following is the valid stepping option?


a.Step Around
b.Step Beyond
c.Step Over
d.Step Behind
e.Step forward
f.Step Into
g.Step Out


Question: 35
Visual Basic displays information depending upon the current value of two properties of the form, called as:


a.CurrentX and CurrentY
b.ScaleLeft and ScaleTop
c.ScaleHeight and ScaleTop
d.x and y
e.TopX and TopY
f.LeftX and LeftY


Question: 36
Which of the following statements is capable of abandoning a series of modifications made to a recordset locked with a BatchOptimistic lock?


a.CancelUpdate
b.CancelBatch
c.CancelBatchUpdate
d.AbandonBatch
e.AbandonBatchUpdate
f.Rollbackupdate
g.Rollbackbatch
h.None of the above


Question: 37
In order to overlap the controls (say a command button) during design time, we use the ‘Send To Back’ or ‘Bring To Front’ option from the Edit menu. To change it dynamically (i.e. during program execution) we need to change:


a.Background color property
b.Caption property
c.ZOrder property
d.AutoRedraw property
e.SendtoBack property
f.BringtoFront property
g.Hide property
h.Show property


Question: 38
How do you make a control gray and inaccessible in VB?


a.Set enabled to false
b.Set disabled to true
c.Color the control gray
d.Hide the control
e.Set the locked property to true


Question: 39
Which of the following cannot be included in the Open method of the recordset?


a.Cursor Type
b.User Name
c.Active Connection
d.CursorLocation
e.LockType
f.Source


Question: 40
The Load & Activate events are associated with:


a.All controls
b.Form
c.Command button
d.Image box
e.TreeView control
f.ListView control
g.DataGrid
h.ComboBox

Don't Miss A Single Updates

Remember to check your email account to confirm your subscription.

Blogger
Disqus
Post a comment ➜

No Comment