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

Can we use regular expressions to facilitate dynamic objects identification by SilkTest?

4 Answers  


What is stored in a test frame?

0 Answers  


How to download latest silk test trial version?

0 Answers  


What is present in review report .

1 Answers  


Can we customise the result file?

1 Answers  






In for test there are three pass modes for function arguments. They are rarely used since pass mode always default to the most used one. Pls name them and specify which one is a default?

3 Answers   IBM,


Where is a testplan stored?

0 Answers  


Can u Tell me why we use Advanced tool like Silk Test other than QTP, Or WIN RUNNER And others what is the advantage of these compared o others

4 Answers   Wipro,


How to Write user defined functions?

3 Answers  


How dom browser extension identify a web application ui object?

0 Answers  


How can you get the moving contents of flash image using silktest.

1 Answers  


How to do text verification point in silktest for a specific content.Suppose in the text editor, i have typed some "aaaa,bbbb,cccc,dddd" in different lines. now i want to capture only aaaa of first line from the text editor. How can i do it.Can any one help me.

3 Answers  


Categories