MCQsAdvanced MCQsMove Semantics and Rvalue ReferencesMove Semantics and Rvalue References 1).What is move semantics in C++?1) Transferring ownership of resources without copying2) Moving data between containers3) Copying resources from one object to another4) None of the above 2).Which of the following is used to enable move semantics?1) Rvalue references2) Copy constructor3) Assignment operator4) None of the above 3).What is an rvalue reference in C++?1) A reference to a temporary object2) A reference to a constant object3) A reference to a global object4) None of the above 4).What does the 'std::move()' function do?1) It casts an lvalue to an rvalue reference2) It moves the data from one object to another3) It creates a copy of the object4) None of the above 5).What is the benefit of move semantics?1) Avoids expensive deep copies2) Increases memory usage3) Slows down the program4) None of the above 6).Can an rvalue reference bind to an lvalue?1) No2) Yes3) Only for constants4) None of the above 7).What is the role of move constructor?1) Transfers ownership of resources from one object to another2) Copies resources from one object to another3) Deletes resources4) None of the above 8).Can a class have both a move constructor and a copy constructor?1) Yes2) No3) Only one can exist4) None of the above 9).What is an example of a case where move semantics should be used?1) Returning a large object from a function2) Passing an object to a function by reference3) Passing an object to a function by value4) None of the above 10).What happens if a move constructor is not defined?1) The compiler will use the copy constructor instead2) The program will throw an error3) The program will crash4) None of the above