О. В. Фёдорова е. В. Мезина е. В. Хамис английский язык в сфере информационных технологий и коммуникаций учебное пособие


Text C Testing the computer program



бет23/128
Дата02.01.2022
өлшемі0.79 Mb.
#454247
түріУчебное пособие
1   ...   19   20   21   22   23   24   25   26   ...   128
ПОСОБИЕ ИИТиК Федорова,Мезина, Хамис 2014

Text C

Testing the computer program

There are two kinds of errors or bugs with which programmers must deal. The first type is the coding error. Such errors are syntax errors that prevent the language processor from successfully translating the source program to object program code. The language processor identifies the nature and the location of the error on the source program listing, so these errors are relatively easy to find and correct. The second type of bug is the logic error. The computer program can be successfully translated, but the program does not produce the desired results. These errors are generally much more difficult to find and to correct than are coding errors. Logic errors can be avoided through careful planning of the program logic, but it is the programmer's responsibility to test thoroughly all of the program's functions, in order to verify that the program performs according to specifications.

There are many tools provided to the programmer to help in debugging the program logic. These tools are called debug packages or tracing routines. They assist the programmer in following the logic by printing out calculation results and field values used in making logic decisions in the program. In a few cases it may be necessary to use a memory dump — a printout of the instructions and date held in the computer's memory — in order to find the cause of logic errors.
UNIT II



Достарыңызбен бөлісу:
1   ...   19   20   21   22   23   24   25   26   ...   128




©dereksiz.org 2024
әкімшілігінің қараңыз

    Басты бет