medium
Single Answer
0

Leonidas is writing a software program that calculates the sales tax for online orders placed from various jurisdictions. The application includes a user-defined field that allows the entry of the total sale amount. Leonidas would like to ensure that the data entered in this field is a properly formatted dollar amount. What technique should he use?

Answer Options

A

Limit check

B

Fail open

C

Fail secure

D

Input validation

Correct Answer: D

Explanation

Input validation ensures that the data provided to a program as input matches the expected parameters. Limit checks are a special form of input validation that ensure that the value remains within an expected range, but there was no range specified in this scenario. Fail open and fail secure are options when planning for possible system failures.