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
How to use Environment parameterization? Explain with an example.
In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!
Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.
Which environments are supported by hp qtp?
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
How is test case write?
Hi All, issue is related to handling pop up script generated in IE, and run on mozilla. In App Under Test, when we get the alert pop ups, we just click ok button. if we need to run the same code on mozilla it will not identify . so we will check browser if browser(*).dialog(IE object).exits browser(*).dialog(IE object).winbutton(OK).click else 'by default mozilla browser(*).dialog(mozilla object).page(*).webbutton(OK).CLICK END IF But my qustion is. Do we write the above piece of code where ever we get such kind of pop ups from the application like alert pop up, confirmation pop up.... OR do we have any other alternative way to do this by using any functions in Recovery Scebarios? If Any of u know idea please do help me in this regard. or send answer to kravimb@gmail.com
How is a Step generator used in UFT?
What is output value? How many types of output values are there in qtp?
1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?
how interviews will be on QTP?
How does you test a weblink which is changing dynamically?
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
What are the benefits of quick test pro(qtp)?
What is the syntax for how to call one script from another?