kumar


{ City } hyderabad
< Country > india
* Profession *
User No # 101472
Total Questions Posted # 1
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 2590

Users Marked my Answers as Correct # 6
Users Marked my Answers as Wrong # 0
Questions / { kumar }
Questions Answers Category Views Company eMail

How to explain a banking project in interview as a test engineer???

Accenture,

QTP 2590




Answers / { kumar }

Question { Cognizant, 5778 }

How to get 120 using 5 zeroes, you can use any operator(+,
*, /...) in qtp.


Answer

Option Explicit
Dim temp,Factorial,i,j,k,x
temp=0
Factorial = 1
For i=1 to 5 step 1
x= Inputbox ("Enter a No. :") '(Enter Zero for
Five Times)
For j=x to 1 Step -1
Factorial=Factorial*j
Next
temp = temp+Factorial
Next
For k=temp to 1 Step -1
Factorial=Factorial*k
Next
Msgbox Factorial

Is This Answer Correct ?    3 Yes 0 No

Question { Cap Gemini, 4725 }

w r p syed then output was deys and click eysd and click ysde
and click sdey and click deys and click eysd............


Answer

x=Inputbox("Enter a String:")
l=len(x)
y=strreverse(x)
msgbox y
do until i=2
k=right(y,l-1)&left(y,1)
msgbox k
y=k
loop

Is This Answer Correct ?    3 Yes 0 No