Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to test your defaultbasestate?

1079


In SilkTest we have a function Except Log which displays the path of the error occured in a Script.In QTP do we have any function like that?

2494


How to select a group of test cases in a testplan to run?

974


How to create a new silktest project?

986


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

3024


What is defaultbasestate?

1085


What are the important aspects of a test case?

1013


What is stored in a test frame?

1051


How to run a test case from a testplan file?

1095


How to create and edit a testplan?

1006


What is a test frame?

1010


What is silktest agent?

982


How to record a test case?

1011


What is the vo browser extension?

1011


Can silktest switch browsers automatically?

1013