Q1 - Opened an incomplete piece of code on Hackerrank. Some classes and functions were written incompletely - Shape, Square, Circle, Line. It involved concepts of virtual function, pointers, polymorphism, deleting an object when its scope ends, etc. Basic stuff.
Sigiloso
I was out of practice and it took a lot of nudging by the interviewer before I could finish it. remember where is an object created - on heap memory, a pointer to that is created on stack memory, return the ptr to object, use this in the main function and then remember to delete the ptr. Know which function (in base class or derived class) is called in absence of a virtual function in base class.