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 will you get the last occurrence of one string within another string using vbscript?
Illustrate briefly about the different types of statement
What is the purpose of folders object of scripting.filesystemobject class in vbscript?
What is Procedure or Subroutine in VB Script?
Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...
How to capture a runtime error in vbscript?
How regexp.execute method works?
What is the use of the date function in the vbscript language?
How to get the length of the string by making use of the string function?
How will you get the largest subscript of an array in vbscript?
How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.
How will you get a string with the specified character the specified number of times in vbscript?
What is the scope of a constant declared using public?
What is vbscript language used for and which earlier language is it modeled upon?
How do you declare a variable in vbscript?