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

How to test results for qtp ?

0 Answers  


4. what is the use of Text output value in Qtp?

1 Answers   Wipro,


Why is action split used by qtp?

0 Answers  


Diff B/w Webserver and Client Server

2 Answers  


Does we use Classes and methods in realtime..?How wud we access methods in a class..?Thanq Guys..!

3 Answers  






what is descriptiveprograming? how to do object identification thrugh Descriptive and is possible smart identification or not

5 Answers   Syntel,


I am new to automation testing.I am learning QTP 9.2.my question is how to install the defferent addins(other than Default Addins) is there any defference in QTP after installing the Addins.where we can get the addins?

0 Answers  


In QTP, What is Global action and Local action?

0 Answers   Virtusa,


write vb script code to delete the duplicate values in an array.

4 Answers   ADP,


Hi All, I am using QTP for one of the Desktop application which uses Keyboard inputs like 'Tab ,F7 etc' and also mouse (Click). After recording when i am running the Script ,it is not able to recognize the keyboard inputs like F7,Tab and mouse Click because of which either i have to skip that part or manually do the inputs. Please answer how can i make script more flexible so that it will recognize both keyboard and mouse operations.

3 Answers  


What is CMMP and CMMH?

0 Answers  


Name the properties you would use for identifying a browser and page when using descriptive programming?

0 Answers  


Categories