VISUAL BASIC MCQ CH NO. 1 INTRODUCTION
1. Event-driven languages are:
(a) FORTRAN
based
(b) Are
used to write procedural languages
(c) OOP
(d)
Designed
to make programming GUI easier
2. IDE is:
(a) Independent
Development Enterprise
(b) A
development environment for machine language
(c) A
software project management tool
(d)
An
Integrated Development Environment for Visual Basic
3. Which of the following is not part of the IDE:
(a) Code
editor window
(b) Properties
window
(c) Form
layout window
(d)
General
window
4. The application name always appears in the:
(a) Properties
window
(b) Intermediate
window
(c) Code
window
(d)
Title
bar
5. The color of a button is:
(a)
One
of its properties
(b) Not
updateable
(c) Defined
in the project
(d) Defined
in the Intermediate window
6. Code is:
(a) Updateable
in the form editor
(b)
Instructions
(c) Seldom
used
(d) An
object
7. Controls are:
(a) Code
(b) Part
of the menus
(c) Rules
(d)
Objects
8. In the IDE, which of following is used to design the layout of
an application?
(a)
Form
Designer window
(b) Project
Explorer window
(c) Context
Menu
(d) Form
Layout window
9. The location of the form on the desktop during execution is
determined by the:
(a) Form
Designer window
(b) Project
Explorer window
(c) Context
Menu
(d)
Form
Layout window
10. The Object Browser:
(a) Displays
the command buttons and textboxes, etc.
(b) Shows
frequently used shortcuts as objects
(c) Is
a Context Menu
(d)
Displays
the object libraries and their combinations of data and code
11. The location of the form on the desktop during execution is
determined by the:
(a) Form
Designer window
(b) Project
Explorer window
(c) Context
Menu
(d)
Form
Layout window
12. Visual Basic projects are identified by a:
(a) “.vbp”
suffix
(b) “.mak”
suffix
(c) “.vbg”
suffix
(d)
All
the above
13. Visual Basic forms are identified by a:
(a)
“.frm”
suffix
(b) “.mak”
suffix
(c) “.for”
suffix
(d) A
special icon
14. To run an application in Visual Basic:
(a)
Click
on the start button (blue arrow)
(b) Use
the File Menu
(c) Use
the Project Menu to select Run
(d) None
of the above
15. To exit Visual Basic:
(a)
Click
Alt-Q
(b) Use
the File Menu to select Quit
(c) Use
the Window Menu to select Exit
(d) Click
on the diskette icon
16. The reference library of Visual Basic books is called:
(a)
MSDN
Library
(b) Help
Library
(c) Contents
(d)
Topic pane
17. ______ is one of the common properties of the control.
(a) AutoSize
(b) Value
(c)
Appearance
(d) MaxLength
18. Visible property sets two Boolean values
(a)
True
(b) False
19. ________ property is used to display text when you keep your
mouse cursor on that control.
(a) Enabled
(b) Text
(c)
ToolTipText
(d) Mouse
pointer
20. ________ is the common event for almost all the controls.
(e) KeyPress
(f) Click
(g) Timer
(h) Scroll
21. ________event occurs when user presses any key.
(a) KeyPress
(b)
Keydown
(c) Keyup
(d) Mousemove
22. _________event occurs when user clicks a mousekey
a. MouseMove
b. MouseUp
c. MouseDown
d.KeyPress
23. _________ event occurs when mouse moves over any control.
a. MouseMove
b. MouseUp
c. MouseDown
d.KeyPress
24. What is the
function of this button.
a. Run the project
b. View the
form
c. Height of
window
d. View the code
25. What is the name of the bar where you
would see a Categorized view or a Alphabetic View.
a. Project Properties Window
b. Tool Bar
c. Tool Box
window
d. Project
explorer
26. What is
this button used for.
a. Stopping other
programs taking inputs
b. Terminating the application
c. Drawing 3d
objects
d. Check the
application
27. What is
tool tip text
a. Tool tip
text is a tip of the day
b. Tool tip text does not exist
c. Tool tip
text is the same as the caption
d. Tool tip text is shown when the mouse is
held over a object for a period of time
28. What is the
purpose of the name function in all controls.
a. So things
can be sorted by type
b. So they can be called at runtime
c. The name
functions does not exist
d. Not too sure
29. In txtName.Text
a. The property is txtName
b. the
property is Text
c. the object is Text
d. Both a and c is correct
30. You are designing a
form and it will be necessary for the user to type in their name. You should use a _____________ for inputting
the user’s name.
a. Textbox
b.
Label
c.
Commandbutton
d.
check box
31. The statement to declare a local variable called Index
that will store whole numbers is:
a. Dim index as WHOLE
b. Dim strindex as String
c. Dim index as
Integer
d. Dim integer as index
32. The reserved Visual Basic word Dim is short for dimension, which means
a. declaration
b. size
c. storage location
d. None of these
33. Which of the following is a relational operator?
a. AND
b. <
c. +
d. &
34. With the logical
operator _______ , both conditions must be
for the entire condition to evaluate .
a. Or
b. Not
c. And
d. =
35.
The text property of a text box behaves like a?
a. string
b. numeric
c. variant
d. function
36. A textbox is an example of which of the
following?
a. Property
b. Control
c. Method
d. Event
37.
How many bytes of memory will the number 50000 consume if it is declared as
a
variant?
a. 13
b. 14
c. 15
d. 16
38. When
you write a Visual Basic program, you follow a three-step process which
should begin with:?
a. Setting the properties
b. Codding all the remark statement
c. Defining the user
Interface
d. Declaring the variables
39. The code that is used
in a sub procedure to stop execution of a program is:?
a. Exit
b. End with
c. End
d. End Sub
40. If you encounter a
run-time error or you pause the program execution, you are in:?
a. compile time
b. break time
c. run time
d. design time
Thanks jatin.... very good help.
ReplyDeleteI need more mcq on VB for topic wise, can u plz provide source ??
Thank u so much Jatin dear
ReplyDeletewww.etechtrick.blogspot.com
ReplyDeleteThanx man, God bless u.
ReplyDeleteWhere is answer
ReplyDeletehi
ReplyDeleteI'm free Fire lover
꧁▪ RคᎥនтαʀ ࿐