www.ITISkill.com
Home
PROGRAMMING WITH VBA - Practice Mode
Categories
Computer Operator and Programming Assistant (COPA)
PROGRAMMING WITH VBA
Practice Mode
1) What will be the output of the following VBA code?
Sub test()
a = 'Computer operator'
Debug.Print left(a,10)
End sub
Operator
Computer o
Computer
Computer operator
Show Answer
Report Question
What's wrong with this question?
Report
Correct Answer: Computer o
Question Details
1) What will be the output of the following VBA code?<br>Sub test()<br>a = 'Computer operator'<br>Debug.Print left(a,10)<br>End sub
Operator
Computer o
Computer
Computer operator
2) What will be the output of the following VBA code?
Sub test()
Dim l as integer
Dim S as string
S = 'Time is money'
l = len(s)
Debug.print 'The length is' & l
End sub
13
The length is 11
The length is 13
THE LENGTH IS 13
Show Answer
Report Question
What's wrong with this question?
Report
Correct Answer: The length is 13
Question Details
2) What will be the output of the following VBA code?<br>Sub test()<br>Dim l as integer<br>Dim S as string<br>S = 'Time is money'<br>l = len(s)<br>Debug.print 'The length is' & l<br>End sub
13
The length is 11
The length is 13
THE LENGTH IS 13
3) What will be the output of the following VBA function?
Sub stg()Str = 'Mathematics'
Debug.Print right(str,6)
End sub
matics
Mathem
Mathemat
Mathematics
Show Answer
Report Question
What's wrong with this question?
Report
Correct Answer: matics
Question Details
3) What will be the output of the following VBA function? <br> Sub stg()Str = 'Mathematics' <br> Debug.Print right(str,6) <br> End sub
matics
Mathem
Mathemat
Mathematics
Previous Question Set
Back to Question Sets
Next Question Set
Try Another Topic
Try Another Quiz