Q:
What is the type of object that should be specified in argument list?
belongs to collection: OBJECT ORIENTED PROGRAMMING - OBJECTS AND POINTERS MCQ
OBJECT ORIENTED PROGRAMMING - OBJECTS AND POINTERS MCQ
- Passing object to a function _______________
- The object ________________
- Which symbol should be used to pass the object by reference in C++?
- If object is passed by value, ________________
- Pass by reference of an object to a function _______________
- Copy constructor definition requires __________________
- What is the type of object that should be specified in argument list?
- If an object is passed by value, _________________
- Can data members be passed to a function using the object?
- What exactly is passed when an object is passed by reference?
- If the object is not to be passed to any function but the values of the object have to be used then:
- What will be the output if all necessary code is included (Header files and main function)?
- In which type is new memory location will be allocated?
- Pass by reference and pass by value can’t be done simultaneously in a single function argument list
- In which of the following way(s) can the object be returned from a function?
- Whenever an object is returned by value ____________________
- Where the temporary objects (created while return by value) are created?
- Which is the correct syntax for returning an object by value?
- Which is the correct syntax for defining a function which passes an object by reference?
- If an object is declared inside the function then ____________________ outside the function
- How many independent objects can be returned at same time from a function?
- Which error will be produced if a local object is returned by reference outside a function?
- If object is passed by reference ____________________
- Can we return an array of objects?
- If an object is passed by reference to a function then it must be returned by reference
- Which among the following is correct?
- If an object is being returned by value then __________________________
- Why temporary object is not created in return by reference?
- When value of an object is assigned to another object, ___________________
- If an object is created and another object is assigned to it, then ________________
- How the argument passed to a function get initialized?
- Predict the output of the program
- If programmer doesn’t define any copy assignment operator then ____________________
- Declaring a copy constructor doesn’t suppresses the compiler generated copy assignment operator
- In copy constructor definition, if non const values are accepted only ________
- How many objects can be assigned to a single address?
- Use of assignment operator ____________________
- If more than one object refer to the same address, any changes made
- How to make more than one object refer to the same object?
- We can assign ______________________
- Assigning reference to an object _________________
- Which among the following is true ?
- Assigning objects takes place while passing the arguments
- Which language among the following doesn’t allow pointers?
- Which is correct syntax for declaring pointer to object?
- Which operator should be used to access the members of the class using object pointer?
- How does compiler decide the intended object to be used, if more than one object are used?
- If pointer to an object is declared, ___________
- What is the size of object pointer?
- A pointer _________________
- Pointer to a base class can be initialized with the address of derived class, because of _________
- Can pointers to object access the private members of the class?
- Is name of an array of objects is also a pointer to object?
- Which is the correct syntax to call a member function using pointer?
- If pointer to an object is created and the object gets deleted without using the pointer:
- How can the address stored in the pointer be retrieved?
- What should be done to prevent changes that may be made to the values pointed by the pointer?
- References to object are same as pointers of object
- Which is the pointer which denotes the object calling the member function?
- Which among the following is true ?
- The this pointer is accessible __________________
- An object’s this pointer _____________________
- The result of sizeof() function __________________
- Whenever non-static member functions are called _______________
- Which is the correct interpretation of the member function call from an object, object.function(parameter);
- The address of the object _________________
- Which syntax doesn’t execute/is false when executed?
- The this pointers _____________________
- Earlier implementations of C++ ___________________
- This pointer can be used directly to ___________
- Which among the following is/are type(s) of this pointer?
- Which is the correct syntax for declaring type of this in a member function?
(d).Class name of object
need an explanation for this answer? contact us directly to get an explanation for this answer