Hi everybady,
i have faced few Qns in one of i attended interview, please help me out with these below Qns.
1. how to join values without using join function?
2. how to compare values without using String compare function?
3. input is Bangalore, but i need output like this below format, what is function to use and get this outcome
B
A
N
G
A
L
o
R
E
4. Input is "CapGemini" but uotput should be like this "inimeGpaC"
5. Input is
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Can someone let me know results of this Qns, please. Thanks.
Answer Posted / testengineer
4. Input is "CapGemini" but uotput should be like this "inimeGpaC"
Ans: StrReverse("CapGemini")
3. input is Bangalore, but i need output like this below format, what is function to use and get this outcome
B
A
N
G
A
L
o
R
E
Ans:
string1= "Banglore"
string2=ucase(string1)
strlength=len(string2)
For i = 1 To strlength
val=Mid(string2,i,1)&vbNewline
print val
Next
5 Ans:
For i = 1 To 5
For j = 1 To i
print j
Next
Next
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How to create a cookie using vbscript?
How can the spaces from the string be removed?
what is the differance between BYVAL,BYREF?
Mention what is the use of option explicit in vbscript?
Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?
How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz
Explain what is loose binding? Why is it not a good practice to use it?
what is the use of QCUtil? explain with one example?
what is the object hyrarchy in QTP for a web based application
Explain about adodb.stream class?
How strcomp function works?
What are the data types supported by vbscript?
How will you check that a variable is an array in vbscript?
How will you compare two strings in vbscript?
How to Enter Values on the Command promt using VB script