Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / ankit

the first one will not print any message because the
condition is not true

the second one will print message pass 2 times

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to assign a numeric value to a variable?

1051


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

941


what types of bugs will we find out in banking projects for automation testing?

2165


How will you convert a given number to long in vbscript?

830


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

2169


1. How do declare public variable in vb scripts?

2038


What are the 2 ways to pass a value to the function?

882


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

980


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

3380


How will you get the smallest subscript of an array in vbscript?

1309


How are comments handled in the vbscript language?

946


Explain about operator precedence in vb script?

1013


What is the extension of the vbscript file?

987


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

1179


If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?

1968