WJEC A-Level Computer Science 601-5345-3
Hardware: Architecture, Memory and Storage
Networks and Data Transmission
Logic Gates and Boolean Algebra
Data Representation and Data Types
Data Structures
Organisation of Data: Files and Records
Database Systems
The Operating System
Algorithms and Programs
Principles of Programming
Systems Analysis
Software Engineering and Program Construction
Types of Software System
Practical Programming
Data Security and Integrity
Computing, Society and the Law
Advanced Data Structures and Logic
Recursion, Sorting and Searching
Programming Paradigms and Translators
System Design and Human-Computer Interaction
Software Engineering Tools and Professional Practice
Advanced Architecture and Assembly Language
Communication Networks and File Organisation
Number Representation and Floating Point
Databases and Distributed Systems
Operating System Management
Software Systems and Applications
Data Security, Cryptography and Attack
Programming Paradigms and Translators
Ambiguity in natural language and unambiguous notation
- 3 things to know
- A2 Unit 3
Overview
Lexical ambiguity, sentence made ambiguous by a word having two meanings and structural ambiguity.
What you need to know
Answer each one before you reveal it.
What is meant by lexical ambiguity?
What is meant by structural ambiguity?
Questions from this subtopic
Each one with the model answer underneath.
- 1
Why must a programming language have an unambiguous syntax?
Model answer
Every valid program must have exactly one meaning, because the translator has to choose one sequence of machine instructions and the programmer must be able to predict what will run.
- 2
What is meant by lexical ambiguity?
Model answer
Lexical ambiguity arises when a single word carries more than one meaning, so a statement containing it can be read in more than one way.
- 3
Give an example of a sentence made ambiguous by a word having two meanings.
Model answer
The sentence she left the bank can mean that she left a financial institution or that she left the edge of a river.
- 4
What is meant by structural ambiguity?
Model answer
Structural ambiguity arises when the individual words are clear but can be grouped in more than one way, and each grouping gives a different meaning.
- 5
Give an example of a sentence that is ambiguous because of the way its words group.
Model answer
The sentence I saw the man with the telescope can mean that a telescope was used to see him or that he was the one carrying it.
- 6
Why would the expression 6 − 2 × 3 be ambiguous without a rule of precedence?
Model answer
Taken strictly from left to right it gives 12, while doing the multiplication first gives 0, so a rule is needed to fix which reading is intended.
Other ways to work this
The same content, four other ways.
What is inside Levo
Six ways to work the same material.
Every question in Programming Paradigms and Translators, on a schedule.
Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.
Or £46 a year, about £3.83 a month. Cancel anytime.