Студопедия.Орг Главная | Случайная страница | Контакты | Мы поможем в написании вашей работы!  
 

Ex. 2. Match the terms with their definitions



1. Programming   a) basic language which consists of binary codes;
2. Machine code   b) programming language such as C, Java or Visual BASIC;
3. Assembly language c) writing computer programs;
4. High-level language d) low-level language translated into machine code by an assembler;
5. Java applet   e) software which converts a source program into machine code;
6. Compiler   f) language used to create and format documents for the Web;

Ex. 3. Work in groups of three. Read one of the texts below and complete the Table. When you have finished exchange information with the others in your group to complete two similar Tables.

Types of errors  
Definition  
Example  
Ways to avoid or deal with this kind of error  

A. System errors affect the computer or 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 to it. Then the computer would warn you by a simple massage on the screen, like “printer is not ready or available”.

B. Syntax errors are mistakes in the programming language (like typing PRNIT instead of PAINT). 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 also 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.

C. Logic errors are much more difficult to detect than syntax 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 screen end then print ‘hello’. Here is a code for this:

10// Message 30 CLS
20 PRINT ‘Hello’ 40 END.

The 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 in the code.

Ex. 4. Match these problems and solutions.

Problems Solutions
1. Connect a computer to a telephone line. a) write code to check a peripheral is present before any data is sent;
2. Identify items for pricing. b) use the debug command;
3. Add extra facilities to a computer. c)add more memory;
4. Get more file storage space. d) format the disk;
5. Find syntax errors. e) use a removable disk;
6. Avoid marking the surface of a CD-ROM. f) install and expansion card;
7. Improve the speed of your computer. g) install a modem;
8. Avoid system errors. h) fit a bigger hard disk;
9. Prepare a new disk for use. i) use barcode labels;
10. Transfer information between computers. j) hold it by the edges.

Ex. 5. Read the text and tell about Object-Oriented Programming.





Дата публикования: 2015-03-29; Прочитано: 1831 | Нарушение авторского права страницы | Мы поможем в написании вашей работы!



studopedia.org - Студопедия.Орг - 2014-2024 год. Студопедия не является автором материалов, которые размещены. Но предоставляет возможность бесплатного использования (0.006 с)...