Menu

(Solved) : Variable X Value 2 Y Value 2 Value Following Jack Expression X 3 4 Y B Variable X Value 2 Q30962970 . . .

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:

MyClass.Useful(34,”55″)

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

f)

The class Bob compiles and the program assemblescorrectly.

Expert Answer


Answer to Variable X Value 2 Y Value 2 Value Following Jack Expression X 3 4 Y B Variable X Value 2 Q30962970 . . .

OR