Sw Engineer Interview Questions

540 sw engineer interview questions shared by candidates

A base class pointer is pointing to a derived class object. Which of the follwoing would be the correct way of de-affocating its resources ? answer a) Make the derived class destructor as virtual answer b) Make the base class distructor as virtual answer c) Call the derived class destructor before base class one using () answer d) Destructors by default are called based upon the containd object so nothing explicits is required answer e) answers b+c correct
avatar

SW Engineer

Interviewed at Rafael

3.5
Feb 11, 2024

A base class pointer is pointing to a derived class object. Which of the follwoing would be the correct way of de-affocating its resources ? answer a) Make the derived class destructor as virtual answer b) Make the base class distructor as virtual answer c) Call the derived class destructor before base class one using () answer d) Destructors by default are called based upon the containd object so nothing explicits is required answer e) answers b+c correct

what happens if the derived class from an abstract class doesnot provide implementation of pure virtual function? answer a) compile time error answer b) runtime error answer c) the derived class becomes abstract too answer d) nothing is wrong
avatar

SW Engineer

Interviewed at Rafael

3.5
Feb 11, 2024

what happens if the derived class from an abstract class doesnot provide implementation of pure virtual function? answer a) compile time error answer b) runtime error answer c) the derived class becomes abstract too answer d) nothing is wrong

Viewing 181 - 190 interview questions

Glassdoor has 540 interview questions and reports from Sw engineer interviews. Prepare for your interview. Get hired. Love your job.