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



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

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

More VB Script Interview Questions

write a vb script to display the size of the folder,date created and name of the folder

1 Answers  


How to find arry size in qtp vb script

2 Answers   Cap Gemini,


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..

0 Answers  


how to check whether link is disabled in QTP??

0 Answers  


if there is any string in a given format like as "company name employeecode date" then we have to fetch employeecode form string for ex-string is "capgemini12345june2013" then we have to fetch 12345 by using vb script so guys how can we do that please reply it.

3 Answers   Cap Gemini,






what is the code in QTP to take screen shot? Please send me any one to my mail id. my mailid is manu.sanepalli@gmail.com

4 Answers   TCS,


Mention what if you do not specify anything when you call a procedure?

0 Answers  


write a vb script to display first 5 odd numbers from 1 to 100

4 Answers  


Illustrate briefly about the different types of statement

0 Answers  


What methods are used to create text files and open text files in the vbscript language?

0 Answers  


Which operator can be used to do an xor operation in vbscript?

0 Answers  


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

0 Answers  


Categories