For A24 in the Sample exam, either (a) or (b) are correct (there is a typo mistake). By the way, in the final exam, only one answer will be correct! if in doubt, select the most suitable answer.
One possible solution for the question C1(b) is
vs = sort(v);
m1 = vs( length(vs) );
m2 = vs( length(vs) - 1);
m1 - m2
In case the above is not clear, here is the screen dump:
You can also write the above with fewer statements, if you wish!
Pre Exam Consultations: