(A) Dynamic memory
(B) Static memory
(C) Both Dynamic and Static memory
(D) None of the given options
Tag: Introduction to Programming Languages
The appropriate data type to store the number of rows and colums of the matrix is__.
(A) float
(B) int
(C) char
(D) none of the given options.
Static variable which is defined in a function is initialized __.
(A) Only once during its life time
(B) Every time the function call
(C) Compile time of the program
(D) None of the above
If text is a pointer of class String then what is meant by the following statement? text = new String [5];?
(A) Creates an array of 5 string objects statically
(B) Creates an array of 5 string objects dynamically
(C) Creates an array of pointers to string
(D) Creates a string Object
When the compiler overloads the assignment (=) operator by default then __.
(A) compiler does member wise assignment.
(B) compiler does not allow default overload of assignment (=) operator
(C) member of the class are not assigned properly
(D) None of the given options
Consider the following code segment: class M {friend int operator!(const M &);}; Let assume if s is an object of the class then function is implemented as __.
(A) Member function
(B) Non-member function
(C) Binary operator function
(D) None of the given options
Which value is returned by the destructor of a class?
(A) A pointer to the class.
(B) An object of the class.
(C) A status code determining whether the class was destructed correctly
(D) Destructors do not return a value.
Classes defined inside other classes are called __ classes.
(A) looped
(B) nested
(C) overloaded
(D) none of the given options.