Question:* If, Then, Else are examples of:
Answer: • conditionals
Question:* What is MAPI ?
Answer: • Messaging Application Programming Interface
Question:* Which of the following, when inputted into the command prompt, will successfully launch the Visual Basic script file_name.vbs?
Answer: • All of these are correct
Question:* How to declare a variable in VB?
Answer: • Dim (Variable) AS (Datatype)
Question:* Visual Basic is derived from:
Answer: • BASIC
Question:* Visual Basic 6.0 has been replaced by:
Answer: • VB.NET
Question:* What keyword(s) end every procedure
Answer: • End Sub
Question:* Which control can be data bound?
Answer: • All of these
Question:* The three types of Visual Basic operators are:
Answer: • arithmetic, relational, and logical
Question:* Visual Basic is an ____________ driven language.
Answer: • event
Question:* The code to cancel out of a Loop event is:
Answer: • Exit Do
Question:* To declare a variable in Visual Basic, you must use the ___________ function:
Answer: • Dim
Question:* What is the proper syntax for adding items to a listbox?
Answer: • listbox.items.add(item)
Question:* Visual Basic can do which of the following?
Answer: • All are correct
Question:* When you save a project as an executable file, you are actually:
Answer: • compiling
Question:* LoadPicture is a function of an Image control that can:
Answer: • populate the picture with an image from a specified directory
Question:* Visual Basic applications display a Windows style screen called a form.
Answer: • True
Question:* A variable can be assigned a value.
Answer: • True
Question:* Which character must be placed at the beginning of a line to indicate that it is a comment (not considered part of the code)?
Answer: • '
Question:* The default file type for a Visual Basic project is:
Answer: • .vbp
Question:* Press _________ to run a program.
Answer: • F5
Question:* Once you complete a program, you can compile it into a _________ file.
Answer: • .exe
Question:* What keyword starts every procedure?
Answer: • Sub
Question:* The programmer can enter, edit, and view the language of Visual Basic in the:
Answer: • code window
Question:* How do you enter in comments without having an output?
Answer: • '
Question:* To create a function that returns a value you must use a:
Answer: • function
Question:* To show a form, use the ____________ command.
Answer: • show
Question:* The Enterprise Edition of Visual Basic is aimed at:
Answer: • network oriented clients
Question:* Integer is an example of a:
Answer: • data type
Question:* The '&' symbol is the safest _________ operator to use in Visual Basic.
Answer: • Concatenation
Question:* Visual Basic is considered a ___________ programming language.
Answer: • high level
Question:* Can you access and modify the Windows Registry by using VB Scripting?
Answer: • Yes
Question:* What code will adjust the Zoom Level on a worksheet in Excel to 80%?
Answer: • ActiveWindow.Zoom = 80
Question:* How do you prevent the screen from flickering while running a macro?
Answer: • Application.ScreenUpdating = False
Question:* B=2 C=3 What does A=B=C output?
Answer: • False
Question:* What type of executable can VB6 not produce?
Answer: • Native DLL
Question:* What keyword ends a For loop?
Answer: • Next
Question:* MDI is an IDE developed by Microsoft and stands for:
Answer: • Multiple Document Interface
Question:* Which of the following is a correct example of Windows API import declaration in VB6
Answer: • Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (lpvDest As Any, lpvSource As Any, ByVal cbCopy As Long)
Question:* Which of the following is NOT the value of StartUpPosition property in Visual Basic 6?
Answer: • 4 - Automatic
Question:* Lower bound of arrays in VB 6 is
Answer: • Default is 0. Can be set to 1 by "Option Base 1"
Question:* What is the difference between LockPessimistic and LockOptimistic ADO locking types.
Answer: • LockPessimistic Locks the row once after any edits occur. LockOptimistic Locks the row only when Update is called.
Question:* What does Option Explicit refer to?
Answer: • All variables must be declared before use. Their type is not required.
Question:* What is the max size allowed in characters for Msgbox Prompt and Input Box?
Answer: • 1024
Question:* Dim x, y as integer. What is x and y data type?
Answer: • x as variant and y as integer
Question:* To debug VB 6 applications with source code using a native debugger like Visual Studio, one must
Answer: • "Compile to Native Code" and enable "Create Symbolic Debug Info"
Question:* Which one of the following property pages is not provided by Visual Basic 6
Answer: • StandardLayout
Question:* What two methods are called from the ObjectContext object to inform MTS that the transaction was successful or unsuccessful?
Answer: • SetComplete and SetAbort.
Question:* How do you make a property default in VB 6?
Answer: • Set "Procedure ID" property of property to "(Default)" in "Procedure Attributes" dialog
Question:* In Visual Basic 6, How will you disable/hide the control box on a form?
Answer: • By Setting ControlBox Property to False or by using Windows API
Question:* What is the correct entry:
Answer: • Dim s : s=2
Question:* For Excel... What is the shortest code that would AutoFit all rows in the active worksheet?
Answer: • Cells.EntireRow.AutoFit
Question:* True or False? In Visual Basic 6, to enable automatic re-painting of MDI Form, we have to set AutoRedraw=True
Answer: • False
Question:* For Excel, what is the shortest code that would change the column width of columns L & X to 30?
Answer: • Range("L:L,X:X").ColumnWidth= 30
Question:* Which one of the following cannot be added to a UserControl in VB6
Answer: • OLE Control
Question:* When an ActiveX project is compiled, its COM interface can be preserved by using Binary Compatibility. Between compilations VB creates different interfaces for modified parts of classes. This is called:
Answer: • Interface Forwarding
Question:* In Visual Basic 6, which one is NOT a parameter of connection objects open method?
Answer: • Source
Question:* To make a UserControl transparent
Answer: • Set BackStyle to Transparent
Question:* Which property is required to place a control on Visual Basic 6 MDI Form?
Answer: • Align Property
Question:* KeyDown is an example of a:
Answer: • procedure
Question:* What is the numeric value for the boolean "True"?
Answer: • -1
Question:* What is the window class of a debugged MDI application in VB6
Answer: • ThunderMDIForm
Question:* What command line argument is passed to an out of process COM server to register it
Answer: • regserver
Question:* For Excel, what will the following code do? Range("A2").Select: ActiveWindow.FreezePanes = True
Answer: • Freeze Row 1
Question:* How do you bold an output text?
Answer: • .SelBold=true
Question:* What is the maximum value of the Interval Property for a timer?
Answer: • 65.5 seconds
No comments:
Post a Comment