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.
You might also like to view...
A sequence of plaintext elements is replaced by a __________ of that sequence which means that no elements are added, deleted or replaced in the sequence, but rather the order in which the elements appear in the sequence is changed.
A) ?permutation B) ?diffusion ? C) ?stream ? D) ?substitution
Explain the primary reason that project managers monitor project work activities.
What will be an ideal response?
Function float can raise a(n) __________ exception if its argument cannot be convert- ed to a floating-point value.
Fill in the blank(s) with the appropriate word(s).
Press the ________ key to close the range finder
Fill in the blank(s) with the appropriate word(s).