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

How do you data drive an external spreadsheet?

1 Answers  


How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

0 Answers  


What test you perform mostly? Regression or retesting in your testing process?

0 Answers  


Hi, Can we open a test in qtp10 which is saved in qtp 9.2?

0 Answers  


write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..

0 Answers  






how do you done Data-driven test using MS-Word Instead of DataTable

3 Answers   IBM,


WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?

9 Answers   CTS,


What test cases can you automate using QTP?

0 Answers  


How you can make an action as re-usable action?

0 Answers  


What is LoadRunner?

1 Answers   Crea,


how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?

0 Answers  


What is difference between shared and local object repository?

0 Answers  


Categories