(A) True
(B) False
(C) Both
(D) None
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.
When ever dynamic memory allocation is made in C/C++, it is freed__.
(A) Explicitly
(B) Implicitly
(C) Both explicitly and implicitly
(D) None of the given options
It is possible to define a class within another class?
(A) True
(B) False
(C) Both
(D) None
The template functions do NOT promote the code reuse?
(A) True
(B) False
(C) Both
(D) None
In C++, we can have structures or classes defined inside classes. Classes defined within other classes are called __ classes.
(A) nested
(B) Child
(C) Parent
(D) Branch
Initializer list is used to initialize the inner objects at the construction time?
(A) True
(B) False
(C) Both
(D) None
The order of destruction of an object is equle to this construction order, where the outer object is destroyed first before the inner data members?
(A) True
(B) False
(C) Both
(D) None
The inner data members of the object are constructed and then the object itself?
(A) True
(B) False
(C) Both
(D) None