Which of the following data types comes under 'Integer' data type?
short
long
int
all of the mentioned
Browse topic-based Object Oriented System Design practice sets.
73 practice sets · Page 4 of 4
Which of the following data types comes under 'Integer' data type?
short
long
int
all of the mentioned
How many Primitive data types are there in Java?
4
2
8
7
Which of the following data types are available in Java?
Primitive Datatypes
Reference Datatypes
Both
None of the mentioned
Destructor is defined as _______
Const matrix X(m, n);
matrix:: ~matrix(){ }
matrix:: matrix(void)
matrix()
When an object is created and initialized at the same time, a _________ constructor gets called.
Inline Constructor
Copy Constructor
Default Constructor
Parameterized Constructor
The constructors that can take arguments are called ___________
Default Constructor
Copy Constructor
Parameterized Constructor
Dynamic Constructor
Which of the following statements about a constructor is not true?
We cannot refer to their addresses.
They cannot be inherited, though a derived class can call the base class constructor.
An object with a constructor can be used as a member of a union.
Constructors cannot be virtual.
A ________ is a special member function whose task is to initialize the objects of its class.
Constructor
Destructor
Selector
Iterator
A ________ is a description of a set of objects that share the same attributes, operations, relationships, and semantics.
Structure
Class
Constructor
Function
Which of the following object types are generally autonomous, meaning that they can exhibit some behavior without being operated upon by another object
Passive
Active
Both a and b
None of the mentioned
The following is an example of Struct PersonnelRecord { char name[100]; int socialSecurityNumber; char department[10]; float salary; };
Objects
Class
Both a and b
None of the mentioned
Which of the property of a object encompasses all of the (usually static) properties of the object plus the current (usually dynamic) values of each of these.
Semantics
Behavior
State
Identity
Which of the following property is associated with objects?
State
Behavior
Identity
All of the mentioned