Good evening,
I have a question from my ITP. 140.01- Client side scripting.
Write an English sentence with understandable semantics but incorrect syntax. Write another English sentence which has correct syntax but has semantic errors.
Can you please help with this?
How to Think Like a Computer Scientist: Learning with Python 3 Documentation
Release 3rd Edition
An English sentence with understandable semantics but incorrect syntax:
I often going out to play football with my friends.
Explanation: Here, the author wants to say that he ofter go out to play football with friends, but the usage of going is incorrect.
English sentence which has correct syntax but has semantic errors.
The panda eats, shoots and leaves.
Explanation: Here the statement is syntactically correct but the placement of the comma has made the statement semantically wrong. Instead it should be:
The panda eats shoots and leaves.
Get Answers For Free
Most questions answered within 1 hours.