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 use setroproperty?

0 Answers  


What In-string function will do?

1 Answers  


how to compare two excell sheets by using vbscript??

2 Answers  


Today only i joined in this site. Can u please tell me definition of parameterization. and how i can do the parameterization?

6 Answers  


How many lines of code in each script of QTP?

0 Answers  






how will you check how many members visited the website www.infosys.com?

0 Answers   Logica CMG,


How many actions we can write in a test?

7 Answers   TCS,


How u call functions in QTP Function to calculate the length of characters in a word -

5 Answers  


How to Test the mainframe application?

0 Answers   Unisys,


What are the advantages of QTP over WinRunner?

5 Answers   CTS,


Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly

0 Answers  


What are the details steps to connect a remote mysql database in QTP

1 Answers   Verizon,


Categories