Answer Posted / vishnu
flag = 1
n=cint(inputbox("Enter a number to find whether it is Prime
or Not"))
For i=2 to (n-1)
If n mod i = 0 then
flag = 0
Exit for
End if
Next
If flag = 1 then
msgbox "Yes! It is a Prime number"
Else
msgbox "No! it is not a prime number"
End if
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?
hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?
How do Parameterization and Data-Driving relate to each other in QTP?
can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com
If I give some thousand tests to execute in two days what do you do?
What are the methods of the TextStream object that are used for reading from a text file?
How many types of parameters are there?
in a web page hoe to check the dynamic links that rechabging with out using regular expressions
If u r using library files (Instead of Check Points) , How do u do bitmap check ?
i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
How many types of run modes are there in qtp?
How the smart identification is used in real time?Please explain with an example
How many add-ins comes by default with quicktest professional (qtp)?
I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian