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 the vo browser extension?

555


How to create and edit a testplan?

585


What is defaultbasestate?

606


How to define values for a testplan attribute?

596


What is a test frame?

625






What are testplan attributes?

600


What are the important aspects of a test case?

576


How to test your defaultbasestate?

613


What is silktest project?

575


What is stored in a test frame?

631


How to specify a browser extension to a web application?

613


can we test the application by inserting checkpoints using silktest as we do in qtp and winrunner and also what are the automation frameworks in silktest

2834


How to run all test cases in a testplan?

628


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

606


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

2636