(A) Only block of memory is deallocated for objects
(B) Only destructor is called for objects
(C) Memory is deallocated first before calling destructor
(D) Destructor is called first before deallocating memory
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.
What is the sequence of event(s) when allocating memory using new operator?
(A) Only block of memory is allocated for objects
(B) Only constructor is called for objects
(C) Memory is allocated first before calling constructor
(D) Constructor is called first before allocating memory
What is the functionality of the following syntax to delete an array of 5 objects named arr allocated using new operator? delete arr ;?
(A) Deletes all the objects of array
(B) Deletes one object of array
(C) Do not delete any object
(D) Results into syntax error
The compiler does not provide a copy constructor if we do not provide it?
(A) True
(B) False
(C) Both
(D) None
The declarator of Plus (+) member operator function is?
(A) Class-Name operator + (Class-Name rhs)
(B) operator Class-Name + ( )
(C) operator Class-Name + ( rhs)
(D) Class-Name operator + ( )
eof( ), bad( ), good( ), clear( ) all are manipulators?
(A) True
(B) False
(C) Both
(D) None
setw is a parameterized manipulator?
(A) True
(B) False
(C) Both
(D) None
When a pointer is incremented, it actually jumps the number of memory addresses?
(A) According to data type
(B) 1 byte exactly
(C) 1 bit exactly
(D) A pointer variable can not be incremented