Your browser does not support Javascript!
H E L P D I C E



MCQ Problems / Explanations

CATEGORIES


Ad
Note* : We need your help, to provide better service of MCQ's, So please have a minute and type the question on which you want MCQ's to be filled in our MCQ Bank

Oops MCQ's

Ad
Which was the first purely object oriented programming language developed?
S OOPs
A
B
C
Explanation
 SmallTalk was the first programming language developed which was purely object oriented. It was developed by Alan Kay. OOP concept came into the picture in 1970's.
D
Show Answer
Which of the following best defines a class?
S OOPs
A
B
C
Explanation
 A class is Blueprint of an object which describes/shows all the functions and data that are provided by an object of a specific class. It can't be called as parent or instance of an object. Class in general describes all the properties of an object.
D
Show Answer
Who invented OOP?
S OOPs
A
Explanation
 Alan Kay invented OOP, Andrea Ferro was a part of SmallTalk Development. Dennis invented C++ and Adele Goldberg was in team to develop SmallTalk but Alan actually had got rewarded for OOP.
B
C
D
Show Answer
What is the additional feature in classes that was not in structures?
S OOPs
A
B
Explanation
 Member functions are allowed inside a class but were not present in structure concept. Data members, static data and public access specifiers were present in structures too.
C
D
Show Answer
Which is not feature of OOP in general definitions?
S OOPs
A
B
C
Explanation
 Duplicate/Redundant data is dependent on programmer and hence can't be guaranteed by OOP. Code reusability is done using inheritance. Modularity is supported by using different code files and classes. Codes are more efficient because of features of OOP.
D
Show Answer
Pure OOP can be implemented without using class in a program. (True or False)
S OOPs
A
B
Explanation
 It's false because for a program to be pure OOP, everything must be written inside classes. If this rule is violated, the program can't be labelled as purely OO.
C
D
Show Answer
Which Feature of OOP illustrated the code reusability?
S OOPs
A
B
C
D
Explanation
Using inheritance we can reuse the code already written and also can avoid creation of many new functions or variables, as that can be done one time and be reused, using classes.
Show Answer
Which language does not support all 4 types of inheritance?
S OOPs
A
B
Explanation
 Java doesn't support all 4 types of inheritance. It doesn't support multiple inheritance. But the multiple inheritance can be implemented using interfaces in Java.
C
D
Show Answer
How many classes can be defined in a single program?
S OOPs
A
B
C
D
Explanation
Any number of classes can be defined inside a program, provided that their names are different. In java, if public class is present then it must have the same name as that of file.
Show Answer
Why Java is Partially OOP language?
S OOPs
A
Explanation
 As Java supports usual declaration of data variables, it is partial implementation of OOP. Because according to rules of OOP, object constructors must be used, even for declaration of variables.
B
C
D
Show Answer

Tags:
Question and answers in OOPs, OOPs multiple choice questions and answers, oops Important MCQs, Solved MCQs for oops, oops MCQs with answers PDF download