Write VB script to test given number is Prime Number
Answer Posted / apoorva
bresult = False
Num = 907
For i = 2 To Num / 2
If Num Mod i = 0 Then
bresult = True
Exit For
End If
Next
If bresult = True Then
MsgBox "Prime"
Else
MsgBox "Not Prime"
End If
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
What are test settings and global settings?
Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out
Which features or drawbacks of QTP lead to the upgrade for a newer version?
Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work
Have you faced any problems with object repository?
Explain object spy in qtp.
what the difference between shared repository and per action repository?
How can you handle exceptions in qtp?
Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?
How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?
In the website, the protocol has been changed http: to https what you will do? Tell me your approach?
How to data driven test for Win objects in QTP ?
Explain hybrid framework with advantages and disadvantages?
How can you close the second opened browser?
if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp