Home > Object Oriented Programming > Quizzes > Object Oriented Programming Practice Test: Object
Object Oriented Programming Practice Test: Object
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 100% Most missed: “Can reference to an object be returned from a method?”
Quiz questions on passing and returning object with functions, object reference and memory allocation, object array and usage. In object-oriented programming (OOP), an object is a unit of code that is the first thing you think about when designing a program. Objects are made into generic classes, and then more generic classes are defined so that objects can share models and reuse class definitions in their code. An object is an instance of a particular class or subclass, and has its own methods or procedures and data variables.  In object-oriented programming (OOP), objects are the things... Show more
Object Oriented Programming Practice Test: Object
Time left 00:00
25 Questions

1. When is the memory allocated for an object?
2. Which of the members are referred by this pointer usually (Java)?
3. How to refer to method of nested class?
4. Does use of object reference in assignment or passing means copy of the object is being used?
5. How the objects of array can be denoted?
6. What is reference to an object?
7. Which of the following function can be used for dynamic memory allocation of objects?
8. A factory object is used ______________________
9. Objects type ____________________
10. Is the destruction of temporary object safe (while returning object)?
11. Which function is called whenever an object goes out of scope?
12. Immutable object are used ______________________
13. Which among the following is the main use of object?
14. If same object name is given to different objects of different class then _____________
15. How many objects can be passed to a function simultaneously?
16. If an object is passed by reference, the changes made in the function ___________
17. Which object can be used to contain other objects?
18. If an object is declared in a user defined function __________________
19. From which index does the array of objects start?
20. Invoking a method on a particular object is ____________ sending a message to that object.
21. Which object can be used to access the standard input?
22. A single object can be used __________________
23. Which among the following is a mandatory condition for array of objects?
24. An object can be used to represent _________________
25. Constructor function is not called when an object is passed to a function, will its destructor be called when its copy is destroyed?