Question: a. If variable x has value 2 and y has value 2, what is the value of the following Jack expression? (x + 3) /
a. If variable x has value 2 and y has value 2, what is the value of the following Jack expression?
(x + 3) / (4 - y)
b. If variable x has value 2 and y has value 1, which values could result from the following Jack expression?
x + 3 * 4 - y
c. If you write the following call in a Jack function in class Bob:
MyClass.Useful(34,"55")
but the function MyClass.Useful was declared to take three parameters, 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 the missing 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 assemble correctly
f)
| The class Bob compiles and the program assembles correctly. |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
