These questions are asked in the order that the program executes them.
When main line 2 starts executing, what method in the car class is
used? (Give the line number of the method header or just type in the
method header)
In line c8, (right after line 2 started), what is the value of ownerIn?
In main line 3, what are the values in the car1 object?
When main line 5 starts executing, what method in the car class is
used? (Give the line number of the method header or just type in the
method header)
c18 updateOnwer
Before line c20 starts, what is the value of ownerIn?
Smith
Before line c20 starts, what is the value of this.owner?
shop
After line c20 (or at line c21), what is the value of this.owner?
Smith
When main line 10 starts executing, what method in the car class is
used? (Give the line number of the method header or just type in the
method header)
c18 updateOnwer
Before line c20 starts, what is the value of ownerIn?
whatever the user entered
Before line c20 starts, what is the value of this.owner?
salesman
After line c20 (or at line c21), what is the value of this.owner?
whatever the user entered
After main line 10 is done, what are the values in car?
whatever the user entered, 2006, plymouth,
voyager
What is the value of this.year in c44 while line 11 is execting?
What is the value of this.year in c44 while line 12 is executing?
What is the value of this.model in c39 while line 13 is executing?
What is the value of newcar.model in c39 while line 13 is executing?
What is the value of this.owner in c39 while line 13 is executing?
What is the value of newcar.owner in c39 while line 13 is executing?
What are the values of car3's owner and model when line 13 is done?
What are the values of car2's owner and model when line 13 is done?
When main line 15 is executing, what is the value of c25's
this.owner?
What is the value of c25's other.owner when line 15 is executing?
Will car2 equal car3 in line 15?
Will car3 equal car4 in line 16?