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