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


Please Help Members By Posting Answers For Below Questions

How to create a cookie using vbscript?

591


How can the spaces from the string be removed?

593


what is the differance between BYVAL,BYREF?

1772


Mention what is the use of option explicit in vbscript?

551


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?

528






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

2391


Explain what is loose binding? Why is it not a good practice to use it?

583


what is the use of QCUtil? explain with one example?

6326


what is the object hyrarchy in QTP for a web based application

1889


Explain about adodb.stream class?

595


How strcomp function works?

626


What are the data types supported by vbscript?

580


How will you check that a variable is an array in vbscript?

546


How will you compare two strings in vbscript?

598


How to Enter Values on the Command promt using VB script

1534