Q1. Object Oriented Programming (OOP) is a _______philosophy:
a) Network
b) Design
c) Data Type
d) None of These * answer* ( b) Design
Q2. OOP uses a different set of programming languages than old procedural
programming Languages such as:
a) C
b) Pascal
c) Both of the Above
d) None of These * answer* ( c) Both of the Above
Q3. One of the principal advantages 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 * answer* ( b) Modules
Q4. Which of the following definitions is correct:
a) Object - Any entity that has state and behavior is known as an object.
,COMPUTER AWARENESS QUESTIONS & ANSWERS BANK
b) Class - A Collection of objects is called a class. It is a logical entity.
c) Inheritance - When one object acquires all the properties and behaviors of a
parent object, it's known
as inheritance. It provides code reusability and is used to achieve run-time
polymorphism.
d) All of the above
e) None of these * answer* ( a) Object - Any entity that has state and behavior
is known as an object.
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 a blueprint or plan, or template that describes the details of an object.
c) A class is the blueprint 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 * answer* ( 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 superclasses 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
, COMPUTER AWARENESS QUESTIONS & ANSWERS BANK
d) None of These * answer* ( b) Inheritance
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 * answer* ( b) Interface
Q8. A ____ is a namespace for logically organizing classes and interfaces. Placing
your code into ________ makes large software projects easier to manage. This
section explains why it 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 * answer* (c) Package
Q9. SRP stands for:
a) Server Responsibility Principle
b) Single Responsibility Principle
c) Standard Responsibility Principle
d) None of These * answer* (b) Single Responsibility Principle