COMPUTER AWARENESS MCQS SET 156
Q1. Object Oriented
Programming (OOP) is a _______philosophy:
a) Network
b) Design
c) Data Type
d) None of These
-------------------------------------
Q2. 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
-------------------------------------
Q3. 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
-------------------------------------
Q4. 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
e) None of These
-------------------------------------
Q5. 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) All of the above
e) None of These
-------------------------------------
Q6. ______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
-------------------------------------
Q7. 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
-------------------------------------
Q8. A ____ is a namespace
for organizing classes and interfaces in a logical manner. Placing your
code into ______makes large software projects easier to manage. This section
explains why this is useful and introduces you to the Application Programming
Interface (API) provided by
the Java Platform:
a) Inheritance
b) Object
c) Package
d) None of These
-------------------------------------
Q9. SRP stands for:
a) Server Responsibility
Principle
b) Single
Responsibility Principle
c) Standard
Responsibility Principle
d) None of These
-------------------------------------
Q10. OCP stands for:
a) Open Closed
Principle
b) Open Class Principle
c) Organized Closed
Principle
d) None of These
No comments:
Post a Comment