Q:
Which operator can be used to free the memory allocated for an object in C++?
belongs to collection: OBJECT ORIENTED PROGRAMMING OBJECTS AND CLASSES IN OOPS MCQ
OBJECT ORIENTED PROGRAMMING OBJECTS AND CLASSES IN OOPS MCQ
- In how many ways can an object be passed to a function?
- If an object is passed by value, ____________________
- Pass by address passes the address of object _________ and pass by reference passes the address of the object _________
- If an object is passed by reference, the changes made in the function ___________
- Constructor function is not called when an object is passed to a function, will its destructor be called when its copy is destroyed?
- When an object is returned by a function, a _______________ is automatically created to hold the return value
- How to overcome the problem arising due to destruction of temporary object?
- How many objects can be returned at once?
- What will be the output of the following code?
- It is necessary to return the object if it was passed by reference to a function
- How many objects can be passed to a function simultaneously?
- If an object is passed by address, will be constructor be called?
- Is it possible that an object of is passed to a function, and the function also have an object of same name?
- Passing an object using copy constructor and pass by value are same
- What is reference to an object?
- Whenever an object is assigned to a variable or passed to a method, ________________
- Does use of object reference in assignment or passing means copy of the object is being used?
- What will be the output of the following code?
- Is there any explicit use of pointers in java that would be applicable to objects?
- Can a super class object give reference to a subclass method?
- What will be the output of the following code?
- If a reference variable is declared final then, _________________
- Which of the members are referred by this pointer usually (Java)?
- How to refer to method of nested class?
- How many objects can be referenced from same variables?
- Java handles memory dynamically and references are deleted as soon as they are out of scope
- Invoking a method on a particular object is ____________ sending a message to that object
- Can reference to an object be returned from a method?
- What does memory allocation for objects mean?
- Where is the memory allocated for the objects?
- When is the memory allocated for an object?
- Using new is type safe as _______________________
- Which of the following function can be used for dynamic memory allocation of objects?
- How much memory will be allocated for an object of class given below?
- Which keyword among the following can be used to declare an array of objects in java?
- When is the memory allocated for an object gets free?
- Which among the following keyword can be used to free the allocated memory for an object?
- Which function is called whenever an object goes out of scope?
- Which operator can be used to check the size of an object?
- The memory allocated for an object ____________________
- If an object is declared in a user defined function __________________
- In java, ____________________ takes care of managing memory for objects dynamically
- Which operator can be used to free the memory allocated for an object in C++?
- What is array of objects?
- Which among the following is a mandatory condition for array of objects?
- What is the type of the elements of array of objects?
- If array of objects is declared as given below, which is the limitation on objects?
- Which is the condition that must be followed if the array of objects is declared without initialization, only with size of array?
- When are the array of objects without any initialization useful?
- If constructor arguments are passed to objects of array then ____________ if the constructors are overloaded
- How the objects of array can be denoted?
- The objects in an object array _______________________
- The Object array is created in _____________________
- If an array of objects is of size 10 and a data value have to be retrieved from 5th object then ________________ syntax should be used
- Can we have two dimensional object array?
- From which index does the array of objects start?
- Two dimensional array can’t be initialized with the declaration
- Is an array of characters always a string?
- Which among the following is main use of object?
- Which among the following is not a property of an object?
- What is function object?
- Immutable object are used ______________________
- Which object can be used to contain other objects?
- A factory object is used ______________________
- What are singleton objects?
- Object cout and cin _________________
- Objects type ____________________
- An object can be used to represent _________________
- Objects can be used _____________________
- Which among the following is not a use of object?
- Which object can be used to access the standard input?
- A single object can be used __________________
- If same object name is given to different objects of different class then _____________
- Which among the following best describes abstract classes?
- Can abstract class have main() function defined inside it?
- If there is an abstract method in a class then, ________________
- If a class is extending/inheriting another abstract class having abstract method, then _______________________
- Abstract class A has 4 virtual functions. Abstract class B defines only 2 of those member functions as it extends class A. Class C extends class B and implements the other two member functions of class A. Choose the correct option below
- Abstract classes can ____________________ instances
- We ___________________ to an abstract class
- Which among the following is an important use of abstract classes?
- Use of pointers or reference to an abstract class gives rise to which among the following feature?
- The abstract classes in java can _________________
- Abstract class can’t be final in java
- Can abstract classes have static methods (Java)?
- It is _________________________ to have an abstract method
- How many abstract classes can a single program contain?
- Is it necessary that all the abstract methods must be defined from an abstract class?
- A template class can have _____________
- Which among the following is the proper syntax for the template class?
- Can default arguments be used with the template class?
- What is the syntax to use explicit class specialization?
- Which is the most significant feature that arises by using template classes?
- A template class defines the form of a class _____________________ it will operate
- What are the two specializations of I/O template classes in C++?
- Can typeid() function be used with the object of generic classes?
- The _____________ class is a specialization of a more general template class
- How is function overloading different from template class?
- What if static members are declared inside template classes?
- What is the output of following program?
- If template class is defined, is it necessary to use different types of data for each call?
- How many generic types can be given inside a single template class?
- Template classes must have at least one static member
- Which is most appropriate definition of a base class?
- A base class is also known as _____________ class
- An abstract class is always a __________ class
- How many base classes can a single class inherit in java?
- How to make a derived class a base class?
- If a base class is being derived by two other classes, which inheritance will that be called?
- Which among the following must be in a base class?
- Which type of members can’t be accessed in derived classes of a base class?
- If a class is enclosing more than one class, than it can be called as base class of those classes
- Base class have ________________ of abstraction
- Always the base class constructors are called ___________ constructor of derived class
- Can we call methods of base class using constructor of the derived class?
- If a base class is inherited from another class and then one class derives it, which inheritance is shown?
- How many base classes can a single derived class have in C++?
- If a base class is added with few new members, its subclass must also be modified
- Which among the following is best definition of a derived class?
- Which among the following is inherited by a derived class from base class?
- If there is a derived class in a program, how many classes must be in that program?
- Which members can never be accessed in derived class from the base class?
- How many types of inheritance are supported in C++ for deriving a class?
- How many derived class can a single base class have?
- If a class is being derived using more than two base classes, which inheritance will be used?
- Derived class is also known as ______________ class
- If class A is derived from another derived class B which is derived from class C, which class will have maximum level of abstraction?
- If base class is an abstract class then derived class ______________ the undefined functions
- How many classes can be derived from a derived class?
- The members of a derived class can never be derived
- Which feature is not related to the derived classes among the following?
- Deriving a class in such a way that that the base class members are not available for further inheritance is known as ___________________
- Which among the following is the main characteristic of class?
- To group all the brands of cars, what should be used?
- If a class have two data members and two functions to add those two numbers and to subtract them, which among the following is most efficient if the programmer wants to implement multiplication too?
- If a database have to be maintained using OOP, to store the details of each employee in a company, which would be the best choice among the following?
- Which class represents the most abstracted information?
- Which among the following is an advantage of using classes over structures of C?
- Which among the follow is a feature of class?
- Class is _____________ of an object
- In which case the classes can be used to make more efficient program?
- What is the use of inbuilt classes?
- Which feature is exhibited by the inbuilt classes?
- Why do we use user defined classes?
- Why do classes use accessor methods?
- Why do classes use mutator methods?
- Which among the following is the most abstract form of class?
(b).delete
need an explanation for this answer? contact us directly to get an explanation for this answer