In: Computer Science
Give any simple and very easy example for: Programming and coding standards & Developing and implementing test plans
Programming and coding standards:
These kinds of standards offer a uniform appearance to the program even if it is written by different programmers. This helps in improving the code reliability and minimize complexity.
Example:
For example, take naming conventions for either variables or functions. According to programming standards and coding standards, the name of variables and functions should be
Keeping these standards in mind, if one has to use variables for temperature calculations and create a function for the same, the name of function can be something like 'TemperatureCalculation()' and the name of variables can be temperatureFirst, tempteratureSecond.
This helps the programmer understand what the function and variables are used for.
Developing and implementing test plans:
A test plan is developed by creating a document that includes activities of the program along with the testing scope. The test plan creation also depends on the various inputs given to the code and basic functionality of the functions.
Example:
For example, in the temperature program, before final execution or submission by the developer, the code will be tested by giving the function inputs and checking if the output is correct.
A Calculator program is another example.
Before final implementation, all the operations of the calculator are checked by giving inputs and checking if the output is correct. While developing testing plan in this case: