Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Information Technologies Development and Perspe...doc
Скачиваний:
19
Добавлен:
01.04.2025
Размер:
2 Мб
Скачать
☆

9. Match the terms (1-5) with the definitions (a-e).

1. Java;

2. applet;

3. plug-in;

4. platform-independent;

5. object-oriented programming.

a) an auxiliary program that enables web browsers to support new content, for example animation;

b) software that can run on any operating system;

с) an island in Indonesia, coffee (in American slang), and a programming language for internet applications;

d) a computer programming technique that allows the creation of objects that interact with each other and can be used as the foundation of others; used to create graphical user interfaces;

e) a small Java application, usually designed to run automatically within a web page.

10. Read the text «Types of Errors» and answer the questions:

1. What types of errors are mentioned in the text?

2. What are the ways to avoid or deal with errors?

Types of Errors

System errors affect the computer on its peripherals. For example, you might have written a program, which needs access to a printer. If there is no printer present when you run the program, the computer will produce a system error message. Sometimes a system error makes the computer stop working altogether and you will have to restart the computer. A sensible way of avoiding system errors is to write code to check that peripherals are present before any data is sent into it. Then the computer would warn you by a simple message on the screen, like “printer is not ready or available”.

Syntax errors are mistakes in the programming language (like typing PRNIT instead of PRINT). Syntax errors cause the program to fail. Some translator programs won’t accept any line that has syntax errors. Some only report a syntax error when they run the program. Some languages contain special commands such as debug, which will report structural errors in a program. The programming manual for the particular language you’re using will give details of what each error message means.

Mistakes that are much more difficult to detect than syntax errors are called logic errors. This is because a program containing logic errors will run, but it won’t work properly. For example, you might write a program to clear the screen and then print “hello”. Here is a code for this:

10//message 30 CLS

20 PRINT ‘Hello’ 40 END

This code has a logic error in it, but the syntax is right so it will run. You can get rid of logic errors from simple programs by “hand testing” them or doing a “dry run” which means working through each line of the program on paper to make sure it does what you want it to do. You should do this long before you type the code.

11. Give a loose translation of the extracts:

1.The conversion of symbolic languages

As we see, most of the symbolic languages are oriented toward the particular application areas of business or science (math). The one problem with all symbolic languages is that none of them can be understood by a computer. The symbolic languages may say AP, ADD, or use a "plus" sign to indicate an addition step, but the only thing that means addition to a computer is its binary machine code. We have symbolic programs that are relatively easy for humans to understand, but they cannot be understood by computers. On the other hand, we have machine code that is understood by the computer, but it is difficult for humans to use. The solution is a translator that translates the symbolic program into machine code. The translator allows the human to work with relatively easy-to-understand symbolic languages and it allows the computer to follow instructions in machine code. The translation of symbolic instructions to machine code is accomplished through the use of a program called a language processor. There are three types of language processors. They are called assemblers, compilers, and interpreters. Each translates symbolic instructions to machine code, but each does it differently.

(The translator is a program itself. It is part of a group of programs, called the operating systems, that help us to use the computer.)

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]