suppose the given string str = {"vamsikrishna%%&%*&**"}
count the no of vowels and special characters are repeated
Answers were Sorted based on User's Feedback
Answer / ganesh
str ="{vamsikrishna%%&%*&**}"
For i=1 to len(str)
a=mid(str,i,1)
b=asc(a)
If b>=97 and b<=122 Then
d=d&a
else
e=e+1
End If
Next
For i=1 to len(d)
g=mid(d,i,1)
If g="a" or g="e" or g="i" or g="o" or g="u" Then
f=f+1
End If
next
count1=f+e
print count1
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / koteswar
str = "vamsikrishna%%&%*&**"
z= " "
For i = 1 to len(str)
x = mid(str, i, 1)
If Instr(1,z,x,1) Then
Else
z=z+x
msgbox z
End IF
For j = 1 to len(z)
a= mid(z,j,1)
b=split(str,a)
c=Ubound(b)
Next
msgbox c
Next
| Is This Answer Correct ? | 0 Yes | 2 No |
Please give me the steps to carry out datadriven in QTP8.2
How Does Run time data (Parameterization) is handled in QTP?
How can i see test results in excel sheet ? test data not present in data table.
Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.
Explain about Test Fusion Report of QTP?
What is the extension of script and object repositary files?
Read excel using qtp descriptive programing
using descriptive programming how to close all opend browsers?
Explain different checkpoints in qtp.
Plz explain about Virtual object? What is the situation u r using , explain with example?
how do you done Data-driven test using MS-Word Instead of DataTable
why we use environment variables