C++ Programming MCQs & Mock Tests

Topic-wise bilingual C++ questions for college exams, GATE, interviews, and competitive tests.

Q1 · Lambdas & Functional C++Intermediate

Which C++ standard introduced lambda expressions, and which introduced generic `auto` lambda parameters?

Q2 · Lambdas & Functional C++Intermediate

What happens when a `mutable` lambda modifies a value-captured variable `count`?

int count = 0;
auto fn = [count]() mutable { return ++count; };
Q3 · Lambdas & Functional C++Advanced

Which lambda can be implicitly converted into an ordinary C/C++ function pointer?