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
How to assign a numeric value to a variable?
If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?
what types of bugs will we find out in banking projects for automation testing?
How will you convert a given number to long in vbscript?
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..
1. How do declare public variable in vb scripts?
What are the 2 ways to pass a value to the function?
Why is the use of exit do or exit for statements within loops discouraged?
How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...
How will you get the smallest subscript of an array in vbscript?
How are comments handled in the vbscript language?
Explain about operator precedence in vb script?
What is the extension of the vbscript file?
Which operator can be used to do an xor operation in vbscript?
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 ?