Reference no: EM133703012
1) What is the difference between syntax and semantics?
2) Why is it important for a grammar to be unambiguous?
3) Show that the following grammar is ambiguous - show two distinct parse
trees for one terminal string.
<expr> -> <expr> + <expr> | <expr> * <expr> | ( <expr> ) | a | b| c
4) Show that the following grammar is ambiguous - show two distinct parse
trees for one terminal string.
E-> E + E | id
5) Write in grammar for the language consisting of strings over the alphabet {a,b}
where all strings start with the letter a and can have a's and b's after.
6) Write in grammar for the language over the alphabet {a,b,c} consisting of
strings that start and end with the letter a and have a's b's c's in between.
7) Write in grammar for the language over the alphabet {a,b,c} consisting of
strings where every b is immediately followed by the letter c
8) Write an EBNF statement for a C++ float constant.
9) Compute the weakest precondition for the following assignment statement
given the postcondition.
y = 2y - 1 { y > 1}
10) Compute the weakest precondition for the sequence of statements:
(Statement 1) b = 2b + 1;
(Statement 2) b = b-3{b < 0}
11) Compute the weakest precondition for the selection construct.
if (a == 5)
b = 2b + 1
else
b = 2b;
{b > 1}
Differences in standard of proof between criminal-civil
: Briefly, discuss the differences in "standard of proof" between criminal, civil, and administrative hearings.
|
Describe two social determinants of health
: Describe two social determinants of health (other than culture) impacting Thuy's perinatal experience. Provide a rationale for your response.
|
What is one implication of the theory for the resolution
: Applying Social Identity Theory, what is one implication of theory for resolution of intergroup conflicts? When discussing implication of Social Identity Theory
|
Manage order information
: Include attributes like orderID, customer, products, and the order total. Implement methods to generate order summaries, update order status, and manage order
|
Why is it important for a grammar to be unambiguous
: What is the difference between syntax and semantics and Why is it important for a grammar to be unambiguous?
|
Shows difference between abstract idea and practical reality
: Social theory is an important analytical tool because it: shows the differences between abstract ideas and practical reality. Leads to the discovery of the trut
|
What is the influenza incidence rate
: the nursing home reported 14 new cases of influenza and 4 new cases of pneumonia during the second week of January. What is the influenza incidence rate?
|
Response to the tipoc security for an it system
: Compose a thoughtful response to the tipoc, Security For an IT system, security requirements are those which protect data from falling into the wrong hands
|
How can software developers improve software quality
: Develop a narrated presentation proposal that covers these points: What is software quality? Types of software testing
|