difference between do while and do until ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script

1356


This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?

1463


What are the different properties of an web object

1421


in my application,validation message has in japanise language.how to validate this message is appears properly or not

1510


Mention the different actions types of qtp.

569






How can i check items sorted or not in a weblist ? Give me the script for this...

1569


QTP script is not working on other's machine..

1529


how can we preform retesting(DATA driven test) using function please gine the code for loginpage

2262


Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??

1629


how to idetfy which test cases are automated?who will deside that plz tell me

1529


How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.

1532


whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

1558


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

1413


Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com

1340


Explain the use of action split in qtp?

553