Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


difference between do while and do until ?

Answers were Sorted based on User's Feedback



difference between do while and do until ?..

Answer / bhargavi

In both Do-until and Do-While,Code will be executed atleast once.
But,the difference is Do-until executes the code until the specified condition is reached.Once the condition is reached it stops executing the code inside the loop.

Do-While will execute the code till the specified condition is true. once the condition becomes false,it exits from loop.

Is This Answer Correct ?    2 Yes 0 No

difference between do while and do until ?..

Answer / viji

Do until will execute once when the condition is false whereas do while will execute only when condition is true

Is This Answer Correct ?    1 Yes 1 No

difference between do while and do until ?..

Answer / sarabjit

In do until , the code is run atleast once
eg: do
{
/// statement
} until i=0

whereas in while it checks whether condition is false/true , and then it executes the statement
while i=0 ******if i=0 is true*****
{
execute the statement
}

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?

0 Answers  


Where we save all scripts in the QTP

5 Answers   Ordain Solutions, Sathya Technologies,


WHAT IS PARAMITARIZATION?

8 Answers  


How to use parameterization in qtp?

0 Answers  


how to get the object count ?????????

8 Answers  


How QTP recognize the object??how to add objcts into object repository??

3 Answers  


i ve an excel in a QC folder. Thru my QTP script i want to open that excel in runtime. I am running this script from QC itself

4 Answers   TCS,


Hi, I am learning QTP. can someone please tell me a site from where i can learn QTP scripting Thanks in advance

0 Answers  


Hi friends, I have heard that it is required to have an application hosted in the same machine where we use QTP. Otherwise QTP may identify the objects incorrectly. Please clear me is it true.

3 Answers  


can u tell me website address of VBscript with examples.

2 Answers  


CAN I CALL A FUNCTION IN ACTION.IF YES PLEASE HELP ME

2 Answers   TCS,


How can we check whether a particular sheet loaded (existed) or not in Data Table.

7 Answers   TCS,


Categories