1.
a. What is the distinction between an assembly language and a third-generation programming language?
b. Give an example of each.
2.
Draw a syntax diagram representing the structure of the Python nested if-else statement.
3.
Design a set of syntax diagrams to describe the syntax of telephone numbers in your
locality. For instance, in the United States telephone numbers consist of an area code,
followed by a regional code, followed by a four-digit number such as (444) 555–1234.
Q204;
1.
Design a set of syntax diagrams to describe simple sentences in your native language.
2.
Design a set of syntax diagrams to describe different ways of representing full names
such as
firstname - middlename - lastname
or the reverse of it.
3.
Design a set of syntax diagrams that describes the grammatical structure of “sentences” that consist of occurrences of the word
yes
followed by the same number of the word
no.
For example, “yes yes no no” would be such a sentence, whereas “no yes,” “yes no no,” and “yes no yes” would not.