Poll: rate the questions
You do not have permission to vote in this poll.
good
0%
0 0%
average
0%
0 0%
wrost
0%
0 0%
extra ordinary
0%
0 0%
superb
0%
0 0%
Total 0 vote(s) 0%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Amazing Interview Questions
#1
Not Solved At 
I want to know the answers following Questions.
write a script for
1. How a function can return two values.? write the code for the function.. ?
2. compare two date "10/10/2013" and "10-octomber-2013" and return true or false.?
3. Write a regular expression for dynamic 6 integer values in the expression "amanjain888073bhilwara"
4. write a script for check the content in a web table and if correct then check the check box at the end of row.?
5. write a script for identifying that multiple web browser are already open and we have to close all the browser except one browser "internet explorer"?
6. What is difference between child-objects and child-items?
7. write a script for click on a particular (15) link in a list of links (like 20 links are their in a web page)
8. how can a run time object is identified by qtp during execution of script.

manual testing.
1. If their is any mistake in the "name" of visiting card, then what will be the severity and priority of this. ?
2. what will be the "verification test cases" for the gmail login page.?


Attached Files
.txt   question.txt (Size: 1.04 KB / Downloads: 160)
Reply
#2
Not Solved
Please write your tentative answers first, rest will follow then.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Not Solved
1. How a function can return two values.? write the code for the function.. ?
Code:
'''using two output parameters while defining a function
'' defining function with one input and two output parameters
Function TwoValues(inVal, outVal1, outVal2)
'''' processes
''....
''....

''assigning values to output parameters
   outVal1 = 1234
   outVal2 = 2222
End Function

''calling the function
TwoValues x, y, z
MsgBox y
MsgBox z

Code:
'''using arrays
Function TwoValues()
TwoValues = Array("abcd", "efgh")

End Function

x = TwoValues()

MsgBox x(0)
MsgBox x(1)

2. compare two date "10/10/2013" and "10-octomber-2013" and return true or false.?
Code:
date1 = "10/10/2013"
date2 = "10-october-2013"

dateArray1 = Split(date1, "/", -1, 1)
dateArray2 = Split(date2, "-", -1, 1)

If dateArray1(0) = dateArray2(0) And _
UCase(MonthName(dateArray1(1))) = UCase(dateArray2(1)) And _
dateArray1(2) = dateArray2(2) Then
    MsgBox True
Else
    MsgBox False

End If
Reply
#4
Not Solved
or you can use the date functional also here.

Code:
A="10-octomber-2013"
A=Cdate(A)

B="10/10/2013"
B=Cdate(B)

if DateDiff("d",A,B)=0 then
msgbox True
else
msgbox False
End if
Reply
#5
Not Solved
3.
"amanjain\d{4}bhilwara"

sorry use the below one.
"amanjain\d{6}bhilwara"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Interview Questions praveen.sharma 4 5,843 08-23-2022, 02:07 PM
Last Post: ahmad3029
  Interview Questions supputuri 12 13,332 08-23-2022, 11:45 AM
Last Post: ahmad3029
  Interview question nandha 0 1,856 03-28-2018, 03:32 PM
Last Post: nandha
  Few Interview Question asked in various Companies.. shailesh.2.singh@bt.com 1 3,419 08-08-2017, 09:24 AM
Last Post: mallika199317@gmail.com
  Interview Question raghavaqtp 1 3,754 12-20-2014, 09:55 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 3 Guest(s)