How to get 120 using 5 zeroes, you can use any operator(+,
*, /...) in qtp.
Answer Posted / sureshkumar
We can get 120 using factorial, i.e
Factorial (0) = 1 so that
(0! + 0! + 0! + 0! + 0!)! = 5! => 120
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?
Why to use option explicit in vb script?
Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function
Which keyword is used to declare a variable in the vbscript language?
why variable name should not exceed 255 characters?
How to delete a cookie using vbscript?
Is vbscript language a case-sensitive language and what does it mean?
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
What is the use of the recordset object and which statement is used to create such an object?
regular expression that will recognize a browser as long as its name property starts with mybrowser
How many types of procedures are available in the vbscript language?
What are the data types supported by vbscript?
Sub link() Dim k As Integer Dim rand As Integer Dim URL As String Dim foldernum As Integer Dim folderstring As String Dim filenum As Integer Dim filestring As String k = 1 'for AC Numbers For i = 11 To 40 foldernum = 0 foldernum = 1000 + i folderstring = CStr(foldernum) folderstring = Mid(folderstring, 2, 3) folder = "ac" & folderstring 'folderstring = Sheets(2).Cells(i, 1) ' for Number of Random files For j = 1 To 10 rand = Int(Rnd * (200 - 1) + 1) filenum = 0 filenum = 1000 + rand filestring = CStr(filenum) filestring = Mid(filestring, 2, 3) 'URL = "http://ceobihar.nic.in/PSCDROM/ac" & folderstring & "/i" & folderstring & "0" & filestring & ".pdf" URL = "http://www.elections.tn.gov.in/pdfs/dt1/" & folder & "/" & folder & filestring & ".pdf" ' URL =http://www.wb.nic.in/wbeco/EROLLS/PDF/English/A001/a0010105 .pdf Cells(k, 1) = folderstring Cells(k, 2) = folder Cells(k, 3) = filestring Cells(k, 3) = URL k = k + 1 Next j Next i End Sub plz define it
Mention what is the use of option explicit in vbscript?
when we use filter funtiom invb script(QTP)