adspace


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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

HOw to add the recovery file at runtime to the test file .

2293


Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar

3306


Hi friends did any budy attend accenture system test for qtp? if any budy pls drop questions.not only accenture any other mnc company which you attended system test(QTP)?it may helpful to others also

2396


I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?

1301


we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?

2151


Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B

3446


Hi, how can we check or avoid the memory leakage in QTP9.2?

2166


how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods

2015


what is actually contain test report? can anybody post the test report

2089


Hi All, How to get repeated word in string . Thanks Balaji

1423


can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process

1869


How are actions and functions different in QTP?

1151


hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com

1941


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

2112


How to give a call to another action from one action?

1169