(A) Different
(B) Identical
(C) Two names of same function
(D) None of the above
Category: Introduction to Programming Mcqs
Introduction to Programming Mcqs for Screening tests, Interviews, Viva and Other competitive exams. Programming Mcqs section will help users to prepare mcqs of programming languages for various exams. Aspirants of Lecturer Computer Science, SST Computer Science, Subject Specialist Computer Science, Data Entry operator, Computer Programmer, Computer Operator, Software engineer and all other Competitive Exams can prepare their computer programming portion from here.
Copy constructor becomes necessary while dealing with __allocation in the class.
(A) Dynamic memory
(B) Static memory
(C) Both Dynamic and Static memory
(D) None of the given options
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.