Computer Fundamentals Questions and Answers – Concepts of OOP

This set of Computer Fundamentals Multiple Choice Questions & Answers (MCQs) focuses on “Concepts of OOP”.

1. A ______________ represents the need of information in the program without the presenting the details.
a) abstraction
b) polymorphism
c) implementation
d) class
View Answer

Answer: a
Explanation: Abstraction is a concept that involves hiding the details and giving only the necessary information to the user. It increases the power of a programming language.

2. Abstraction combines the data and functions into a single unit called a class.
a) True
b) False
View Answer

Answer: b
Explanation: The statement is false. Data abstraction involves hiding the details and giving only the necessary information to the user.

3. The process of forming a new class from an existing class.
a) Abstraction
b) Polymorphism
c) Inheritance
d) Implementation
View Answer

Answer: c
Explanation: The answer is inheritance. The base class is the parent class and the new class is called the child class.
advertisement
advertisement

4. This concept allows routines to use data again at different times.
a) Abstraction
b) Polymorphism
c) Inheritance
d) Implementation
View Answer

Answer: b
Explanation: Polymorphism is a concept in OOP wherein different functions can be used again at different times.

5. The ability for programmers to use the same written and debugged existing class.
a) Reusability
b) Design
c) Debugging
d) Implementation
View Answer

Answer: a
Explanation: The programmer can add features to the existing class. The programmer on further developing the application, and allowing users to achieve increased performance.
Note: Join free Sanfoundry classes at Telegram or Youtube

6. A concept that combines data and functions into a single unit called class.
a) inheritance
b) encapsulation
c) polymorphism
d) abstraction
View Answer

Answer: b
Explanation: Encapsulation enables the important concept of data hiding possible. It combines data and functions into a single unit.

7. __________ represents a particular instance of a class.
a) module
b) block
c) object
d) token
View Answer

Answer: c
Explanation: An object is an instance of the class. The data members are accessed with the help of objects.
advertisement

8. A basic unit of object-oriented programming.
a) module
b) block
c) object
d) token
View Answer

Answer: c
Explanation: In OOP, the basic unit is an object. Objects are identified by its unique name.

9. A procedural programming follows ___________ approach.
a) top-down
b) bottom-up
c) left-right
d) right-left
View Answer

Answer: a
Explanation: A procedural programming follows top-down approach. The main focus is on the functions. It has a lot of global variable.
advertisement

10. A programming technique in which the focus is on doing things.
a) object oriented
b) procedural
c) logical
d) structural
View Answer

Answer: b
Explanation: In procedural programming, the focus is on doing things(functions). It follows top-down approach.

Sanfoundry Global Education & Learning Series – Computer Fundamentals.

To practice all areas of Computer Fundamentals, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.