Главная Случайная страница


Полезное:

Как сделать разговор полезным и приятным Как сделать объемную звезду своими руками Как сделать то, что делать не хочется? Как сделать погремушку Как сделать так чтобы женщины сами знакомились с вами Как сделать идею коммерческой Как сделать хорошую растяжку ног? Как сделать наш разум здоровым? Как сделать, чтобы люди обманывали меньше Вопрос 4. Как сделать так, чтобы вас уважали и ценили? Как сделать лучше себе и другим людям Как сделать свидание интересным?


Категории:

АрхитектураАстрономияБиологияГеографияГеологияИнформатикаИскусствоИсторияКулинарияКультураМаркетингМатематикаМедицинаМенеджментОхрана трудаПравоПроизводствоПсихологияРелигияСоциологияСпортТехникаФизикаФилософияХимияЭкологияЭкономикаЭлектроника






Типы ошибок





(Types of Error)

 

1. Прочитайте текст и ответьте на следующие вопросы:

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

2. What are the ways to avoid or deal with 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.

 

2. Составьте реферат текста.

Date: 2015-12-13; view: 1002; Нарушение авторских прав; Помощь в написании работы --> СЮДА...



mydocx.ru - 2015-2024 year. (0.01 sec.) Все материалы представленные на сайте исключительно с целью ознакомления читателями и не преследуют коммерческих целей или нарушение авторских прав - Пожаловаться на публикацию