suppose the given string str = {"vamsikrishna%%&%*&**"}
count the no of vowels and special characters are repeated

Answers were Sorted based on User's Feedback



suppose the given string str = {"vamsikrishna%%&%*&**"} count the no of vowels an..

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

suppose the given string str = {"vamsikrishna%%&%*&**"} count the no of vowels an..

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

Post New Answer

More QTP Interview Questions

what is virtual object?

2 Answers  


describe some problems that u had with automating testing tool?

0 Answers  


In qtp,how to interact tool & application build?

1 Answers  


What is difference between WR and QTP?

2 Answers  


where we save the scripts created in one project?

6 Answers   IBM,


How to extract the data in the below scenario and dump it in the excel? Link1 Link2 Link3 Link4 numberlink1 text text text numberlink2 text text text numberlink3 text text text numberlink4 text text text So, Here is my question? -- It is a matrix but is not a web table(QTP does not recognize it as a web table) -- Link1, link2 and link3 are links under which text is available -- numberlink1 to numberlink4 are again LINKS -- All the others displayed are text only I want to extract the data in the above scenario and dump it into an excel in the same scenario as it is displayed above. Kindly help.. Thank you

0 Answers  


How you will rate urself in QTP in the range of 0 to 5

0 Answers   Genpact,


What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?

0 Answers  


what is difference betweem class annd object?

1 Answers  


Is it possible to call out to Java from QTP?

2 Answers  


Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ

0 Answers   IBM,


How will you set a unique four digit number in an edit field in QTP?

2 Answers   IBM,


Categories