Home > Object Oriented Programming > Quizzes > Object Oriented Programming Practice Test: Assigning Object, Pointer to Objects, Passing and Returning Object
Object Oriented Programming Practice Test: Assigning Object, Pointer to Objects, Passing and Returning Object
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “The result of sizeof() function __________________”
Quiz on passing objects to functions, returning and assigning objects, pointers to objects and this pointer. In object-oriented programming (OOP), assigning objects, pointers to objects, passing, and returning objects are all fundamental concepts that allow programmers to work with objects in functions, making their code more modular and flexible. Assigning Objects Assigning objects involves creating a new object and initializing it with the values of another object. This can be done using the assignment operator (=).  Pointer to Objects A pointer to an object is a variable that stores... Show more
Object Oriented Programming Practice Test: Assigning Object, Pointer to Objects, Passing and Returning Object
Time left 00:00
25 Questions

1. The object ________________
2. Which is the correct syntax for returning an object by value?
3. Which error will be produced if a local object is returned by reference outside a function?
4. Assigning reference to an object _________________
5. The address of the object _________________
6. Which language among the following doesn’t allow pointers?
7. Passing object to a function _______________
8. If an object is declared inside the function then ____________________ outside the function.
9. Copy constructor definition requires __________________
10. Can data members be passed to a function using the object?
11. Which symbol should be used to pass the object by reference in C++?
12. How the argument passed to a function get initialized?
13. How many independent objects can be returned at same time from a function?
14. What is the type of object that should be specified in the argument list?
15. If pointer to an object is declared __________
16. How can the address stored in the pointer be retrieved?
17. What should be done to prevent changes that may be made to the values pointed by the pointer?
18. If more than one object refer to the same address, any changes made __________
19. Which among the following is/are type(s) of this pointer?
20. Which is correct syntax for declaring pointer to object?
21. References to object are same as pointers of object.
22. Which among the following is correct?
23. The this pointer is accessible __________________
24. A pointer _________________
25. When value of an object is assigned to another object ________________