Visual Basic Objective Questions and Answers

1 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

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

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

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

Answer: Option [A]
7 The function procedures are ___________ by default.
A public
B private
C protected
D None of the above

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

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

Answer: Option [C]
10 In visual basic ______ is the extension to represent project file.
A .frm
B .vbp
C .cls
D .vb

Answer: Option [B]
Current Affairs

Useful Computer Science EBooks