ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
write the code to reverse a string without using Strrev 
built in function.
 Question Submitted By :: Damodhar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: write the code to reverse a string without using Strrev built in function.
Answer
# 1
strrev("star")
 
Is This Answer Correct ?    0 Yes 7 No
Guest
 
  Re: write the code to reverse a string without using Strrev built in function.
Answer
# 2
Try this:

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''Script Starts Here''''''''''''''''''''''''''

Dim i
Dim iStrLen
Dim strOut
Dim strTmp
Dim strMyString

strString=InputBox("Please enter the string to be 
reversed:")
iStrLen = Len(strString)
For i = 0 To Len(strString) - 1
strOut = Mid(strString, iStrLen - i, 1)
strTmp = strTmp & strOut
Next

strMyString = strTmp
msgbox strMyString



''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''Script Ends Here''''''''''''''''''''''''''

Please let me know if it helps
 
Is This Answer Correct ?    9 Yes 0 No
Jay Prakash
 
 
 
  Re: write the code to reverse a string without using Strrev built in function.
Answer
# 3
Option Explicit
Dim Str, Cnt , Rstr , i

Str = "Shiva"
Cnt = len(str)

For i = 1 to Cnt
	Rstr = mid(str , i ,1) &Rstr
Next
Msgbox Rstr
 
Is This Answer Correct ?    2 Yes 0 No
Prasad
 
  Re: write the code to reverse a string without using Strrev built in function.
Answer
# 4
Str = InputBox("Please enter the string to be reversed:")
Cnt = len(str)
For i = 1 to Cnt
	Rstr = mid(str , i ,1) &Rstr
Next
Msgbox Rstr
 
Is This Answer Correct ?    2 Yes 0 No
Bhaskar
 
  Re: write the code to reverse a string without using Strrev built in function.
Answer
# 5
'Code to reverse a string without using strrev using 
functions

Function stringreverse(a)
strlen=len(a)
For i = strlen to 1 step -1
	strrev=mid(a,i,1)
	stn=stn+strrev
Next
	msgbox stn
End function 

Dim strrev,strlen, strname,stn
a=inputbox ("enter the string to reverse")
stringreverse(a)
 
Is This Answer Correct ?    0 Yes 0 No
M.bindu Kumar
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
with out object repository i need to launch IE and then navigate to a login page and then operate the objects within the page. How will be the script? Ordain-Solutions2
How we can call the scripit from another scripit in QTP?,Not a call Action  8
How you automate testscripts one by one or moduelwise or all at once  2
How i can change shared repository to per test repository in qtp  1
What is the diffrence bettween QTP 9.0 and QTP 9.1?  1
Please explain me i am using QTP 9.5 ,i am creating re usable scripts,i have to pass data from one local sheet to another local sheet.for example i am creating emploee information, (data is in action 2 local sheet),In this data table emplyeee number will get,i have to pass employee number to another reusable script search data (action2 local data sheet)  2
How to make arguments optional in a function? Liquid-Crystal2
how will check the links in multiple pages at a time  2
where is the bitmap checkpoint be saved  1
how you update scripts in qtp?  1
how much space occupies in object respository by default? VSoft5
1.How recognize QTP Dyanamic Image? (suppose tha wedpage contains 3 logos..1 square 2.circle 3.rectangel)there changing at same position how to capture that) Synechron2
How to load object properties to object repository through scripting.give one example IBM6
How to export QTP results to an ".xls" file?  1
Iam doing automation in Oracle App's using QTP? In App's because of some functional setup, keep on changing my script flow. for this how can i use the recovery sceanrio?? Please help me?  1
HOW MANY WAYS ARE THERE TO CPY TEST IN TEST LAB IGT2
How many actions we can create with in a test?  4
How to parameterize Object Repository?  2
give one example where you have used regular expression? Ordain-Solutions6
DEFECT LIFE CYCLE,WHO PUT THE STATUS AS OPEN IGT4
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com