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

In "Property" the user-defied property can have two functions only, define that?

1 Answers   IBM,


How load testing can be done with silk international?

0 Answers  


What is multi-tagging?

0 Answers  


What are the possible failure scenarios and different types of errors you find in silkTest?

2 Answers  


How to add objects of other pages to a test frame?

0 Answers  






What is silktest project?

0 Answers  


what is the use of exception handling in Silk Test and how to use the commands?

4 Answers  


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

2 Answers   IBM,


What statement in for test is used to transfer control of the script out of the innermost nested for, for each, while switch or selected statement?

1 Answers   IBM,


What is custom object .what it contains. Difference between custom & standard objects.

3 Answers  


How to assign attribute values to test cases?

0 Answers  


How record a test case into a testplan automatically?

0 Answers  


Categories