Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qtp interview question
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
hi all,

I faced below interview questions please provide me VB Script for those

1) v- 4(root 4) to get 2 write the vb script

2)12.34567 how to round last three digits

3)how to minimize and maximize a window using vb script

Regards,
raaj
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
for second question - You can use Round built-in function to round the decimal number
Code:
Round("12.34567",3)
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
@Raaj,

There are functions available for your first and second question.
1. Use SQR function. Refer QTP help
a=SQR(4) will return 2.
2. Use Round function for this.
3. if you are talking about browser, there are methods (such as Maximize, minimize) available to do that.

Regards,
Ankesh
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Question about QTP tutorial - Yousuf 1 2,638 11-15-2013, 09:25 PM
Last Post: Yousuf
  Interview question raaj123 1 1,758 05-22-2013, 10:43 AM
Last Post: venugqtp
  QTP 10's Object Repository Checkpoints and Output Objects question Tonya S 2 5,008 09-09-2011, 02:09 AM
Last Post: Tonya S
  QTP AOM related Question - need solution prodipto_dutta 6 9,379 05-04-2011, 05:31 PM
Last Post: prodipto_dutta
  QTP and VBscript - noobie question gplayer 0 2,443 03-11-2011, 06:50 PM
Last Post: gplayer

Forum Jump:


Users browsing this thread: 1 Guest(s)