(A) The new operator determines the size of an object
(B) Allocates memory to object and returns pointer of valid type
(C) Creates an object and calls the constructor to initialize the object
(D) All of the given options
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.
Reusing the variables in program helps to save the memory?
(A) True
(B) False
(C) Both
(D) None
The name of an array represents address of first location of array element?
(A) True
(B) False
(C) Both
(D) None
Suppose a program contains an array declared as int arr[100]; what will be the size of array?
(A) 0
(B) 99
(C) 100
(D) 101
If we do not mention any return_value_type with a function, it will return an __ value.
(A) int
(B) void
(C) double
(D) float
A template function must have at least __ generic data type?
(A) 0
(B) 1
(C) 2
(D) 3
The operator function of << and >> operators are always the member function of a class?
(A) True
(B) False
(C) Both
(D) None
new and delete operators cannot be overloaded as member functions?
(A) True
(B) False
(C) Both
(D) None