Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started