a. If variable x has value 2 and y has value 2, what is thevalue of the following Jack expression?
(x + 3) / (4 – y)
b. If variable x has value 2 and y has value 1, which valuescould result from the following Jack expression?
x + 3 * 4 – y
c. If you write the following call in a Jack function in classBob:
but the function MyClass.Useful was declared to take threeparameters, an int, an Array and a BankAccount, what happens?
a)The program runs but does not work as expected
b)The program runs and a segmentation violation occurs when themissing BankAccount parameter is accessed.
c)The class Bob does not compile
d)The program runs and a segmentation violation occurs when “55”is used as an array
e)The class Bob compiles but the program does not assemblecorrectly
|The class Bob compiles and the program assemblescorrectly.|