C++ Interview Questions in Hyderabad
36 practice questions with answers for C++ interviews in Hyderabad.
C++ jobs in Hyderabad
Hyderabad has large engineering and capability centres of global technology, banking and pharma companies around HITEC City and the Financial District. Many roles are with global capability centres that work with teams in the US and Europe.
Below are 36 questions that match the mix of service, product and domain employers hiring junior c++ developers in Hyderabad.
What is the difference between new/delete and malloc/free?
Show answer
Should a Car class inherit from Engine or contain an Engine? Explain your choice.
Show answer
Overload operator+ and operator<< for a Complex number class.
Show answer
Compute the sum of a large vector in parallel using std::async.
Show answer
What is SFINAE?
Show answer
What are lvalues and rvalues?
Show answer
How does std::vector grow, and what is the difference between size, capacity and reserve?
Show answer
Use a C++20 ranges pipeline to get squares of the first three even numbers.
Show answer
Is it expensive to return a large std::vector from a function by value?
Show answer
Remove duplicates from a vector of integers.
Show answer
What is the difference between full and partial template specialization?
Show answer
What are structured bindings and how do they work with range-based for loops?
Show answer
Design a producer-consumer pipeline where one thread reads log lines and several workers parse them.
Show answer
What does the C++20 ranges library add?
Show answer
How do you handle a tight deadline when the C++ code you need to change is complex?
Show answer
When do you need the typename keyword inside a template?
Show answer
Explain the rule of three, rule of five and rule of zero.
Show answer
How do virtual functions work internally?
Show answer
Explain unique_ptr, shared_ptr and weak_ptr.
Show answer
Write a C++ program that counts how often each word appears in the input.
Show answer
What are type traits and how does if constexpr use them?
Show answer
What is the difference between const int*, int* const and const int* const?
Show answer
Compare std::mutex, lock_guard, unique_lock and scoped_lock.
Show answer
Write a GoogleTest unit test for a function, including an edge case.
Show answer
Why should you prefer make_unique and make_shared over calling new directly?
Show answer
What does C++20 std::jthread add over std::thread?
Show answer
Use perf to find the hotspots in a C++ program.
Show answer
Describe a time you improved code quality by changing how memory was managed.
Show answer
What is std::string_view and what are its pitfalls?
Show answer
Why use nullptr instead of NULL or 0?
Show answer
Your program crashes with the message double free or corruption. What could cause it?
Show answer
Write a move constructor and move assignment operator for a class that owns a buffer.
Show answer
Your application is slow and you are asked to optimise it. Where do you start?
Show answer
What are the four pillars of object-oriented programming in C++?
Show answer
Using a custom struct as the key of an unordered_map gives a compile error. Why, and how do you fix it?
Show answer
Companies with offices in Hyderabad (10)
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 questionsQualcomm
C++ interview questions
Hyderabad, Bengaluru, Chennai
View questionsNVIDIA
C++ interview questions
Pune, Bengaluru, Hyderabad
View questionsIntel
C++ interview questions
Bengaluru, Hyderabad
View questionsAMD
C++ interview questions
Bengaluru, Hyderabad
View questionsDE Shaw
C++ interview questions
Hyderabad, Bengaluru, Gurugram
View questionsGoldman Sachs
C++ interview questions
Bengaluru, Hyderabad, Mumbai
View questionsFrequently asked questions
Which companies hire C++ professionals in Hyderabad?
Companies with large offices in Hyderabad include Microsoft, Google, Amazon, Oracle, Qualcomm, NVIDIA, Intel, AMD, DE Shaw, Goldman Sachs. Use their company pages below to practise employer-specific sets.
Are C++ interviews in Hyderabad different from other cities?
The questions depend more on the company than the city. Hyderabad's mix of employers decides the style: Many roles are with global capability centres that work with teams in the US and Europe
How do I find C++ jobs in Hyderabad?
Shortlist companies with Hyderabad offices, keep your CV focused on C++ projects, apply on company career pages and job portals with the Hyderabad filter, and practise the questions on this page before each interview.