EASY
HSSC Clerk
IMPORTANT
Earn 100

Which among the following best describes the protected specifier?
(a)Members are most secure and can't be used outside class
(b)Members are secure but can be used outside the class
(c)Members are secure as private, but can be inherited
(d)Members are secure like private, but can't be inherited
(e)None of these

50% studentsanswered this correctly

Important Questions on Object Oriented Programming
EASY
HSSC Clerk
IMPORTANT
Protected members differ from default members as _____.

EASY
HSSC Clerk
IMPORTANT
What is purpose of abstract class?

EASY
HSSC Clerk
IMPORTANT
Among following which will give the size of object or type?

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?
