MathWorks Interview Question

C++: some multiple choice questions and tow coding question; basic concepts about pointer, null pointer, class inheritance. coding part: implementing class inheritance, max difference of two numbers on array