EASY
Earn 100

Which is the correct syntax of inheritance?
(a)class base_classname :access derived_classname{ /*define class body*/ };
(b)class derived_classname : access base_classname{ /*define class body*/ };
(c)class derived_classname : base_classname{ /*define class body*/ };
(d)class base_classname : derived_classname{ /*define class body*/ };

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

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

EASY
___________ underlines the feature of Polymorphism in a class.

MEDIUM
Which of the following is a valid class declaration?

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

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

EASY
Abstraction principle includes___________

EASY
In which access should a constructor be defined, so that object of the class can be created in any function?

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
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 is the example of object-oriented language.

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 feature of OOP reduces the use of nested classes?

MEDIUM
What is an abstraction in object-oriented programming?

EASY
Object declared in main() function _____________

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

EASY
Which definition best describes an object?

EASY
Which is not the property of object in OOPS?

