Core Language interview questions

15 real Core Language questions from the C++ bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Reference?

Junior
  1. A.a value category for a pure computed expression that has no identity and initializes an object or is used as an operand
  2. B.an alias for an existing object that must be bound at initialization and can never be reseated to refer to a different object
  3. C.placeholder type deduction that infers a variable's type from its initializer, stripping top-level references and cv-qualifiers unless written explicitly
  4. D.a promise that an object will not be modified through that name, enabling read-only access and compile-time enforcement of immutability
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Reference — an alias for an existing object that must be bound at initialization and can never be reseated to refer to a different object
  2. B.Reference — a variable holding a memory address that can be null, reassigned, and dereferenced to access the object it points to
  3. C.Reference — placeholder type deduction that infers a variable's type from its initializer, stripping top-level references and cv-qualifiers unless written explicitly
  4. D.Reference — a value category for a pure computed expression that has no identity and initializes an object or is used as an operand
Reveal the answer + AI explanation — free account

4. What is Pointer?

Junior
  1. A.a value category for a pure computed expression that has no identity and initializes an object or is used as an operand
  2. B.an alias for an existing object that must be bound at initialization and can never be reseated to refer to a different object
  3. C.a promise that an object will not be modified through that name, enabling read-only access and compile-time enforcement of immutability
  4. D.a variable holding a memory address that can be null, reassigned, and dereferenced to access the object it points to
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Pointer — a value category for a pure computed expression that has no identity and initializes an object or is used as an operand
  2. B.Pointer — a promise that an object will not be modified through that name, enabling read-only access and compile-time enforcement of immutability
  3. C.Pointer — a variable holding a memory address that can be null, reassigned, and dereferenced to access the object it points to
  4. D.Pointer — placeholder type deduction that infers a variable's type from its initializer, stripping top-level references and cv-qualifiers unless written explicitly
Reveal the answer + AI explanation — free account

7. What is const qualifier?

Junior
  1. A.placeholder type deduction that infers a variable's type from its initializer, stripping top-level references and cv-qualifiers unless written explicitly
  2. B.an alias for an existing object that must be bound at initialization and can never be reseated to refer to a different object
  3. C.a value category for a pure computed expression that has no identity and initializes an object or is used as an operand
  4. D.a promise that an object will not be modified through that name, enabling read-only access and compile-time enforcement of immutability
Reveal the answer + AI explanation — free account

8. Which term means: "a promise that an object will not be modified through that name, enabling read-only access and compile-time enforcement of immutability"?

Junior
  1. A.prvalue
  2. B.const qualifier
  3. C.auto keyword
  4. D.Reference
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.const qualifier — an alias for an existing object that must be bound at initialization and can never be reseated to refer to a different object
  2. B.const qualifier — a variable holding a memory address that can be null, reassigned, and dereferenced to access the object it points to
  3. C.const qualifier — placeholder type deduction that infers a variable's type from its initializer, stripping top-level references and cv-qualifiers unless written explicitly
  4. D.const qualifier — a promise that an object will not be modified through that name, enabling read-only access and compile-time enforcement of immutability
Reveal the answer + AI explanation — free account

10. What is auto keyword?

Mid
  1. A.a value category for a pure computed expression that has no identity and initializes an object or is used as an operand
  2. B.a promise that an object will not be modified through that name, enabling read-only access and compile-time enforcement of immutability
  3. C.placeholder type deduction that infers a variable's type from its initializer, stripping top-level references and cv-qualifiers unless written explicitly
  4. D.a variable holding a memory address that can be null, reassigned, and dereferenced to access the object it points to
Reveal the answer + AI explanation — free account

11. Which term means: "placeholder type deduction that infers a variable's type from its initializer, stripping top-level references and cv-qualifiers unless written explicitly"?

Mid
  1. A.auto keyword
  2. B.const qualifier
  3. C.prvalue
  4. D.Pointer
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.auto keyword — a variable holding a memory address that can be null, reassigned, and dereferenced to access the object it points to
  2. B.auto keyword — a promise that an object will not be modified through that name, enabling read-only access and compile-time enforcement of immutability
  3. C.auto keyword — placeholder type deduction that infers a variable's type from its initializer, stripping top-level references and cv-qualifiers unless written explicitly
  4. D.auto keyword — a value category for a pure computed expression that has no identity and initializes an object or is used as an operand
Reveal the answer + AI explanation — free account

13. What is prvalue?

Senior
  1. A.an alias for an existing object that must be bound at initialization and can never be reseated to refer to a different object
  2. B.a value category for a pure computed expression that has no identity and initializes an object or is used as an operand
  3. C.a variable holding a memory address that can be null, reassigned, and dereferenced to access the object it points to
  4. D.placeholder type deduction that infers a variable's type from its initializer, stripping top-level references and cv-qualifiers unless written explicitly
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Senior
  1. A.prvalue — a promise that an object will not be modified through that name, enabling read-only access and compile-time enforcement of immutability
  2. B.prvalue — a value category for a pure computed expression that has no identity and initializes an object or is used as an operand
  3. C.prvalue — a variable holding a memory address that can be null, reassigned, and dereferenced to access the object it points to
  4. D.prvalue — an alias for an existing object that must be bound at initialization and can never be reseated to refer to a different object
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Core Language free