EASY
Earn 100

In which access should a constructor be defined, so that object of the class can be created in any function?
(a)Protected
(b) Any access specifier will work
(c)Private
(d)Public

50% studentsanswered this correctly
Important Questions on C Language and OOP
EASY
Study the following program fragment
int ;
putchar ;
what it does?

MEDIUM
If a class have two data members and two functions then to add those two numbers and to subtract them, which among the following is most efficient if the programmer wants to implement multiplication too?

EASY
___________ underlines the feature of Polymorphism in a class.

EASY
Which is the correct syntax of inheritance?

EASY
How many objects can be declared of a specific class in a single program?

MEDIUM
What is an abstraction in object-oriented programming?

EASY
Abstraction principle includes___________

EASY
Instance of which type of class can’t be created?

EASY
Which definition best describes an object?

EASY
In multilevel inheritance, which is the most significant feature of OOP used?

MEDIUM
Which of the following is not correct (in C++) ?
i) Class templates and function templates are instantiated in the same way
ii) Class templates differ from function templates in the way they are initiated
iii) Class template is initiated by defining an object using the template argument
iv) Class templates are generally used for storage classes.

EASY
Which header file is required in C++ to use OOP?

EASY
Which of these features of OOP would indicate code reusability?

MEDIUM
Which feature of OOP is indicated by the following code?
class student{ int marks; };
class topper:public student{ int age; topper(int age){ this.age=age; } };

EASY
Which of the following is not a property of an object?

MEDIUM
Which of the following is a valid class declaration?

EASY
Object declared in main() function _____________

EASY
Which feature of OOP reduces the use of nested classes?

EASY
Which is the example of object-oriented language.

EASY
Which is not the property of object in OOPS?

