Using the below grammar, Show a complete leftmost derivation for "000110011" Compute the weakest precondition for each of the following statements ∗5 points based on their postconditions. if (a==b)a=2∗b+4; else a=b∗3−4;{a> 5} Consider the following C++ codes, Where cout is used to display the * 30 points output to the standard output device. For each part of code, specify if x and age are local or global for main and func(). For the expression E ⋆
(E+(E)) where * and brackets are operation, number ∗ ∗
3 points of node in parse tree are: 12 11 10 13 14 The following declaration statement will generate an error in Java ∗3 points programming language: byte x=128; Because Java compiler cannot recognize Because x is out of bounds Because x must be declared as char variable None of the above Static scope means: * 3 points Value of variable is computed by the calling method Value of variable is computed based on which method was called by the main function Value of variable is computed Based on how methods are defined in the program. Binding of a variable can be determined by program text and is independent of the run-time function call stack.