Back to Interview Hub

C / C++ Questions

Memory management, pointers, OOP, and standard template library (STL).

Showing 1-6 of 24 questions

1 / 4
1QuestionsHard🔥 99% Asked

How to handle exceptions in async code?

Asked in:WalmartGoogleInfosys

Use try/catch around await. Exceptions are captured in Task and thrown when awaited.

Page 7

2QuestionsEasy🔥 58% Asked

What is C++?

Asked in:MetaTCS

C++ is a compiled language used for high-performance systems, desktop software, games, embedded, and native modules.

3QuestionsEasy🔥 55% Asked

Pointer vs reference?

Asked in:AmazonPaytmGoogleNetflix

Pointer stores address and can be null/reassigned. Reference is an alias and generally must be initialized.

Note: You might also find it helpful to checkout our Windows Apps or read about MLOps & Model Deployment.

4QuestionsMedium🔥 64% Asked

What is RAII?

Asked in:GoogleCognizantRazorpay

Resource Acquisition Is Initialization: tie resource lifetime to object lifetime; destructor releases resources automatically.

5QuestionsMedium🔥 78% Asked

Stack vs heap?

Asked in:MetaIBMUber

Stack is automatic fast memory for local variables. Heap is dynamic memory managed manually or by smart pointers.

Note: For more insights, checkout our Windows Apps.

6QuestionsMedium🔥 72% Asked

Virtual function?

Asked in:MicrosoftCiscoAmazon

Allows runtime polymorphism. Calls derived implementation through base pointer/reference.