Write VB script to test given number is Prime Number
Answer Posted / vijay kumar
Dim n
count=0
n=inputbox("enter a number")
For i=2 to n-1
If n mod i=0 Then
count=count+1
End If
Next
If (count/2)<> 0 Then
print "given number is normal number"
else
print "given number is prime number"
End If
Is This Answer Correct ? | 41 Yes | 14 No |
Post New Answer View All Answers
Mention what are the different types of recording modes in qtp? Which will be used when?
What is RTM (require ment tracebulity marix) fromate?
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?
Hoe can we do retesting using functions please give the code for it using login page
I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!
Can U Explain about QTP tool from older version to latest version also its differences?
How does quicktest professional identifies the object in the application?
How is test case write?
Explain quicktest professional testing process?
i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?
Explain the use of action split in qtp?
What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?
Your roles and responsibilities and daily tasks? (As automation tester)
what is the mail use of frame work(with detail). architecture for keyword driven frame work
tell me QTP standards ?plz