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 Enter Values on the Command promt using VB script
what is the difference between modular and data and keyword driven framework
When are redim statement and preserve keyword used in the vbscript language?
How to delete a cookie using vbscript?
How will you get the exponent of the given number in vbscript?
Is vbscript a case-sensitive or case-insensitive?
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
How are values assigned to the variables in the vbscript language?
A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.
Mention how to assign a date value to a variable?
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
Mention what are the rules to name variable in vbscript?
What is the difference between for loop and while loop?
What is the output of a + b in vbscript if a = 5 and b = 10?
What is the use of the recordset object and which statement is used to create such an object?