Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Англійська мова - методичка .doc
Скачиваний:
239
Добавлен:
11.05.2015
Размер:
1.64 Mб
Скачать

1. Divide the text into the logical parts and give a title to each one.

2. Put questions to the text.

3. Discuss it with your groupmates.

Unit 3

Text Study: Running and Testing the Computer Program.

Additional Text: Programming Languages and Functions.

Grammar: The Gerund.

Text Study

I. Pre-reading Exercises

1. Repeat the words in chorus:

A manufacturer, a schedule, utility, executive, assemblers, compilers, interpreters, a linkage, a librarian, errors, responsibility, thoroughly, to verify, debugging.

2. While reading the text you will come across a number of international words. Try to guess what Ukrainian words they remind of you:

A monitor, functions, the service, centers, functions, an object, a catalog, a code, a processor, logic, planning, a test, a programmer, calculation.

3. Pay attention to some grammatical points:

1) These programs are called control programs, language programs and utility programs. 2) Examples of service programs include linkage editors to prepare object programs for execution, a librarian to catalog programs into a library area on magnetic disc, utility programs to transfer data from device to device, and sort­merge programs for sorting data on magnetic tape or disk. 3) As for testing of the computer program, there are two kinds of errors or bugs with which programmers must deal. 4) The first type is the coding error. 5) Such errors are syntax errors that prevent the language processor from successfully translating the source program to object program code. 6) The computer program can be successfully translated, but the program does not produce the desired results. 7) 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.

II. Reading

Read the text and be ready to find in the text the answers to the following questions:

  • How are programs called?

  • What are there two kinds of errors or bugs with which programmers must deal?

Running and Testing the Computer Program

The operating system is a collection of programs provided by the computer's manufacturer that allows us to schedule jobs for the computer, to translate source programs into object programs, to sort data stored on secondary storage devices, and to copy data from any input device to any output device. These programs are called control programs, language programs and utility programs.

The control program (often called the supervisor, monitor, or executive) is a main-storage-resident program. Its functions are to schedule jobs, schedule input and output for our programs and to monitor the execution of our programs.

The language processors are programs that translate source programs into object programs. There are three types of language processors: assemblers, compilers, and interpreters. Each language has its own language processor.

The service programs are programs that are commonly used in all data processing centers. They have functions that are required by everyone using a computer. Examples of service programs include linkage editors to prepare object programs for execution, a librarian to catalog programs into a library area on magnetic disc, utility programs to transfer data from device to device, and sort ­merge programs for sorting data on magnetic tape or disk.

As for testing of 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.