stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Object Oriented Programming Flashcards | StudBud
Explore
/
Object Oriented Programming
Object Oriented Programming
10 terms
·
StudBud Administration
Imported from external platform
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
Which of the following is not considered an OOP concept?
Exception
Polymorphism
Encapsulation
Abstraction
2
What is not considered a feature of OOP in general definitions?
Duplicate/Redundant data
Code reusability
Efficient Code
Modularity
3
What is NOT true about polymorphism?
It always increases the overhead of function definition
Ease in the readability of the program
The concept is the feature of OOP
Polymorphism helps in redefining the same functionality
4
Which feature of OOP indicates code reusability?
Polymorphism
Inheritance
Encapsulation
Abstraction
5
Which two features of object-oriented programming are, essentially, the same?
Inheritance and Encapsulation
Encapsulation and Polymorphism
Encapsulation and Abstraction
Abstraction and Polymorphism
6
What classes can directly access and change the value of the variable res?
None
Any class
Any class extending Solution
Only the Solution class
7
For zero points: when did the concepts of OOP come into the picture?
1960's
1980's
1990's
1970's
8
Encapsulation in OOP is a way of combining different...
fields and methods that operate on those fields into a single unit
fields and methods into a single unit which can operate on any data
fields into a single unit
methods into a single unit
9
Part 2 of 2: What line number triggers the compilation error?
Line 9
Line 6
Line 11
Line 8
10
Part 1 of 2: What will be the output of the following Java program?
5 6 5 6
5 6 5
a Compilation Error
a Runtime Error