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

What is silktest agent?

1037


How load testing can be done with silk international?

1015


What is the vo browser extension?

1062


Can silktest switch browsers automatically?

1063


What are the problems you faced while identifying an object in silk?

2474


How record a test case into a testplan automatically?

1019


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?

2539


What is silktest host?

1094


What is a silktest testplan?

1053


What are the types of text lines in a testplan file?

1099


How to create a test frame?

1093


What are testplan attributes?

1018


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

1008


What is defaultbasestate?

1114


What is multi-tagging?

1117