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 to make arguments optional in a function?

1 Answers   Crea,


Did you use flatfiles in your projects?At what situation you used it?How can you upload flatfiles?

1 Answers  


where exactly we can't do the automation testing. give some examples

2 Answers   Virtusa, Wipro,


How to capture all the data of a webtable, weblist and combolist using QTP?

0 Answers   ITC Infotech,


What is the file extension of the code file & object repository file in QTP?

2 Answers  






What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........

10 Answers   ADP, AZTEC,


Can you write a script to check if the folder exists or not?

0 Answers  


How to handle the exceptions using recovery scenario manager In QTP?

2 Answers  


How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

0 Answers   TCS,


I have faced one issues while doing test in QTP. I have described the scenario below. 1. I have to test web application.In that i want to give input of drop down values in the application. 2. Suppose Drop down has 5 value "A,B,C,D,E".I would like to give value from data table of QTP. 3. I have changed the drop down value as variable in Keyword view and given values in data table "A,B,C,D,E" as one below one. 4. While i am running the script it could not identify the drop down value which is in Data Table.It shows message. How to make value identify by QTP?

1 Answers  


how i will connect oracle or microsoft acess database through manually written Script

2 Answers   Aurigo,


What is the difference between a Function and Action in QTP?

0 Answers   Wells Fargo,


Categories