R4RIN
MCQS
VB.Net MCQ Quiz Hub
VB NET MCQ SET 1
Choose a topic to test your knowledge and improve your VB.Net skills
1. Visual Basic is a tool that allows you to develop application in __________
Real time
Graphical User Interface
Character User Interface
None Of These
2. _________ is used for finding out about objects, properties and methods.
Form layout window
Code editor window
Object browser
None of the above
3. In Visual Basic, a variable name cannot be more than __________ characters.
255
300
355
400
4. __________ function is used to return a copy of a string without leading spaces.
Rtrim
Ltrim
Trim
All of the above
5. The variables that does not change the value during execution of program is __________
Numeric
String
Constant
None of the above
6. ___________ is a method which moves the focus to the specified control or form.
Setfocus
Lostfocus
Gotfocus
None of these
7. The function procedures are ___________ by default.
public
private
protected
None of the above
8. __________ is a data type that can be used to declare a text of maximum 10 million characters.
Date
Ulong
Numeric
String
9. Variables are named storage locations in memory, the value of which does not change during program ___________
debug
design
execution
All of the above
10. In visual basic ______ is the extension to represent project file.
frm
.vbp
.cls
.vb
11. _________ is used for finding out about objects, properties and methods.
Form layout window
Code editor window
Object browser
None of these
12. The default property for a text box control is __________
Text
Enable
Multiline
Password char
13. __________ is a collection of files.
Class
Group
Project
All of the above
14. __________ is a collection of files.
Class
Group
Project
All of the above
15. The method, which loads the form into memory and displays it on screen
Load
Show
Display
All of these
16. The ________ object is a stored query definition, which is a precompiled SQL statement.
QueryFed
QueryDif
QueryFix
QueryDef
17. ________ function returns the intervals between two dates in terms of years, months or days.
DateDiff( )
DateIn( )
DateFix( )
DiDate( )
18. ______ array size can be changed at run-time.
Fixed
Preserve
Dynamic array
Multidimensional
19. The window in which the individual documents are displayed is called ____________window.
Main
Child
Parent
Root
20. The window in which the individual documents are displayed is called ____________window.
Main
Child
Parent
Root
21. _________ is the process of finding and removing errors.
Checking
Compiling
Debugging
Quick watch
22. ________ loop repeats a group of statements for each item in a collection of objects or for each element of an array.
While loop
Do Until loop
Do while loop
For each loop
23. A __________ variable is one that is declared inside a procedure.
global
local
external
None of the above
24. _______ control executes the timer events at specified intervals of time.
Clock
Frame
Timer
Digital
25. MDI stands for _________
Multiple Document Interface.
Multiple Design Interface.
Manipulated Document Interface.
Menu Design Interface.
26. A _______control in visual basic is used to create applications that present information in rows and columns.
MSGridLine
MSLineGrid
MSGridFlex
MSFlexGrid
27. __________ cannot be declared in a form or class module.
Static constants
Private constants
Public constants
None of these
28. __________ do not return a value.
Sub procedure
Function procedure
Property procedures
All of these
29. The default datatype for VB is ___________
Integer
Decimal
Variant
String
30. _________ is a built in function to return lower bound of an array.
Lbound()
LRbound()
Lowbound()
None of These
31. The _________ allows direct exit from a For loop, Do loop, Sub procedure, or Function procedure.
Break
Exit
Exit for
Exit Do
32. ___________ displays current directory with any subdirectories and allows the user to change directory.
FileListBox
DirListBox
DriveListBox
All of the above
33. Extension of ActiveX designers ____________
.dsr
.axd
.adx
None of These
34. ________ indicates whether a particular condition is on or off.
Text box
Check box
List box
Combo box
35. __________ statement enables us to trap runtime error.
Error
On Error
On runtime Error
All of the these
36. Frame Control acts as a __________
Event
Method
Class
Container
37. Form_Mouse Down( ) procedure is executed when any mouse button is clicked in a free area of the ______.
form
window
screen
None of These
38. ________ method removes a dialog box from view.
Enabled
Disable
Hide
Display
39. The ______ is a tool used for both the Input and output purpose.
label
text box
Combo box
command button
40. An object datatype can store _______ bytes.
1 byte
2 byte
4 byte
8 byte
41. ________ method is used to clear the contents of MSHFlexGrid control.
Clr
Cls
RemoveItem
Clear
42. The _______ function returns a string stored in a variant data type.
Chr.
Str.
Char
None of these
43. The __________ property is used in VB for maximum form at run time.
caption
window resize
window status
none of these
44. ___________ is property is used to hide the content in textbox with some symbols.
Name
Caption
Hidden
Password char
45. ___________ method is used to retrieve the stored text from the clipboard.
Input
Gettext
Addtext
Settext
46. _________ control displays current directory with any sub directories and allows the user to change directly.
File list box
Drive list box
Directory list box
All of the above
47. ________ control is used to represent the items in a hierarchical manner.
Tree view
Grid view
Progress bar
None of these
48. Which is not a property of the Common control class?
Show
Font
BackColor
ForeColor
49. Which symbol creates an access key in the text of a menu item?
@
&
$
#
50. __________ event occurs when a form loaded into the memory.
Load
Activate
Initialize
None of the above
51. _________ method is used to forcibly set the CPU focus to a particular control.
Setfocus
Gotfocus
Lostfocus
None of the above
52. Which language is not a true object-oriented programming language?
VB 6
VB.NET
JAVA
C++
53. A GUI
uses buttons, menus, and icons
should be easy for a user to manipulate
both (a) and (b)
stands for Graphic Use Interaction
54. Visual Studio .NET provides which feature:
debugging
application deployment
syntax checking
All of the above
55. What does IDE stand for?
Integrated Design Environment
Integrated Development Environment
Interior Design Environment
Interior Development Environment
56. Which type of project can a developer choose in the New Project dialog box?
Visual Basic Projects
Visual C++ Projects
Visual C# Projects
All of the above
57. Which is not a main component of the Visual Studio IDE?
start menu
Tool box
designer window
Solution Explorer
58. Which does the solution explorer not display?
Form Properties
Reference Folder
Form File
Assemble File
59. For which task does the IDE provide multiple ways to accomplish the task?
Putting a control on the form
Running the program
Activating the property window for a control
All of the above
60. Which are the standard prefixes for the Button and Combo box controls respectively?
bto and cbo
bto and chb
btn and cbo
btn and chb
61. Which are the standard prefixes for the text box and label controls respectively?
txb and lbl
txb and lab
tex and lbl
tex and lab
62. Which task is accomplished in the Code editor?
Adding forms to the project
Adding controls to the form
Adding controls to the title
Adding event procedures to the form
63. Which is not a feature of a GUI that makes learning a program easy for users?
Detailed key strokes and commands
WYSIWYG formatting
Dialog boxes
Online help
64. An object is composed of:
properties
events
methods
All of the above
65. Which statement about objects is true?
One class is used to create one object.
One object is used to create one class.
One class can create many objects.
One object can create many classes.
66. Which is not true about forms and controls in Visual Basic?
They are pre-built.
They are graphical objects.
Buttons can be created with the drag and drop method.
New versions of the classes must be created with each project.
67. Which is an example of Visual Basic Objects?
ASP.NET
ADO.NET
Control objects
All of the above
68. The .Net class library:
uses namespaces to manage all of the classes.
contains over 25,000 classes
both (a) and (b)
has the System.Form namespace for classes used in Windows-based application.
69. Which property determines whether a control is displayed to the user?
Visible
Enabled
Show
Hide
70. The Button control can be activated:
by clicking the button with the mouse.
programmatically through the click event.
both (a) and (b)
with the form’s DefaultButton property.
71. The CancelButton property belongs to which object?
Form
Button
Label
TextBox
72. A click event procedure stud for the label control can be created by:
selecting the object and event from the code editor window’s drop-down boxes.
typing the code in the code editor window.
by double clicking the control.
All of the above
73. In event-driven programming an event is generated by:
the system
a user’s action
the program itself
All of the above
74. The Java and Visual Basic .NET belong to this type of programming language.
Assembly language
Machine language
High level programming language
Object oriented programming language
75. It is a comprehensive, object-oriented collection of reusable types that you can use to develop applications.
Class Library .
Solution Explorer
Properties Window
Windows Form Designer
76. It translates all high level instructions into machine code first before running the program.
Interpreter
Compiler
Translator
Language
77. A window that lists the solution name, the project name and all the forms used in the project.
Properties Window
Solution Explorer
Windows Form Designer
Project Window
78. VB.Net is
Platform Independent
Compiler Language
Forward compatibale
Backward compatible
79. VB.Net supports
Structured error handling
Unstructured error handling
Both
None
80. JIT stands for
Just In Type
Just In Time
Just In Thread
Just In Text
Submit