Hi, Anybody could tell me What is the 3rd Largest Number in
the series..Thanks in Advance..

Answer Posted / pushkar1206

a=array(1,22,3,40,12)
For i=0 to ubound(a)
For j=0 to ubound(a)
If a(i)>a(j) then
temp=a(i)
a(i)=a(j)
a(j)=temp
end if
Next
Next
print a(2)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a function in vbscript?

582


Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.

1720


Mention what is byref and byval parameters in vbscript?

577


i need to sort the data using qtp script for this how i need to write a qtp script

3215


How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2494






How to open browser in vb script?

579


What is sql loader? Explain the files used by sql loader to load file?

618


If else for do while select in vb script?

637


Explain about constants in vb script?

571


What is the use of option explicit in vbscript?

542


How will you convert a string to lower case string using vbscript?

553


How can the spaces from the string be removed?

589


Explain about tristate constants?

583


I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?

1544


What are the uses of vb script?

581