Try to answer these 100+ Visual Basic MCQs and check your understanding of the Visual Basic subject.
Scroll down and let's begin!
A. variables
B. events
C. conditionals
D. operators
A. All of these are correct
B. wscript file_name.vbs
C. cscript file_name.vbs
D. Pressing enter after you write: file_name.vbs
A. VB.NET
B. Visual Studio
C. Visual C++
D. C++
A. arithmetic, relational, and logical
B. plus, minus, multiply
C. divide, multiply, plus
D. add, divide, multiply
A. Develop Windows applications
B. Create executable files (EXE files)
C. All are correct
D. Create DLL files
E. Create ActiveX controls
A. True
B. False
A. deleting
B. decompiling
C. compiling
D. coding
A. format the border of the image
B. change the color of the image
C. delete an existing picture
D. populate the picture with an image from a specified directory
A. False
B. True
A. "
B. #
C. +
D. -
E. '
A. Dim
B. Loop
C. Declare
D. Private Sub
A. Clear
B. Cancel
C. Exit Do
D. Delete Loop
A. listbox.setnewitem = item
B. listbox.newitem.add(item)
C. listbox.items.item(item).register
D. listbox.items.add(item)
E. listbox.itemmenu.add(item)
A. .vbo
B. .mvb
C. .frm
D. .vbp
A. All of these
B. Dim (Variable) AS (Datatype)
C. Declare @(Variable) (Datatype)
D. (Datatype) (Variable);
A. Stop
B. End
C. End Sub
D. Stop Procedure
E. Ending
A. F5
B. F4
C. F7
D. F6
A. Label
B. Textbox
C. Checkbox
D. All of these
A. event
B. assembly
C. adjective
D. asp
A. For
B. Begin
C. Start
D. Sub
E. With
A. C++
B. BASIC
C. Qbasic
D. Assembly
A. .exe
B. .vb
C. .vbp
D. .html
A. none of these
B. sub
C. procedure
D. function
A. */
B. @
C. '
D. %
E. %%
A. visible
B. appear
C. display
D. show
A. document
B. form explorer
C. project explorer
D. code window
A. C++
B. network oriented clients
C. file sharing
D. decompiling
A. variable
B. data type
C. number
D. procedure
A. high level
B. mid-level
C. assembly level
D. low level
A. Relational
B. Boolean
C. Arithmetic
D. Concatenation
A. Messaging Application Programming Interfere
B. Messaging Application Programming Interface
C. None of the Above
D. Messaging Administration Programming Interface
E. Messaging Application Programming Interchange
A. No
B. Yes
C. You can read but cannot write
A. Application.ScreenUpdating = True
B. Application.ScreenUpdating = False
C. Application.Visible = True
D. Application.DisplayAlerts = False
E. Application.Visible = False
A. 6
B. True
C. False
D. 2
E. 3
A. ActiveWindow.Zoom = 80
B. ActiveWindow.Zoom = -20
C. ActiveWindow.Zoom.Adjust = 80
D. Application.Zoom = 80
E. Zoom = 80
A. Standard EXE
B. Native DLL
C. ActiveX EXE
D. ActiveX Control
E. ActiveX DLL
A. Microsoft Data Interface
B. Multiple Data Interface
C. Multiple Document Interface
D. Microsoft Document Interface
A. Done
B. Next
C. End
D. End Loop
E. End For
A. 1
B. Determined by a compiler switch
C. Default is 0. Can be set to 1 by "Option Base 1"
D. 0
E. Default is 1. Can be set to 0 by "Option Base 0"
A. LockPessimistic Locks the row automatically. LockOptimistic Locks the only when initiated by code.
B. There is no difference
C. LockPessimistic Locks the row once after any edits occur. LockOptimistic Locks the row only when Update is called.
D. LockPessimistic Locks the row only when Update is called. LockOptimistic Locks the row once after any edits occur.
A. Public External Sub RtlMoveMemory Lib "Kernel32" (lpvDest As Any, lpvSource As Any, ByVal cbCopy As Long)
B. Import Function "RtlModelMemory" Alias "CopyMemory" From "Kernel32" ([Pointer] lpvDest As Any, [Pointer] lpvSource As Any, ByVal cbCopy As Long)
C. Import Function "RtlModelMemory" As "CopyMemory" From "Kernel32" (lpvDest As Any, lpvSource As Any, ByVal cbCopy As Long)
D. DllImport Sub CopyMemory From "Kernel32" Original "RtlMoveMemory" (lpvDest As Any, lpvSource As Any, ByVal cbCopy As Long)
E. Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (lpvDest As Any, lpvSource As Any, ByVal cbCopy As Long)
A. All variables must be declared before use. Their type is not required.
B. variables are defined automatically
C. All variables with their types must be declared before use.
D. Options for all built in controls is restricted.
A. 1024
B. 512
C. 2048
D. 256
E. 780
A. x as variant and y as integer
B. Both are integers
C. Wrong declaration
A. 1 - CenterOwner
B. 0 - Manual
C. 3 - Windows Default
D. 2 - CenterScreen
E. 4 - Automatic
A. False
B. True
A. "Compile to Native Code" and enable "Create Symbolic Debug Info"
B. select "Start with Full Compile" from "Run" menu
C. add "NATIVE=1:DEBUG=1" to "Conditional Compilation Arguments"
D. "Compile to P-Code" and enable "Create Symbolic Debug Info"
E. Attach to VB6.exe from Visual Studio
A. Using Windows API
B. By Setting ControlBox Property to False or by using Windows API
C. By Setting ControlBox Property to True
D. By Setting ControlBox Property to False
E. By Passing parameter FALSE to Forms SHOW Method
A. StandardColor
B. StandardPicture
C. StandardLayout
D. StandardFont
E. StandardDataFormat
A. Decorate it with "<Default>" attribute
B. You can not
C. Rename your property to "Default"
D. Using "Option Default Property 'propertyname'" in "General Declarations" section
E. Set "Procedure ID" property of property to "(Default)" in "Procedure Attributes" dialog