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

What is vbscript language used for and which earlier language is it modeled upon?

0 Answers  


Hi, I need to accept user inputs for login at runtime.I know i can use Inputbox but how to proceed further that i dont know. Thanks in advance

2 Answers  


write a vb script to display 3*3 matrix

1 Answers  


can any body give the code to write the function for given suppose user login with usrer id and pwd to yahoomail.after cliking "sign in"if it is valid user id the next page will display userid'message box.( Note u have to use excel sheet to retrive the userid's data)

3 Answers   Bally Technologies,


what is diff b/n these 2 programs 1) for i=5 to 1 step 2 msgbox "pass" next 2_) for i=5 to 1 step -2 msgbox "pass" next

5 Answers   Hexaware,






How to write functions and sub in vb script?

0 Answers  


how to acces the remote mechine using vb cript(QTP)

0 Answers   TCS,


Why is the use of exit do or exit for statements within loops discouraged?

0 Answers  


Mention what is the difference between vbscript and vba?

0 Answers  


How to write VB script for login module?

0 Answers  


How will you check that a variable is an array in vbscript?

0 Answers  


What are events in the vbscript language?

0 Answers  


Categories