Imagine you have a string variable that holder a credit
card (16digit). There are multiple ways of obtaining last
four digits of this number programmatically on a run time.
Name one; for practical purpose variables name is sCCnumber?

Answers were Sorted based on User's Feedback



Imagine you have a string variable that holder a credit card (16digit). There are multiple ways of..

Answer / smitha

Use Right function
sSubstring = Right (sString, iNumChars)

Eg. sCCnumber = "123456786543245"

Print ( right (sCCnumber ,4)

Is This Answer Correct ?    2 Yes 0 No

Imagine you have a string variable that holder a credit card (16digit). There are multiple ways of..

Answer / ruchi

String sCCnumber = "123456786543245"

sCCnumber=Substr(sCCnumber,12,4)

Is This Answer Correct ?    1 Yes 0 No

Imagine you have a string variable that holder a credit card (16digit). There are multiple ways of..

Answer / sateesh_t7101@yahoo.co.in

i think use Edit_get_selection
if wrong plz ....

Is This Answer Correct ?    0 Yes 0 No

Imagine you have a string variable that holder a credit card (16digit). There are multiple ways of..

Answer / uday kumar. a

Just use the mod operator.

Say x=1234567
then modValue=x mod 10000

The modValue has a value of 4567

Another technique is by using substring function.

Try solution for substring function

Is This Answer Correct ?    0 Yes 0 No

Imagine you have a string variable that holder a credit card (16digit). There are multiple ways of..

Answer / vimalkanth

Try using stuff method. The examples defined in help are
good enough.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Silk Test Interview Questions

Any tools to test the performance of SQL Quarries and SP? If any one are using them please provide the site names or software names...

1 Answers   IBM,


How to run all test cases in a testplan?

0 Answers  


What is the advantage of using do except instead of other error logging functions?

2 Answers   IBM,


Is there any way to retrieve content of the image i.e If image contains text... how to retrieve in silk test In QTP there is GetVisibleText is there any function similar to this in silktest...

3 Answers   AppLabs, HCL,


can any one please tell me the full form of .g.t in silktest datadriven method

0 Answers   STC,






What is stored in a test frame?

0 Answers  


What are testplan attributes?

0 Answers  


How to write the good frame work for application.

1 Answers  


How to test your defaultbasestate?

0 Answers  


What is a silktest testplan?

0 Answers  


Is there any way of passing values at runtime? Like scanf does in C.

0 Answers  


How can i used If Else statement in Silk Test. And my table name is login how can i get rowcount in the table having

1 Answers  


Categories