1Mediumgeneralโฑ 45sWhat is the purpose of a virtual destructor in C++?๐โผATo speed up object destructionBTo ensure the derived class destructor runs when deleting via a base class pointerCTo prevent destruction entirelyDTo make the class abstract
2Mediumgeneralโฑ 45sWhat does RAII stand for and what problem does it solve?๐โผAResource Allocation Is Immediate โ speeds up allocationBResource Acquisition Is Initialization โ ties resource lifetime to object scope for automatic cleanupCRandom Access Iterator InterfaceDRuntime Assertion Is Ignored