Computer Operator and Programming Assistant (COPA) IMPORTANT MCQ

Module 2 : Programming with VBA

1 Which VBA built in function returns location at the second string occurs within the first string?
A Mid()
B Chr()
C ASC()
D Instr()

D
VIEW ANSWER

2 Which keyword is used to declare the variables in project scope?
A Static
B Private
C Public
D Protect

C
VIEW ANSWER

3 In VBA, How many types of access specifiers available in VBA?
A 2
B 3
C 4
D 6

A
VIEW ANSWER

4 Which type of variable cannot be declared within a procedure in VBA?
A Project scope
B Local scope
C Global scope
D Module scope

D
VIEW ANSWER

5 Which variable recognized only within the procedure in which it is declared?
A Local scope
B Module scope
C Global scope
D Project scope

A
VIEW ANSWER

6 How many levels of variable scope available in VBA?
A 2
B 3
C 4
D 7

C
VIEW ANSWER

7 What will be the output of the following VBA code?
Debug.printformat(#1/1/2017#,”yyyy/mm/dd”)
A 1/1/2017
B Sun, Jan01, 2017
C 2017/01/01
D Sunday, January 01, 2017

C
VIEW ANSWER

8 Which function returns true if the expression is a valid date, otherwise it returns false in VBA?
A CDate()
B IsDate()
C Day()
D Dateadd()

B
VIEW ANSWER

9 What is the full form of UDF in VBA?
A User Data Functions
B User Defined Functions
C Undefined Functions
D Used Data Functions

B
VIEW ANSWER

10 Which function returns the day of the month (number from 1 to 31) given date value in VBA?
A Day()
B Date()
C Month()
D Date part()

A
VIEW ANSWER

11 Which function returns the current system date and time in VBA?
A Date()
B Day()
C Hour()
D Now()

D
VIEW ANSWER

12 Which function extracts the first 5 characters from a string in VBA?
A Right(str,5)
B Left(str,5)
C Mid(str,5)
D Substr(str,5)

B
VIEW ANSWER

13 Which color of dot indicate the breakpoint in VBA?
A Grey
B Yellow
C Maroon
D Red

D
VIEW ANSWER

14 Which shortcut key is used to set the properties of form while designing?
A F4
B Ctrl + F4
C Alt + F4
D Shift + F4

A
VIEW ANSWER

15 Which shortcut key is used to open code window in VBA?
A F7
B Alt + F7
C Ctrl + F7
D Shift + F7

A
VIEW ANSWER

16 Which code is used to display a user form in VBA?
A Load user Form1
B User Form1.Show
C User Form1.Show False
D User Form1.Load

B
VIEW ANSWER

17 Which mathematical function returns square root of a specified number in VBA?
A Sqt()
B Squr()
C Sqrt()
D Sqr()

D
VIEW ANSWER

18 Which VBA function is used to convert the string from uppercase to lowercase?
A Lcase()
B Lower()
C Ucase()
D Upper()

A
VIEW ANSWER

19 Which of the following is logical operator in VBA?
A +

B –
C *
D And

D
VIEW ANSWER

20 Which character is to be suffixed for long data type in VBA?
A &
B !
C #
D @

A
VIEW ANSWER

21 What is the storage size of decimal data type in VBA?
A 2 bytes
B 4 bytes
C 8 bytes
D 12 bytes

D
VIEW ANSWER

22 What is the storage size of currency data type in VBA?
A 2 bytes
B 4 bytes
C 8 bytes
D 12 bytes

C
VIEW ANSWER

23 How many numeric data types available in Excel VBA?
A 4
B 5
C 7
D 8

C
VIEW ANSWER

24 What is the another name for keywords in VBA?
A Literals
B Variables
C User defined words
D Reserved words

D
VIEW ANSWER

25 Which key word is used to declare the variable in VBA?
A Sub
B Declare
C Dim
D AS

C
VIEW ANSWER

26 Which data type can hold any type of values in VBA?
A Variant
B Variable
C Constant
D Keyword

A
VIEW ANSWER

27 Which entitie hold data in VBA?
A Literals
B Constants
C Keywords
D Variables

D
VIEW ANSWER

28 Which worksheet method is used to copy a sheet to another location in the workbook?
A Activate
B Copy
C Save AS
D Select

B
VIEW ANSWER

29 Which VBA worksheet property return or sets a string value that represents the object name?
A Name
B Index
C Range
D Cells

A
VIEW ANSWER

30 Which method displays the data form associated with the worksheet in VBA?
A Copy
B Printout
C Show Data Form
D Select

C
VIEW ANSWER

31 Which VBA property returns a range object that represents all the cells on the worksheet?
A Cells
B Rows
C Index
D Name

A
VIEW ANSWER

32 Which object is member of the workbook?
A Sheets
B Workbook
C Worksheet
D Range

C
VIEW ANSWER

33 Which type of work book method cannot be modified in VBA?
A Close
B Save
C Save AS
D Protect

D
VIEW ANSWER

34 Which workbook property returns a string value that represents the name of the object in VBA?
A Full name
B Name
C Path
D Worksheets

B
VIEW ANSWER

35 Which workbook property returns the name of the object including its path on disk in VBA?
A Full name
B Name
C Path
D Worksheets

A
VIEW ANSWER

36 Which can hold lot of data with one variable in VBA?
A Arrays
B Collections
C Groups
D Methods

B
VIEW ANSWER

37 Which type of list box enables one choice of adjacent choice in VBA?
A Drop down list
B Single – selection list box
C Multiple – selection list box
D Extended – selection list box

C
VIEW ANSWER

38 Which button has three states in VBA?
A Option button
B Spin button
C Push button
D Command button

A
VIEW ANSWER

39 Which box groups related controls into one visual unit in a rectangle with an optional label?
A Label box
B Group box
C List box
D Combo box

B
VIEW ANSWER

40 Which is used to create user interface forms?
A C
B VBA
C HTML
D Javascript

B
VIEW ANSWER

41 Where does Excel come in object hierarchy of VBA?
A Range object
B Workbook object
C Worksheet object
D Application object

D
VIEW ANSWER

42 Which shortcut key is used to open project explorer window in VBA?
A Ctrl + R
B Ctrl + P
C Ctrl + W
D Ctrl + E

A
VIEW ANSWER

43 Which shortcut key is used to open VBA Editor from the Excel worksheet?
A Ctrl + F11
B Alt + F11
C Ctrl + V
D Ctrl + F7

B
VIEW ANSWER

44 What is the Full form of IDE?
A Integrated Development Element
B Internal Development Environment
C Integrated Development Environment
D Internal Distributed Environment

C
VIEW ANSWER

45 Which shortcut key is used to step into line – by – line execution in VBA?
A F2
B F4
C F5
D F8

D
VIEW ANSWER

46 What is called the set of commands bundled together under one name?
A Properties
B Macros
C Procedures
D Events

B
VIEW ANSWER

47 What is called the set of statement that are executed under one name?
A Macros
B Properties
C Procedures
D Events

C
VIEW ANSWER

48 Which one is attributes of an object in VBA?
A Procedures
B Events
C Macros
D Properties

D
VIEW ANSWER

49 What is called double clicking an object in VBA?
A Events
B Macros
C Procedures
D Methods

A
VIEW ANSWER

50 Which is used to type / edit the programming code in VBA?
A Form window
B Properties window
C Immediate window
D Visual basic editor

D
VIEW ANSWER

51 What is the alternate name of Bugs?
A Errors
B Keywords
C Variables
D Constants

A
VIEW ANSWER

52 Which shortcut key is used to open the Visual Basic Editor In VBA?
A Alt + F11
B Ctrl + F11
C Shift + F11
D Shift + Ctrl + F11

A
VIEW ANSWER

1 Which simplifies the work to be eliminating or rewriting the code in VBA?
A Class
B Object
C Macros
D Functions

C
VIEW ANSWER

2 Which type of variable can be accessed or used by subroutines outside the modules in VBA?
A Static
B Private
C Protect
D Public

D
VIEW ANSWER

3 Where there is no difference between dim and private in VBA?
A Local scope
B Module scope
C Global scope
D Project scope

B
VIEW ANSWER

4 Which method is used to pass the reference to the arguments?
A Ref
B Val
C Reference
D By Ref

D
VIEW ANSWER

5 Which function is used to check whether the given input is numeric or Not in VBA?
A Numeric()
B Isnumber()
C Isnumeric()
D Isnum()

C
VIEW ANSWER

6 Which function returns specified part of a given date in VBA?
A Day()
B Datevalue()
C Datediff()
D Datepart()

D
VIEW ANSWER

7 Which function returns the difference between two date values based on the interval specified in VBA?
A Datediff()
B Day()
C Daydiff()
D Datedif()

A
VIEW ANSWER

8 What is the return type of CSng function in VBA?
A Boolean
B Variant
C Single
D String

C
VIEW ANSWER

9 Which VBA code is used to load user form into memory but do not display?
A User form1.Show
B Load userform1
C Userform1.load
D Show userform1

B
VIEW ANSWER

10 Which VBA code is used to remove the user form from memory?
A Unload me
B Userform1.hide
C Unload userform1
D User form show false

C
VIEW ANSWER

11 Which window displays the watched expression including the one just added?
A Module window
B Immediate window
C Watch window
D Debug window

C
VIEW ANSWER

12 Which one is indicated by a red dot with a line of code highlighted in red in VBA?
A Break point
B Start point
C End point
D Error point

A
VIEW ANSWER

13 Which is used to repeats the same steps in case of frequency needed actions in VBA?
A Class
B Object
C Functions
D Macros

D
VIEW ANSWER

14 Which function returns the integer portion of a number in VBA?
A Int()
B Format()
C Abs()
D Sign()

A
VIEW ANSWER

15 Which function returns the hyperbolic cosine of the specified angle in VBA?
A Abs()
B Cos()
C Cosh()
D hcos()

C
VIEW ANSWER

16 Which mathematical function generates a random number in VBA?
A Random()
B Rnd()
C Rand()
D Round()

B
VIEW ANSWER

17 Which operators are concatenation operator in VBA?
A + and –
B & and –
C & and +
D & and *

C
VIEW ANSWER

18 Which type of words cannot use for any other purpose in VBA?
A Literals
B Keywords
C Constants
D Variables

B
VIEW ANSWER

19 Which is a series of items where all items share the same properties and methods in VBA?
A Arrays
B Groups
C Methods
D Collections

D
VIEW ANSWER

20 Which button allows a single choice within a limited set of mutually exclusive choice?
A Button
B Option button
C Spin button
D Toggle button

B
VIEW ANSWER

21 Which box has three states in VBA?
A List box
B Combo box
C Check box
D Group box

C
VIEW ANSWER

22 Which one creates a box with a scrollable list containing a number of input values in VBA?
A Combo box
B Option button
C Text box
D List box

D
VIEW ANSWER

23 Which control is suitable to collect the input from the user in VBA?
A Label
B Text box
C Command button
D User form

B
VIEW ANSWER

24 Which is a proper object hierarchy in VBA?
A Worksheet, Workbook, Application, Range
B Range, Application, Worksheet, Workbook
C Range, Worksheet, Workbook, Application
D Application, Workbook, Worksheet, Range

D
VIEW ANSWER

25 What is the shortcut key to run the current procedure in VBA?
A F2
B F4
C F5
D F8

C
VIEW ANSWER

26 Which window displays the entire list of local varibles and their current values in VBA?
A Locals window
B Watch window
C Immediate window
D Debugging window

A
VIEW ANSWER

27 Which window is similar to the locals window, but it is used to tracing the variables in VBA?
A Call stack window
B Watch window
C Immediate window
D Debugging window

B
VIEW ANSWER

28 Which shortcut key is used to open the immediate window?
A Ctrl + G
B Ctrl + L
C Alt + G
D Alt + L

A
VIEW ANSWER

29 What is the another name trigger for an action in VBA?
A Methods
B Modules
C Events
D Macros

C
VIEW ANSWER

30 Which shortcut key allows debugger to run the current procedure and go line after line called the procedure in VBA?
A Ctrl + Shift + F6
B Ctrl + Shift + F7
C Ctrl + Shift + F8
D Ctrl + Shift + F9

C
VIEW ANSWER

31 While debugging code, which statement allows to go to the highlighted line?
A Step into
B Step over
C Step out
D Show next

D
VIEW ANSWER

32 Which control is used to increase or decrease a value, such as a number time or date?
A Scroll Bar
B Spin Button
C Combo Box
D Toggle Button

B
VIEW ANSWER

1 Which VBA function compares given strings and returns -1 if the first string is smaller than the second string, returns 0 if both are equal and 1 if the first string is greater than second string?
A Strcmp
B Strcomp
C Compare
D Scmp

A
VIEW ANSWER

2 Which scope does the variable declared with dim and remains in the existance only as long as the procedure in which if is declared is running?
A Global scope
B Local scope
C Module scope
D Project scope

B
VIEW ANSWER

2 thoughts on “Computer Operator and Programming Assistant (COPA) IMPORTANT MCQ”

Leave a Comment

IMPORTANT

ALL MCQ IS AVAILABLE WITH EXPLANATION, U CAN SEE ON RESULT PAGE.
सभी MCQ स्पष्टीकरण के साथ उपलब्ध हैं, आप उन्हें परिणाम पृष्ठ पर देख सकते हैं।


NOW YOU CAN TRANSLATE THIS SITE IN TO YOUR LANGUAGE.
CLICK ON TOP RIGHT ICON, SELECT YOUR LANGUAGE.
अब आप इस साइट का अनुवाद अपनी भाषा में कर सकते हैं।
ऊपर दाईं ओर दिए गए आइकन पर क्लिक करें और अपनी भाषा चुनें।

This will close in 20 seconds

Translate »
error: Content is protected !!