C++
1) With
every use of memory allocation function, what function should be used to
release allocate memory which is no longer needed
Unalloc()
Dropmem()
Dealloc()
Free()
2) What is
the fundamental use of classes?
Define object
Define
a new type &new scope
Make programming
easy
Classify the
programmers
3) Member
function defined inside the class definition, by default is called
Member
function
Inline function
Constructor
Parametrized constructed
4) Which is
not a valid constructor
Inline
Copy
Default
Parametrized
5) How many
private, public, or protected sections can be there in a class
1
2
3
Multiple
6) The
member of a class can be
Data
Member function
Type definition
All
of the above
7) Classes
with pointer member variable must not
Explicitly overload
the assignment operator
Include cop constructor
Include destructor
Use
a non member operator function
8) A member
function always access the data
In the
object of which it is a member
In
the class of which it is a member
In any
object of class of which it is a member
In the
public port of its class
9) when
overloading an operator which of these is not true?
Can’t change
precedence or associativity
Default arguments
can’t be used
Can’t change
no of arguments that an operators takes
Can
change basic behavior of operator
No comments:
Post a Comment