when you use For Loop, While..do, do..while? at what
situations which loop will use.

Answer Posted / satyanj

"For" loop can be used when the range of the iteration is
known. For ex: For i = 1 to 100....
"While..do" or "do..While" can be used when, the scenario
should satisfy the condition.
For Ex: While (<Condition>)...

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi i am trying for testing job for 3+ experience(fake) can u suggest me what type of projects i can keep in my resume and how much of knoeledge i should have abt that project.thnks in advance.urgt plz

2580


hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?

1734


What is select case statement?

602


does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

2504


I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..

1802






What is the difference between vbscript and vba?

600


Which loop is used in case of arrays in the vbscript language?

520


Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP

1871


What are the data types supported by vbscript?

578


Does VB/Win make standalone .EXE files?

2901


Explain the .wsf files?

531


Difference between dim,public and private variables in vb script?

525


What's the difference between vbscript and vb.net?

550


Which command is used for writing text on a page?

574


How to Enter Values on the Command promt using VB script

1530