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

While testing .net applications with QTP 9.1 in normal recording mode, QTP records my unintentional mouse clicks and window dragging which I don't want. But I can't stop QTP recording those mouse clicks and window dragging. Can somebody let me know how I can get rid of it, please ! Thanks.

1 Answers  


Give one example of Standard checkpoint in qtp 10?

1 Answers  


how to reverse a string with out using string or predefined function,ex:string is " i love india". the output should be like this "i evol aidni"

3 Answers   Aspire,


How vl i prioritize the actions when i have 10 actions A1, A2, A3......A10. I want to run action as follows A1,A5,A6 and A10. How i can do it. Thanks in Advance to u.

7 Answers   IBM, Wipro,


Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

0 Answers  






i'm using QTP 8.2, How should i select(browse) object repository from desktop(or from local local drives like C:\,D:\)?. Note:- object repository to select(browse) is been sent by some other person who is using QTP 9.0

1 Answers  


What does VBS file contain?

1 Answers  


what is selective recording ? and normal recording?

1 Answers   iSoft,


what is meant by source control?

0 Answers   Ordain Solutions,


in qtp how i can retrive from a browser how many links are there.means total no of links used in a browser

4 Answers   Verizon,


Hi, how can we retrieve a specific value from Excel Sheet (Not datatable. for externel file).i mean to say from .xls file. and also tell me from xml file and .doc file. and how can u parameterize ur script from .xls file.(Not data table).

2 Answers   Cap Gemini,


DEFECT LIFE CYCLE,WHO PUT THE STATUS AS OPEN

4 Answers   IGT,


Categories