15 Move Semantics questions from the C++ bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.a cast that unconditionally produces an rvalue reference to its argument, signaling that the object's resources may be pilfered
B.passing function arguments to another callable while preserving their value category and constness, typically via std::forward and a forwarding reference
C.an optimization that constructs a returned or temporary object directly in its destination, omitting a copy or move; mandatory for prvalues since C++17
D.a reference type declared with double ampersand that binds to temporaries and movable objects, enabling resource transfer instead of copying
Answer + AI explanation with Pro
2. Which term means: "a reference type declared with double ampersand that binds to temporaries and movable objects, enabling resource transfer instead of copying"?
Mid
A.Perfect forwarding
B.Copy elision
C.Rvalue reference
D.std::move
Answer + AI explanation with Pro
3. Which statement is correct?
Mid
A.Rvalue reference — a reference type declared with double ampersand that binds to temporaries and movable objects, enabling resource transfer instead of copying
B.Rvalue reference — a cast that unconditionally produces an rvalue reference to its argument, signaling that the object's resources may be pilfered
C.Rvalue reference — a special member that initializes an object by transferring ownership of another object's resources, leaving the source in a valid but unspecified state
D.Rvalue reference — an optimization that constructs a returned or temporary object directly in its destination, omitting a copy or move; mandatory for prvalues since C++17
Answer + AI explanation with Pro
4. What is std::move?
Mid
A.an optimization that constructs a returned or temporary object directly in its destination, omitting a copy or move; mandatory for prvalues since C++17
B.a special member that initializes an object by transferring ownership of another object's resources, leaving the source in a valid but unspecified state
C.passing function arguments to another callable while preserving their value category and constness, typically via std::forward and a forwarding reference
D.a cast that unconditionally produces an rvalue reference to its argument, signaling that the object's resources may be pilfered
Answer + AI explanation with Pro
5. Which term means: "a cast that unconditionally produces an rvalue reference to its argument, signaling that the object's resources may be pilfered"?
Mid
A.Rvalue reference
B.std::move
C.Copy elision
D.Perfect forwarding
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.std::move — a special member that initializes an object by transferring ownership of another object's resources, leaving the source in a valid but unspecified state
B.std::move — a reference type declared with double ampersand that binds to temporaries and movable objects, enabling resource transfer instead of copying
C.std::move — a cast that unconditionally produces an rvalue reference to its argument, signaling that the object's resources may be pilfered
D.std::move — an optimization that constructs a returned or temporary object directly in its destination, omitting a copy or move; mandatory for prvalues since C++17
Answer + AI explanation with Pro
7. What is Perfect forwarding?
Senior
A.a special member that initializes an object by transferring ownership of another object's resources, leaving the source in a valid but unspecified state
B.a reference type declared with double ampersand that binds to temporaries and movable objects, enabling resource transfer instead of copying
C.passing function arguments to another callable while preserving their value category and constness, typically via std::forward and a forwarding reference
D.a cast that unconditionally produces an rvalue reference to its argument, signaling that the object's resources may be pilfered
Answer + AI explanation with Pro
8. Which term means: "passing function arguments to another callable while preserving their value category and constness, typically via std::forward and a forwarding reference"?
Senior
A.Rvalue reference
B.std::move
C.Copy elision
D.Perfect forwarding
Answer + AI explanation with Pro
9. Which statement is correct?
Senior
A.Perfect forwarding — passing function arguments to another callable while preserving their value category and constness, typically via std::forward and a forwarding reference
B.Perfect forwarding — a cast that unconditionally produces an rvalue reference to its argument, signaling that the object's resources may be pilfered
C.Perfect forwarding — a reference type declared with double ampersand that binds to temporaries and movable objects, enabling resource transfer instead of copying
D.Perfect forwarding — an optimization that constructs a returned or temporary object directly in its destination, omitting a copy or move; mandatory for prvalues since C++17
Answer + AI explanation with Pro
10. What is Copy elision?
Senior
A.an optimization that constructs a returned or temporary object directly in its destination, omitting a copy or move; mandatory for prvalues since C++17
B.a special member that initializes an object by transferring ownership of another object's resources, leaving the source in a valid but unspecified state
C.passing function arguments to another callable while preserving their value category and constness, typically via std::forward and a forwarding reference
D.a cast that unconditionally produces an rvalue reference to its argument, signaling that the object's resources may be pilfered
Answer + AI explanation with Pro
11. Which term means: "an optimization that constructs a returned or temporary object directly in its destination, omitting a copy or move; mandatory for prvalues since C++17"?
Senior
A.std::move
B.Copy elision
C.Perfect forwarding
D.Rvalue reference
Answer + AI explanation with Pro
12. Which statement is correct?
Senior
A.Copy elision — an optimization that constructs a returned or temporary object directly in its destination, omitting a copy or move; mandatory for prvalues since C++17
B.Copy elision — passing function arguments to another callable while preserving their value category and constness, typically via std::forward and a forwarding reference
C.Copy elision — a reference type declared with double ampersand that binds to temporaries and movable objects, enabling resource transfer instead of copying
D.Copy elision — a cast that unconditionally produces an rvalue reference to its argument, signaling that the object's resources may be pilfered
Answer + AI explanation with Pro
13. What is Move constructor?
Mid
A.an optimization that constructs a returned or temporary object directly in its destination, omitting a copy or move; mandatory for prvalues since C++17
B.a cast that unconditionally produces an rvalue reference to its argument, signaling that the object's resources may be pilfered
C.a reference type declared with double ampersand that binds to temporaries and movable objects, enabling resource transfer instead of copying
D.a special member that initializes an object by transferring ownership of another object's resources, leaving the source in a valid but unspecified state
Answer + AI explanation with Pro
14. Which term means: "a special member that initializes an object by transferring ownership of another object's resources, leaving the source in a valid but unspecified state"?
Mid
A.Perfect forwarding
B.Move constructor
C.Copy elision
D.std::move
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.Move constructor — an optimization that constructs a returned or temporary object directly in its destination, omitting a copy or move; mandatory for prvalues since C++17
B.Move constructor — a special member that initializes an object by transferring ownership of another object's resources, leaving the source in a valid but unspecified state
C.Move constructor — a reference type declared with double ampersand that binds to temporaries and movable objects, enabling resource transfer instead of copying
D.Move constructor — a cast that unconditionally produces an rvalue reference to its argument, signaling that the object's resources may be pilfered
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Move Semantics question come with Pro.