Font size
WorksheetsVisual Basic Applications VBA
Total questions: 74
Worksheet time: 41mins
Shortcut Key for Project Explorer
Ctrl + K
Ctrl + L
Ctrl + R
Ctrl + P
This is where the code that is generated with a macro recorder goes.
Code Window
Module
Immediate window
Properties Window
This is where you’ll write your code or copy paste a code from somewhere else.
Properties window
Module
Immediate Window
Code window
Properties window short cut key
F6
F4
CTRL + P
F8
is mostly used when debugging code
Properties Window
Immediate window
Code window
Module
Contains set of commands the code should execute
Sub procedure
Function Procedure
Reference
Commands
an action or a set of actions that you can run as many times as you want. When you create a -------, you are recording your mouse clicks and keystrokes.
VBA
match index
Macro
Vlook up
Which format shoul be used when saving file with macros?
.xlsx
.xlsm
.html
Which shortcut will open Visual Basic Editor?
Alt + F11
Ctrl + Alt + Del
Shift + F8
Shift + Del
An action or set of actions that you can run as many times as you want.
When you create a _____ , you are recording your mouse clicks and keystrokes.
vlookup
match index
sumif
macro
Which word is used to declare a variable?
Dim
Sub
Set
VBA stands for
Visual Basic and Application
Visual Basic for Application
Visual Basic or Application
Visual Basic to Application
1. The programming environment which permits coding, compilation, running and debugging from a single window is called
Integrated Development Environment (IDE)
Editor
Highlighter
Compiler
2. The IDE of VBA supports since it permits drag and drop approach for design of user interface.
Procedural Approach
reverse approach
Rapid Application Development (RAD)
postfix approach
4. VBA supports ready made user interface components like .
UserForm, CommandButton
Label, TextBox, ComboBox, ListBox
TabStrip, OptionButton, ToggleButton
all of them
5. VBA supports through class module.
Object Oriented Programming System (OOPS)
Procedural programming
Functional programming
property based model
6. VBA can be used to automate carried out through MS Excel.
data processing
graphing
accessing cell values
all of them
7. VBA code is compiled into an intermediate code called code.
P-Code
MicroSoft Intermediate Code (MSIL)
Java Virtual Machine (JVM) code
Android Virtual Device (AVD) code
8. MS Excel creates to execute VBA code.
real time computer
mobile computer
tablet computer
virual machine
9. ____is the shortcut to open VBA IDE from MS Excel.
Alt+F11
Alt+F8
Ctrl+Break
Ctrl+G
10._______ is the shortcut to open immediate window in VBA IDE.
Alt+F11
Alt+F8
Ctrl+Break
Ctrl+G
11. _______is the shortcut to open list of macros.
Alt+F11
Alt+F8
Ctrl+ Break
Ctrl+ G
12. is the shortcut to stop execution of programs in VBA IDE.
Alt+F11
Alt+F8
Ctrl+ Break
Ctrl+ G
13. ______ is the shortcut to display information relating to selected component in VBA IDE.
Ctrl+I
Ctrl+J
Ctrl+R
Ctrl+Shift+I
14. ______is the shortcut to properties and methods of a component in VBA
IDE.Ctrl+ I
Ctrl+ J
Ctrl+ R
Ctrl+ Shift+ I
16. ______is the shortcut to display parameter information for selected element in VBA IDE.
Ctrl +I
Ctrl+ J
Ctrl+ R
Ctrl+ Shift+ I
17. _______is the shortcut to add breakpoint in VBA IDE.
F9
F5
F1
F2
18. ______is the shortcut to display object browser in VBA IDE.
F9
F5
F1
F2
20.__________structure is useful for decision involving three or more options.
Switch
Select case
Function
List
21. VBA has a coding, compilation, running and debugging environment called
Integrated Development Environment (IDE)
Editor
Highlighter
Compiler
22. In VBA, the function Asc converts given character value to numeric code in______ system.
American Standard Code for Information Interchange (ASCII)
Double Byte Character Set (DBCS)
Unicode
none of them
31. In VBA, Csng function converts String to _______type.
Integer
Double
Single
String
30. In VBA, CInt function converts String to _______type.
Integer
Double
Single
String
32. In VBA, Val function converts String to _______type.
number
byte
Currency
Decimal
38. ________function in VBA formats a number according to given text strings containing 0, # and comma (,).
Format
CVErr
InputBox
MsgBox
39. Boolean data type in VBA has size of ______
1 byte
2 bytes
3 bytes
4 bytes
40. Byte data type in VBA has size of________
1 byte
4 byte
3 byte
4 byte
VBA code can work only with Excel
True
False
If you record a macro, where will it be stored?
In Workbook
In Module
In Classmodule
Which variable is used to store text?
Single
Double
Integer
String
Which Variable can contain text and numbers?
Single
Double
Boolean
Variant
What will this macro do?
Sub copy()
Range("A1").Copy Range("B2")
End Sub
Copy data from A1 and paste to B2
Copy data from A1 and B2
Copy data from B2
Display error
To clear contents of cell, including its formatting, you can use method:
Clear
Clearcontent
Erase
Eraseall
What's the output?
11
65
6
5
What's the output
3
6
9
7
What's the output
1
2
3
4
How do you declare a variable in VBA?
Dim x as String
String a;
x as String
String x as Dim
What's the output?
11
65
6
5
What's the output
3
6
9
7
What's the output
1
2
3
4
How do you declare a variable in VBA?
Dim x as String
String a;
x as String
String x as Dim
Which one is the error?
1. ThisWorkbook.Activate
2. Worksheets("Sheet1").Activate
3. WorkBook("OH Stock.xlsx").Activate
4. Sheets("PivotTable").Select
1
2
3
4
What's the output
What's the output
A
B
C
Not Pass
What's the output
20000
Error
10000
30000
What's the output
20000
Error
15000
35000
How to make D4 be like this
Range("D4").FormulaR1C1 = "=SUM(R[-3]C[-3]:R[-1]C[-1])"
Range("D4").Value = "=SUM(R[-3]C[-3]:R[-1]C[-1])"
Range("D4").Value = "=SUM(A1:C3)"
Range("D4").Formula2R1C1 = "=SUM(R1C1:R3C3)"
What's the output
A
B
C
Not Pass
What's the output
20000
Error
10000
30000
What's the output
20000
Error
15000
35000
Which is a correct statement in VBA?
If x>50,x<100 then
If 50<x<100 then
If x>50 & x<100 then
If x>50 and x<100 then
Do While...Loop structure.
Do...Loop Until structure.
For...Next loop
If blocks
If you don't declare a data type, what is a default data type in VBA?
Variant
String
Integer
Not known
In order to let users enter a value in a box, which one of the following VBA internal function you need to use?
MsgBox
InputBox
OutputBox
MessageBox
Attribute of data which tells the compiler or interpreter how the programmer intends to use the data.
Data Type
Variable
Int
String
Non-Numeric data type that uses True or False.
Object
String
Date
Boolean
Function Key to run all lines of code of a Sub Procedure in VBA IDE.
F4
F5
F6
F7
A function can return a value to be used later in the program
True
False
A procedure can return a value to be used later in the program
True
False
The Macro Recorder is located in the _________ Tab.
INSERT
REVIEW
DATA
DEVELOPER
Recorded macros can be edited in the _________________.
Visual Basic Spreadshhet
Visual Basic Editor
Visual Basic Documents
Visual Basic Viewer
Visual Basic Studios is an example of _______________________ programming?
Object-oriented
Natural language
Operands
Procedural
Click is an example of:
an event
a variable
a component
a property
