C++ Interview Questions in Pune
36 practice questions with answers for C++ interviews in Pune.
C++ jobs in Pune
Pune combines IT-services campuses in Hinjewadi and Kharadi with product, automotive and BFSI technology centres. It has a large mid-level job market for data and QA roles, and interviews are often practical and project-based.
Below are 36 questions that match the mix of service, product and domain employers hiring junior c++ developers in Pune.
What is std::string_view and what are its pitfalls?
Show answer
Your application is slow and you are asked to optimise it. Where do you start?
Show answer
What is the difference between a static library and a dynamic library?
Show answer
What are the main components of the Standard Template Library?
Show answer
A generic average function must accept only numeric types. How would you enforce that?
Show answer
Find the middle node of a linked list in a single pass.
Show answer
What is the difference between a shallow copy and a deep copy?
Show answer
Write a C++20 concept and use it to constrain a function.
Show answer
What is the difference between delete and delete[]?
Show answer
Build times have become very slow because heavy templates are included everywhere. How do you speed them up?
Show answer
Compute the sum of a large vector in parallel using std::async.
Show answer
How would you explain polymorphism to a junior developer who has just joined your team?
Show answer
A program does millions of lookups in a std::map with string keys and is slow. How would you speed it up?
Show answer
Why should we hire you for this C++ developer role?
Show answer
Explain unique_ptr, shared_ptr and weak_ptr.
Show answer
A C++ server crashes with a segmentation fault in production. How do you debug it?
Show answer
A low-latency service shows occasional latency spikes of several milliseconds. How would you investigate?
Show answer
What are templates in C++? Explain function and class templates.
Show answer
Use lambdas with standard algorithms to sort strings by length and count those longer than a limit.
Show answer
What is a custom deleter for a smart pointer and when do you need one?
Show answer
What are std::optional, std::variant and std::any?
Show answer
What is cache locality and why does it matter for performance?
Show answer
How do you handle a tight deadline when the C++ code you need to change is complex?
Show answer
Tell me about a performance improvement you delivered and how you measured it.
Show answer
What is a deadlock and how do you prevent it?
Show answer
How do virtual functions work internally?
Show answer
Solve two sum: return indices of two numbers that add up to a target.
Show answer
Write a variadic function that sums any number of arguments and one that prints them.
Show answer
What are memory alignment and padding?
Show answer
Compare std::mutex, lock_guard, unique_lock and scoped_lock.
Show answer
Write a program where two threads print odd and even numbers alternately up to 10.
Show answer
What do auto and decltype do?
Show answer
Overload operator+ and operator<< for a Complex number class.
Show answer
Why should a base class have a virtual destructor?
Show answer
A program crashes with terminate called without an active exception when a function returns. What is the cause?
Show answer
Companies with offices in Pune (9)
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 questionsOracle
C++ interview questions
Bengaluru, Hyderabad, Noida +2
View questionsCisco
C++ interview questions
Bengaluru, Pune, Chennai
View questionsNVIDIA
C++ interview questions
Pune, Bengaluru, Hyderabad
View questionsSiemens
C++ interview questions
Mumbai, Bengaluru, Pune
View questionsKPIT Technologies
C++ interview questions
Pune, Bengaluru
View questionsTata Elxsi
C++ interview questions
Bengaluru, Thiruvananthapuram, Chennai +1
View questionsFrequently asked questions
Which companies hire C++ professionals in Pune?
Companies with large offices in Pune include Microsoft, Google, Amazon, Oracle, Cisco, NVIDIA, Siemens, KPIT Technologies, Tata Elxsi. Use their company pages below to practise employer-specific sets.
Are C++ interviews in Pune different from other cities?
The questions depend more on the company than the city. Pune's mix of employers decides the style: It has a large mid-level job market for data and QA roles, and interviews are often practical and project-based
How do I find C++ jobs in Pune?
Shortlist companies with Pune offices, keep your CV focused on C++ projects, apply on company career pages and job portals with the Pune filter, and practise the questions on this page before each interview.