EASY
HSSC Clerk
IMPORTANT
Earn 100

Among following which will give the size of object or type?
(a)Calloc
(b)Malloc
(c)Sizeof
(d)Realloc
(e)None of these

50% studentsanswered this correctly

Important Questions on Object Oriented Programming
EASY
HSSC Clerk
IMPORTANT
Which is not feature of OOP in general definitions?

EASY
HSSC Clerk
IMPORTANT
When the compiler cannot differentiate between two overloaded constructors, they are called:

EASY
HSSC Clerk
IMPORTANT
A variable is defined within a block in a body of a function. Which of the following are true?

EASY
HSSC Clerk
IMPORTANT
Which one of the following are essential features of an object-oriented programming language?
(i) Abstraction and encapsulation.
(ii) Strictly-typedness.
(iii) Type-safe property coupled with sub-type rule.
(iv) Polymorphism in the presence of inheritance.

EASY
HSSC Clerk
IMPORTANT
Which of the following access specifier is used as a default in a class definition?

EASY
HSSC Clerk
IMPORTANT
If two classes combine some private data members and provides public member functions to access and manipulate those data members. Where is abstraction used?

EASY
HSSC Clerk
IMPORTANT
The objects allocated using new operator _____.

EASY
HSSC Clerk
IMPORTANT
If the object is not to be passed to any function but the values of the object have to be used then:
