answersLogoWhite

0

Before your program makes use of any data gathered from outside the program, whether by user input, file input, or reading from a database, you should validate that information - you need to check to make sure it is the correct type and format of data before you feed it in to your program.

If your program expected a number but was given a string, bad things would likely happen.

People who disregard validation leave themselves open to errors, crashes, and buffer overflows.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What does valid means in scientific terms?

A conclusion or assertion would be considered to be scientifically valid if the data are accurate and the reasoning based on that data is, as far as we can tell, correctly reasoned. Science does not deal in absolute truth, which is why scientists prefer the term valid, which indicates that as far as we presently know, this statement is true, although new data and/or new reasoning may cause us to change our minds in the future.


What is true controlled experiments produce valid data valid experiments produce controlled data controlled data produces valid experiments?

With controlled experiments it is taken into consideration what possible variables there could be and it is taken into account when conducting the experiment. This would mean that controlled experiments would produce more valid data.


How do you insert a hyperlink in Access?

There is a hyperlink data type. If you set a field as that data type, such as for a website, then you can type in a valid address into the field and it will be stored as a hyperlink.There is a hyperlink data type. If you set a field as that data type, such as for a website, then you can type in a valid address into the field and it will be stored as a hyperlink.There is a hyperlink data type. If you set a field as that data type, such as for a website, then you can type in a valid address into the field and it will be stored as a hyperlink.There is a hyperlink data type. If you set a field as that data type, such as for a website, then you can type in a valid address into the field and it will be stored as a hyperlink.There is a hyperlink data type. If you set a field as that data type, such as for a website, then you can type in a valid address into the field and it will be stored as a hyperlink.There is a hyperlink data type. If you set a field as that data type, such as for a website, then you can type in a valid address into the field and it will be stored as a hyperlink.There is a hyperlink data type. If you set a field as that data type, such as for a website, then you can type in a valid address into the field and it will be stored as a hyperlink.There is a hyperlink data type. If you set a field as that data type, such as for a website, then you can type in a valid address into the field and it will be stored as a hyperlink.There is a hyperlink data type. If you set a field as that data type, such as for a website, then you can type in a valid address into the field and it will be stored as a hyperlink.There is a hyperlink data type. If you set a field as that data type, such as for a website, then you can type in a valid address into the field and it will be stored as a hyperlink.There is a hyperlink data type. If you set a field as that data type, such as for a website, then you can type in a valid address into the field and it will be stored as a hyperlink.


When valid bit is 1 it is always hit rate Explain by example?

When the valid bit is set to 1 in a cache, it indicates that the corresponding cache line contains valid data that can be used for access. This means that any request for data associated with that cache line will result in a hit, as the data is guaranteed to be valid. For example, if a CPU requests data and the cache line's valid bit is 1, the cache returns the data directly from that line, confirming a cache hit. Conversely, if the valid bit were 0, it would signify that the data is invalid or not present, leading to a miss.


When is the mean not a valid statistic to describe a set of data?

The population data may be skewed and thus the mean is not a valid statistic. If mean > median, the data will be skewed to the right. If median > mean, the data is skewed to the left.


Which is the valid data type in access?

number


What does data validation mean in ict?

if it is valid or not


Which methods is a valid way to present collected data?

publish the data in an academic journal


What is the valid range of numbers for int type of data?

The valid range of numbers for int is 32768 to 32767.


Three different ways for checking Data is Valid?

One can check if data is valid by checking if a value is within acceptable set of values; by checking if a value is of the correct data type (such as Boolean, integer, double, or string); or by checking is data is formatted correctly.


Which is not a valid report view in access?

In Microsoft Access, a valid report view includes options like "Print Preview" and "Layout View." However, "Data Sheet View" is not a valid report view; it is used for tables and queries. Reports are specifically designed for presenting formatted data, while Data Sheet View is oriented towards data entry and manipulation.


What is the next step if the data from an investigation do not support the original?

Recheck data and if still valid, scrap hypothosis