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 select a group of test cases in a testplan to run?

550


How to download latest silk test trial version?

660


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

1899


Can silktest run on mac?

641


How to specify a browser extension to a web application?

597






How to open an existing silktest project?

560


What is the dom browser extension?

585


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?

2060


What is the syntax of ui object identifier used by dom extension?

592


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

592


What is multi-tagging?

605


How to create a test frame?

626


What are the important aspects of a test case?

564


Want to lear from basic about silktest and how to write scripts. Please let me know if you know any website

2616


How record a test case into a testplan automatically?

560