C++ Interview Questions in Gurgaon
36 practice questions with answers for C++ interviews in Gurgaon.
C++ jobs in Gurgaon
Gurgaon (Gurugram) is home to many multinational, consulting, fintech and consumer-internet offices. Interviews often expect strong business understanding along with technical skills, especially for analytics and product-facing roles.
Below are 36 questions that match the mix of service, product and domain employers hiring junior c++ developers in Gurgaon.
What are AddressSanitizer, UndefinedBehaviorSanitizer and ThreadSanitizer?
Show answer
Use a C++20 ranges pipeline to get squares of the first three even numbers.
Show answer
What does noexcept mean and why should move constructors be noexcept?
Show answer
Two objects hold shared_ptr references to each other and their memory is never released. Why, and how do you fix it?
Show answer
What is C++ and how is it different from C?
Show answer
How do you create a thread in C++ and what is the difference between join and detach?
Show answer
Find the middle node of a linked list in a single pass.
Show answer
Write a custom hash so a struct can be used as a key in std::unordered_map.
Show answer
A hot loop calls a virtual function millions of times and profiling shows the indirect call cost. What can you do?
Show answer
List the gdb commands you would use to debug a crash.
Show answer
What is std::string_view and what are its pitfalls?
Show answer
Tell me about a time you found a difficult bug in your C++ code.
Show answer
What is a void pointer and when would you use it?
Show answer
A function returns a reference to a local variable and the code sometimes works. Explain what is happening.
Show answer
Explain move semantics and what std::move actually does.
Show answer
Why should we hire you for this C++ developer role?
Show answer
What are the iterator categories in C++?
Show answer
The linker reports undefined reference to a function that is declared in a header. What could be wrong?
Show answer
Explain the stages of compiling and running a C++ program.
Show answer
Your program crashes with the message double free or corruption. What could cause it?
Show answer
What is undefined behaviour in C++? Give examples.
Show answer
What is a pointer and how is it different from a reference?
Show answer
What are C++20 concepts?
Show answer
When would you use std::set versus std::priority_queue?
Show answer
Implement a thread-safe singleton in modern C++.
Show answer
What are type traits and how does if constexpr use them?
Show answer
When do you need the typename keyword inside a template?
Show answer
What is a pure virtual function and an abstract class?
Show answer
A generic average function must accept only numeric types. How would you enforce that?
Show answer
Implement a simple fixed-size thread pool.
Show answer
Why should a base class have a virtual destructor?
Show answer
Describe a time you improved code quality by changing how memory was managed.
Show answer
Reverse a singly linked list using pointers.
Show answer
Write a variadic function that sums any number of arguments and one that prints them.
Show answer
Why should you prefer make_unique and make_shared over calling new directly?
Show answer
Companies with offices in Gurgaon (6)
Microsoft
C++ interview questions
Hyderabad, Bengaluru, Noida +2
View questionsC++ interview questions
Bengaluru, Hyderabad, Gurugram +2
View questionsAmazon
C++ interview questions
Bengaluru, Hyderabad, Chennai +2
View questionsAdobe
C++ interview questions
Noida, Bengaluru, Gurugram
View questionsDE Shaw
C++ interview questions
Hyderabad, Bengaluru, Gurugram
View questionsTower Research Capital
C++ interview questions
Gurugram
View questionsFrequently asked questions
Which companies hire C++ professionals in Gurgaon?
Companies with large offices in Gurgaon include Microsoft, Google, Amazon, Adobe, DE Shaw, Tower Research Capital. Use their company pages below to practise employer-specific sets.
Are C++ interviews in Gurgaon different from other cities?
The questions depend more on the company than the city. Gurgaon's mix of employers decides the style: Interviews often expect strong business understanding along with technical skills, especially for analytics and product-facing roles
How do I find C++ jobs in Gurgaon?
Shortlist companies with Gurgaon offices, keep your CV focused on C++ projects, apply on company career pages and job portals with the Gurgaon filter, and practise the questions on this page before each interview.