C++ track

C++ interview questions for freshers

Panel-ready C++ interview set questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

208 Qs
25 Easy Memory C++

What is the rule of zero?

Short take

Simple meaning

Prefer types whose members manage themselves so you write no special destructor or copy ops.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
27 Easy Errors C++

What is an assertion used for?

Short take

Simple meaning

Documenting invariants in debug builds that abort on violation.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
28 Easy Basics C++

What does sizeof return?

Short take

Simple meaning

The size in bytes of an object or type including padding.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
32 Easy Basics C++

What is RAII in C++?

Short take

Simple meaning

Resource Acquisition Is Initialization ties resource lifetime to object lifetime.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
33 Easy Basics C++

What does nullptr represent?

Short take

Simple meaning

A typed null pointer constant safer than 0 or NULL.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
35 Easy STL C++

What is std::pair?

Short take

Simple meaning

A simple two-value aggregate used by maps and algorithms.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
36 Easy OOP C++

What is inheritance used for?

Short take

Simple meaning

Sharing interfaces and behavior via base classes.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
37 Easy Memory C++

What does delete[] match?

Short take

Simple meaning

Memory allocated with new[].

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
38 Easy Build C++

What is a translation unit?

Short take

Simple meaning

A single compiled .cpp after preprocessing.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
40 Easy Basics C++

What is overload resolution?

Short take

Simple meaning

The compiler picks the best matching function among candidates.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Prev Page 2 of 4 Next
Chat with us