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

Could some one explain me how to create folder on the desktop from QTP?? This is an interview question

2 Answers   Clinical Soft,


if we can find the status of script in qtp that either it's pass or fail then why we need to put this status on different excel file or log file in hybrid framework .please let me know asap thanks

1 Answers   iCreate,


What are associated files in QTP?

2 Answers  


in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded

0 Answers  


can any one tell me the script to click on a button in the wintoolbar.

1 Answers  






How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

0 Answers  


What is the difference between "Call to copy of action", "Call to existing action" & "Call to winrunner action"?

5 Answers  


Discuss quicktest professional (qtp) environment?

0 Answers  


what is the hierachy of Descreptive programming?

3 Answers   Fiserv,


how can i replace any text from the qtp script with some anothere text

1 Answers   Livetek,


How Can I automate PDF forms using QTP9.2 ?

0 Answers  


how do find current links in webpage for ex: in yahoowebsite today mainpage is having 50 links and next day same page is having 60 links. if i run same programe it should display total links in webpage ?

4 Answers   CTS,


Categories