Posted on: October 27, 2022 | Author: Odisha | Category: Computer MCQ

WWW.ODISHASTUDYPOINT.IN

FOR COMPLETE COMPUTER MCQ CLICK HERE

COMPUTER MCQ – 14

Object Oriented Programming (OOP) is a _______philosophy:
a) Network
b) Design
c) Data Type
d) None of These

OOP uses a different set of programming languages than old procedural programming
languages such as:
a) C
b) Pascal
c) Both of Above
d) None of These

One of the principal advantage of object oriented programming techniques over procedural
programming techniques is that they enable programmers to create ______that do not need to
be changed when a new type of object is added:
a) Networks
b) Modules
c) Data Slates
d) None of These

Which among the following definitions are correct:
a) Object – Any entity that has state and behavior is known as an object.
b) Class – Collection of objects is called class. It is logical entity.
c) Inheritance – When one object acquires all the properties and behaviors of parent object its knonw as inheritance. It provides code re-usability and is used to achieve run time polymorphism.
d) All of the above

Which one among the following is incorrect about ‘class’:
a) A class is simply a representation of the type of object.
b) It is blueprint or plan or template that describes the details of an object.
c) A class is the blue print from which the individual objects are created. It is composed of three things – a name, attributes and operations
d) None of These

______provides a powerful and natural mechanism for organizing and structuring your software. It also explains how classes inherit state and behavior from their super classes and explains how to derive one class from another using the simple syntax provided by the java programming language:
a) Object
b) Inheritance
c) Class
d) None of These

An _____ is a contract between a class and the outside world. When a class implements an interface, it promises to provide the behavior published by that ______:
a) Object
b) Interface
c) Package
d) None of These

SRP stands for:
a) Server Responsibility Principle
b) Single Responsibility Principle
c) Standard Responsibility Principle
d) None of These

OCP stands for:
a) Open Closed Principle
b) Open Class Principle
c) Organized Closed Principle
d) None of These

LSP stands for:
a) Local Substitution Principle
b) Liskov Substitution Principle
c) Labeled Substitution Principle
d) None of These

DIP stands for:
a) Domain Inversion Principle
b) Diodic Inversion Principle
c) Dependency Inversion Principle
d) None of These


Leave a Reply

Your email address will not be published. Required fields are marked *