Question: 6. What is the weakest precondition for the following assignment statement: x = 2 * ( y - x) + x { x > 10}

6. What is the weakest precondition for the following assignment statement: x = 2 * ( y - x) + x { x > 10}

y > 10

x > 10

2y - x > 10

y - x > 5

7.

The start symbol in a grammar is:

Terminal symbol

Nonterminal symbol

Neither terminal nor nonterminal

Both terminal and nonterminal

8.

What did Chomsky propose?

BNF

Context-free grammars only

EBNF

Four classes of grammars, including context-free grammars

10. Which of the following are nonterminal symbols in the grammar rule:

--> + | - |

+

-

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!