97
79.6k

250+ Visual Programming Solved MCQs

These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Bachelor of Science in Computer Science (BSc CS) .

151.

A _____ object represents a connection to a remote database used as a data source for the associated commands.

A. connection
B. RDO
C. ADO
D. fixed
Answer» A. connection
152.

______control displays data that is calculated at runtime, using built-in functions, as the report is generated.

A. Caption
B. Text
C. Connection
D. Function
Answer» D. Function
153.

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

A. value.
B. caption.
C. text.
D. name.
Answer» B. caption.
154.

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
Answer» A. -32,768 to 32,767
155.

_____occurs when the user presses any mouse button.

A. MouseUp
B. MouseDown
C. MouseRight
D. MouseLeft
Answer» B. MouseDown
156.

Each menu control array element is identified by a unique index value, indicated in the _________property box on the menu editor.

A. number
B. index
C. array
D. value
Answer» B. index
157.

________property of an Image control is used to automatically resize a picture and place it inside the control.

A. Stretch
B. Image
C. Resize
D. Control
Answer» A. Stretch
158.

_________ is the process of clicking the mouse button in a control and moving the mouse while holding down the mouse button.

A. Dropping
B. Cutting
C. Moving
D. Dragging
Answer» D. Dragging
159.

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

A. DateDiff( )
B. DateIn( )
C. DateFix( )
D. DiffDate( )
Answer» A. DateDiff( )
160.

_____ array size always remains the same.

A. Fixed-size
B. Dynamic
C. Preserve
D. Multidimension
Answer» A. Fixed-size
161.

The ____keyword is used when we want Visual Basic to create a new instance of the original object.

A. constructor
B. destructor
C. preprocessor
D. intermediate
Answer» B. destructor
162.

______ array size can be changed at run-time.

A. Preserve
B. Multidimension
C. Fixed-size
D. Dynamic array
Answer» D. Dynamic array
163.

A specific object can be referenced by an object variable of that object type using the _______keyword.

A. generic
B. static
C. dynamic
D. ungeneric
Answer» A. generic
164.

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

A. old
B. new
C. memory
D. object
Answer» B. new
165.

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

A. reset
B. set
C. static
D. dynamic
Answer» B. set
166.

_______can be built by adding custom properties to a Form and then they can be used as templates for new objects.

A. Objects
B. Controls
C. Tools
D. Classes
Answer» D. Classes
167.

Class modules have two events ___ and ___.

A. initialize, terminate
B. initialize, interrupt
C. terminate, interrupt
D. interrupt, exception
Answer» A. initialize, terminate
168.

The ________method is used to read a value of a property of control from container form file.

A. ReadProperty
B. WriteProperty
C. TextProperty
D. ScanProperty
Answer» A. ReadProperty
169.

An ActiveX EXE, otherwise called as an ____server

A. inprocess
B. out of process
C. remote
D. active
Answer» B. out of process
170.

Hyper link is a web based object that is used to navigate to another document using the _______method.

A. Navigate out
B. Navigate to
C. Navigate set
D. Navigate in
Answer» B. Navigate to
171.

An _______ is an object that we place on a form to enable or enhance a users interaction with an application.

A. ActiveX control
B. Module
C. Procedure
D. Control
Answer» A. ActiveX control
172.

The ________ control is used to create a hierarchy that shows at least 2 or more levels of a database.

A. form view
B. tool view
C. level view
D. tree view
Answer» D. tree view
173.

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. frame bar
B. status bar
C. list bar
D. tool bar
Answer» B. status bar
174.

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

A. tool strip
B. window strip
C. control strip
D. tab strip
Answer» D. tab strip
175.

The changes are saved in a transaction using _________ operation.

A. rollback
B. truncate
C. commit
D. store
Answer» C. commit
176.

________ allows us to build a query in a graphical user interface without having to learn SQL.

A. Query designer
B. Form designer
C. Report designer
D. Table designer
Answer» A. Query designer
177.

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

A. Project
B. File
C. Edit
D. View
Answer» A. Project
178.

A web browser control can accept ____________ targets by default.

A. select and deselect shortcuts
B. drag and drop shortcuts
C. cut and paste shortcuts
D. copy and paste shortcuts
Answer» B. drag and drop shortcuts
179.

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» A. password field
180.

The _______control is used for accepting multiple lines of standard text with a scroll bar attached.

A. frame area
B. text area
C. multiline area
D. label area
Answer» B. text area
181.

The _________ object to save a query definition in our application.

A. text
B. label
C. save
D. command
Answer» D. command
182.

The _________, commonly known as stored procedures, perform an action on the database without returning a record set.

A. action query
B. select query
C. rollback query
D. commit query
Answer» A. action query
183.

The _______ method fills the combo box item.

A. add item
B. addition
C. list
D. addlist
Answer» A. add item
184.

The ________ property of the file list box is updated according to the selected file type.

A. fill
B. pattern
C. list
D. select
Answer» B. pattern
185.

A ______ access file is like a database.

A. random
B. sequential
C. dynamic
D. static
Answer» A. random
186.

________ files are accessed byte by byte.

A. Sequential
B. Dynamic
C. Binary
D. Random
Answer» C. Binary
187.

_________ 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» A. Active control
188.

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

A. label
B. data
C. text
D. word
Answer» C. text
189.

________ bugs are those that occur when we attempt to create the program executable file (EXE) or run the object.

A. Run time
B. Compile time
C. Intermediate time
D. Error time
Answer» B. Compile time
190.

The ________in VB displays any required or optional parameters for methods.

A. optional info
B. auto incre info
C. auto decre info
D. auto quick info
Answer» C. auto decre info
191.

DHTML is based on the ________, which is the hierarchy of web page elements.

A. object document model
B. document object model
C. model document object
D. document model object
Answer» B. document object model
192.

_________ defines a line in the code window where VB suspends execution of application.

A. ErrorPoint
B. BreakPoint
C. CompilePoint
D. RunPoint
Answer» B. BreakPoint
193.

__________ returns a variant string containing a copy of a specified string without leading spaces and trailing spaces.

A. Ltrim( )
B. Rtrim( )
C. Midtrim( )
D. Trim ( )
Answer» D. Trim ( )
194.

__________ returns a date for a specified year, month and day.

A. DateSerial( )
B. DateDiff( )
C. DateInst( )
D. DateOust( )
Answer» A. DateSerial( )
195.

_________ returns an integer containing the specified part of a given date.

A. DateDiff( )
B. DatePart( )
C. DateDiff( )
D. DateInst( )
Answer» B. DatePart( )
196.

Variables are used for storing values ___________.

A. temporarily
B. permanently
C. constantly
D. variably
Answer» A. temporarily
197.

VB encounters a new variable it assigns the default variable type and value is called ___________ declaration.

A. explicit
B. implicit
C. external
D. internal
Answer» B. implicit
198.

_________ statement removes the form from the display and releases its memory.

A. Unload
B. Load
C. Hide
D. Unhide
Answer» A. Unload
199.

The __________ and ________ properties should be set if the user wants the label to properly display variable length lines or varying numbers of lines.

A. autoresize, wordwrap
B. autosize, wordart
C. autoresize, wordart
D. autosize, wordwrap
Answer» D. autosize, wordwrap
200.

If the user is interested in displaying multiple lines of text in a TextBox control, set the ____________ property to true.

A. multiline
B. singleline
C. single
D. multi
Answer» A. multiline

Done Studing? Take A Test.

Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.