551. If a class declared dynamic memory allocation, then:
- Default copy constructor, shallow copy is implemented
- User defined copy constructor, shallow copy is implemented
- Default copy constructor, deep copy is implemented
- User defined copy constructor, deep copy is implemented
552. Information hiding can be get?
- Encapsulation, Inheritance
- Encapsulation, Polymorphism
- Encapsulation, Abstraction
- Encapsulation, Overloading
553. The actual actions are coded is called:
- Function declaration
- Function calling
- Function definition
- None
554. Which of the following will happen when a constant function tries to change the value of data members of the class?
- Compiler will allow changing data members
- Program will be executed successfully
- Compile time error will occur
- Run time error will occur
555. Which way of OOP is used to derive a class from another?
- Encapsulation
- Polymorphism
- Data hiding
- Inheritance
556. Suppose there is an object of type Teacher, which of the following can be considered as one of its attributes?
- Name
- Eat
- Work
- Sleep
557. To derive a class from more than one classes is called?
- Single inheritance
- Encapsulation
- Multiple inheritance
- Polymorphism
558. Without Deep copy constructor the problem can occur.
- System crash
- Memory Leakage
- Dangling pointer
- All of given
559. Aggregation is implemented using pointer.
- True
- False
560. Which of the following is directly related to polymorphism?
- Overriding
- Constant members
- Static members
- None
561. Which of the following is the way to extract common behavior and attributes from the given classes and make a separate class of those common behaviors and attributes?
- Generalization
- Sub-typing
- Specialization
- Extension
562. We can allocate dynamic memory allocation through key word?
- Static
- Global
- New
- Constant
563. Which is an advantage of OOP?
- OOP makes it easy to re-use the code
- It provides an ability to create one user defined data type by extending the other
- It provides the facility of defining Abstract data types through which real world entities can be defined better
- All of given
564. Three main merits of “Object Oriented Programming” are
- Encapsulation, inheritance, polymorphism
- polymorphism, overloading, overriding
- encapsulation, inheritance, dynamic binding
- None
565. The sender of a message does not need to know exact class of the receiver.
- Inheritance
- Encapsulation
- Overloading
- None
566. Which will not a major element in an object model?
- Abstraction
- Encapsulation
- Persistence
- Hierarchy
567. Member functions defined inside a class declaration are by default?
- Visible
- Public
- Private
- Protected
568. Consider the following class:
class X
{
int a, b, c;
public:
X (): b(10), c(0),a(7){}};
Choose the correct order of initialization of above data members.
- a, c, b
- b, a, c
- a, b, c
- c, a, b
569. If a class Parent inherits from class Children, then class Parent is called?
- Child class
- Base class
- Parent class
- Super class
570. We can create array of objects with a user defined constructor?
- True
- False
571. A class has destructor?
- No
- One
- Two
- Three
572. It is creating objects of one class inside another class?
- Association
- Composition
- Aggregation
- Inheritance
573. Constant data members can be initialized?
- Constant Member Function
- Non-constant Member Function
- Member initializer List
- Class
574. The sub-object’s life is not dependent on the life of master class in ___
- Composition
- Aggregation
- Separation
- None
575. When we create objects, then space is allocated to:
- Member functions
- Access specifier
- Data members
- None
576. The dot operator connects the following two entities?
- A class member and a class object
- A class object and a class
- A class and a member of that class
- A class object and a member of that class
577. In OOP, disadvantage of inheritance include?
- It provides a useful conceptual framework
- It avoids rewriting a certain piece of code
- It facilitates the class libraries
- It provides independence of classes
578. An abstract class shows behavior?
- Overriding
- Specific
- General
- Overloading
579. The objects exhibit identical characteristics, then they belong to?
- Different classes
- Multiple classes
- Same class
- Abstract lass
580. Through interface we access object’s ___
- States
- Data members
- Behavior
- Class
581. Object can be declared constant with the use of Constant keyword.
- True
- False
582. Our model, and the rest of model is not affected, then it is called?
- Consistency
- Flexibility
- Efficiency
- Reusability
583. A template function must have at least generic data type?
- Zero
- Two
- Three
- none
584.Which of the following statement is best regarding declaration of friend function?
- Friend function must be declared after public keyword
- Friend function must be declared after private keyword.
- Friend function must be declared at the top within class definition.
- It can be declared anywhere in class as these are not affected by the public and private keywords
585.Which one of the following is the declaration of overloaded pre-increment operator implemented as member function?
- Class-name operator +(;
- Class-name operator +(int ;
- Class-name operator ++(;
- Class-name operator +(int ;
586.Class is a user defined?
- data type
- memory referee
- value
- none of the given options.
587.How many bytes will the pointer integer of type int move in the following statement?
Integer pointer += 3;
- 3 bytes
- 6 bytes
- 12 bytes
- 24 bytes
588.Which of the following is the correct C++ syntax to allocate space dynamically for an array int?
- new int(10 ;
- new int[10] ;
- int new(10 ;
- int new[10];
589.A Pointer is a special variable that contain?
- Data values
- Memory Address
- Both data and values
- None of the given option
590.Reference Value Type Data The code is written to the program?
- implement
- design
- analysis
- none of the given options
591.Operator overloading can be?
- Classes
- Function
- Operators
- Reference
592.When a value is referred by a normal variable then it is known as?
- Direct Reference
- Indirect Reference
- Partial Reference
- Proper Reference
When a value is referred by a normal variable is known as direct reference
593.Which of the following function is used to increase the size of already allocated memory chunk?
- malloc
- c allocation
- reallocation
- free
594.Which is NOT a preprocessor directive?
- #Error
- #Define
- #Line
- #Indefine
595.The stream objects are included in which header file?
- Iostream’s
- stream’s
- Istream.h
- ostream.h
596.Overloaded delete operator function takes the same parameter as an argument returned by new?
- operator
- function.
- True
- False.
597.When an array of object is created dynamically then there is no way to provide parameterized constructors?
- array of objects.
- True
- False
598.C is widely known as development language of OS?
- Linux
- Windows
- Unix12
- Mac OS
599.Computer can understand only machine language code.
- True
- False
600.We cannot define a function as a friend of a Template class
- True
- False