(A) Operators
(B) Functions
(C) Objects
(D) Structures
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.
Which of the following option will be true to overload the -= operator?
(A) Minus (-) and = operators need to be overloaded
(B) the -= operator need to be overloaded explicitly
(C) the – and = operators need to be overloaded implicitly
(D) Non of given
Which of the following is true while overloading operators?
(A) Precedence of an operator can be changed
(B) The parity (number of operands) can be changed
(C) No new operators can be created
(D) Associativity of an operator can be changed
Friend functions are __ of a class.
(A) Member functions
(B) Public member functions
(C) Private member functions
(D) Private member functions
The member functions of a class occupy __ region in memory for __ object(s) of class.
(A) separate, each
(B) common, all
(C) different, each
(D) different, all
new and delete are __ whereas malloc and free are __.
(A) Functions, operators
(B) Classes, operators
(C) Operators, functions
(D) Operators, classes
There is a pointer variable named ptr of type int then address of which type of variable the ptr will store in it?
(A) variable of type char
(B) variable of type short
(C) variable of type int
(D) variable of type double
Template class can not have static variables?
(A) True
(B) False
(C) Both
(D) None