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 type of framework u r using in ur organization
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
Explain the features and benefits of quick test pro(qtp)?
What are the various automation frameworks available in qtp?
There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?
What are the key points to create a framework in QTP for oracle forms?
I want to do QTP Certification what is the pattern of Question paper.
What are the things(properties, and other details) will be recorded while recording an object using normal recording?
how to prepared for first for the first interview?
How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.
hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me
How to build scripts that access data from external sources?
what is impact analysis on regression testing?
The hybrid framework can be implemented for any application. Is it true?
Explain xml checkpoints.