What do we mean when we say that the English language is ambiguous? Give two examples of English ambiguity (other than the example used in this chapter) and explain the ambiguity. Why is ambiguity a problem for programming languages?
What will be an ideal response?
Something is ambiguous if it has two or more possible meanings. For example, the statement, “Mary is the nicest teaching assistant who has helped me all day long” might mean 1) of all the teaching assistants who have helped me today, Mary is the nicest, or 2) of those teaching assistants who have helped me for an entire day, Mary is the nicest. As another example, the statement, “Bananas help those who help themselves” might mean 1) bananas are good for those who attend to their own welfare or 2) bananas are good for those who eat as many bananas as they please. If a programming language statement could be interpreted in two or more ways, it would be impossible to predict with certainty how it would be interpreted and what result would be produced
You might also like to view...
Why are only a few changes necessary to reuse the code in Listing 3-2? Howwould you implement the changes using the “find and replace” functionality of a text editoror IDE?
What will be an ideal response?
Macros can increase processing time within a database while simultaneously reducing potential errors in the processing of data
Indicate whether the statement is true or false
On a form, the text box and its label would be considered two different controls
Indicate whether the statement is true or false
In the figure above, the gray area that says "Movies by Genre:" is an example of ____ navigation.
A. Global B. Local C. Screen D. Related