www.ITISkill.com
Home
PROGRAMMING WITH VBA - Practice Mode
Categories
Computer Operator and Programming Assistant (COPA)
PROGRAMMING WITH VBA
Practice Mode
1) Which scope does the variable declared with dim and remains in the existence only as long as the procedure in which if is declared is running?
Global scope
Local scope
Module scope
Project scope
Show Answer
Report Question
What's wrong with this question?
Report
Correct Answer: Local scope
Question Details
1) Which scope does the variable declared with dim and remains in the existence only as long as the procedure in which if is declared is running?
Global scope
Local scope
Module scope
Project scope
2) What will be the output of the following VBA code?
Sub test()
a = 9
Debug.Print Sqr(a)
End sub
3
9
18
81
Show Answer
Report Question
What's wrong with this question?
Report
Correct Answer: 3
Question Details
2) What will be the output of the following VBA code? <br> Sub test() <br> a = 9 <br> Debug.Print Sqr(a) <br> End sub
3
9
18
81
3) What will be the output for the following VBA code?Debug.print
DateDiff('yyyy','1/12/2016','31/1/2017')
0
1
11
30
Show Answer
Report Question
What's wrong with this question?
Report
Correct Answer: 1
Question Details
3) What will be the output for the following VBA code?Debug.print<br>DateDiff('yyyy','1/12/2016','31/1/2017')
0
1
11
30
4) What will be the output of the following VBA code?
Sub test()
x = 'institue'
Debug.print Format(x,'>')
End sub
Institute
institute
INSTITUTE
instiTUTE
Show Answer
Report Question
What's wrong with this question?
Report
Correct Answer: Institute
Question Details
4) What will be the output of the following VBA code?<br>Sub test()<br>x = 'institue'<br>Debug.print Format(x,'>')<br>End sub
Institute
institute
INSTITUTE
instiTUTE
5) What will be the output of the following VBA code?
Sub test()
Dim S AS string
S = 'wholehearted'
Debug.Print mid(s,6,4)
End sub
arte
hear
hole
eart
Show Answer
Report Question
What's wrong with this question?
Report
Correct Answer: hear
Question Details
5) What will be the output of the following VBA code?<br>Sub test()<br>Dim S AS string<br>S = 'wholehearted'<br>Debug.Print mid(s,6,4)<br>End sub
arte
hear
hole
eart
Previous Question Set
Back to Question Sets
Next Question Set
Try Another Topic
Try Another Quiz