For the following three items, find the problems in each of the following error messages produced by a source code compiler. Briefly state your reasoning and suggest a better message.

What will be an ideal response?

a) SYNTAX ERROR

Does not clarify the error.
Improved message:
SYNTAX ERROR: missing “(“

b) INCORRECTLY FORMED RHS OF EXPRESSION. BAILING OUT ON LINE 6.

What is RHS? Bailing out is very drastic.
Improved message:
Correct RHS is c = a + b. Complication correct through line 6.

c) ILLEGAL OPERATION. PROCESS KILLED!!!

Also very drastic and uninformative.
Better message:
Process ended at line 3 due to division by zero.

Computer Science & Information Technology

You might also like to view...

The SmartArt type that shows proportional relationships with the largest component on the top or bottom.

A. Matrix B. Pyramid C. Relationship

Computer Science & Information Technology

A ________ resume is best used by persons with a strong, solid work history

A) chronological B) functional C) hybrid D) blended

Computer Science & Information Technology