0% found this document useful (0 votes)
7 views7 pages

Understanding Object-Oriented Concepts

Uploaded by

3725132
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views7 pages

Understanding Object-Oriented Concepts

Uploaded by

3725132
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

b1. Objects can be thought of as little modules the encapsulate _____.

Techniques for system


A. development
Data and
B. processes
Other
C. objects

System
D
specifications
.
Business
E. operations

a2. The distinction between a class and an object is _____________________.


A class is a template for creating objects, while an object is
A. an instance of a class
An object is a template for creating objects, while a class is
B. an instance of an object
Classes can be instantiated from objects, while the opposite
C. is not true

Classes and objects both are templates only, but classes


D
provide a more complete template
.
Neither a class nor an object is a template, but objects are
E. better suited for system development

a3. ________ implement an object's behavior.


Metho
A. ds
Messag
B. es
Procedure
C. s

Other
D
objects
.
Attributes
E.

e4. According to the principle of inheritance, ________________________.


A superclass inherits methods and attributes from its
A. subclass
A subclass inherits messages and data from its
B. superclass
A superclass inherits messages and data from its
C. subclass

A class can inherit methods and attributes from every other


D
class
.
A subclass inherits methods and attributes from its
E. superclass

c5. _____ means that the same message can be interpreted differently by different
classes of objects.

Inheritance
A.
Encapsulatio
B. n
Polymorphis
C. m

Information
D
Hiding
.
Dynamic
E. Binding

b6. In dynamic binding, the specific method that is used by the program must be
determined at ____________
Compile
A. time
Run
B. time
The time of
C. development

D The time of specification of the system


.
None of the
E. above

b7. A ___________ models the interaction of the information system with its end-
users and other external systems.
Implementation
A. plan.
Use case
B. diagram.
Class
C. diagram.

Package
D
diagram.
.
Database
E. diagram.

e8. ________ allow the analyst to model the processes in an information system.
Package
A. diagrams
Deployment
B. diagrams
Component
C. diagrams

Class
D
diagrams
.
Activity
E. diagrams
d9. _________ diagrams represent the things, concepts or ideas that are contained in
an application.
Interaction
A. diagrams
Deployment
B. diagrams
Sequence
C. diagrams

Class
D
diagrams
.
Activity
E. diagrams

a10. _____ groups UML elements together to form higher level constructs.
Package
A. diagrams
Deployment
B. diagrams
Sequence
C. diagrams

Class
D
diagrams
.
Activity
E. diagrams

a11. An abstract class is primarily used as a template for defining other classes, and
no instances can be created from abstract classes.
Tru
A. e

False
B.

a12. UML provides a common vocabulary of object-oriented terms and diagramming


techniques which help model information system projects from analysis through
implementation.
Tru
A. e

False
B.

a13. For a client-server system, a component diagram is useful in showing which


packages are placed on the client computers versus which ones are placed on the
server.
Tru
A. e

False
B.

a14. An individual use-case and its details can be modeled using an activity diagram.
Tru
A. e

False
B.

a15. Sequence diagrams depict the time-based ordering of activity that takes place
among a set of collaborating objects.
Tru
A. e

False
B.

b16. Communication diagrams emphasize/depict the time-based ordering of an


activity, while sequence diagrams emphasize/depict the messages that are
passed between collaborating objects.
Tru
A. e
False
B.

b17. In UML model diagrams, only classes are allowed to have stereotypes, since
there is no need for stereotypes for other UML elements such as use cases and
relationships.
Tru
A. e

False
B.

b18. Functional view of a system describes the internal behavior of the object-
oriented system, while dynamic view specifies the external behavior of the
system.
Tru
A. e

False
B.

a19. UML structure and behavioral diagrams are one of the deliverables of the
inception phase of the Unified Process.
Tru
A. e

False
B.

a20. Project management workflow is the only workflow that truly spans across all
phases of the Unified Process.
Tru
A. e

False
B.

Common questions

Powered by AI

Polymorphism enhances flexibility by allowing the same method to be interpreted differently across different classes of objects, enabling a single interface to handle various data types and operations. This results in systems that are easier to extend and maintain since changes often affect a minimal amount of code .

Inheritance allows a subclass to inherit methods and attributes from its superclass, promoting code reuse because common functionality need not be rewritten. This enables the development of scalable systems where new classes can build upon existing ones, extending or specializing behavior without duplication .

Class diagrams represent the static structure of an application by depicting its classes, attributes, methods, and the relationships between classes. This provides a clear overview of the system’s architecture, facilitating better design and communication among developers .

Activity diagrams allow analysts to model the processes in an information system by providing a graphical representation of workflows and operations, showing the flow of control and data among different tasks. This helps in understanding and documenting the dynamic aspects of the system .

Dynamic binding determines which method to execute at runtime rather than compile time, allowing for more flexible and adaptable program behavior based on actual object types and states present during execution. This ensures that the correct method is called according to the object's runtime class .

Use case diagrams model the interactions of an information system with its users and external systems, helping to visualize the system's functional requirements and user interactions. This aids analysts in understanding and defining the system's intended functions and the user experience .

Abstract classes serve as templates for defining new classes by providing foundational behaviors and structures without allowing instantiation. This encourages the design of systems with a clear hierarchy and modular architecture, where concrete classes can override or extend specific behaviors .

Objects encapsulate data and processes by acting as modules that bundle data with the methods that operate on that data, thereby hiding the inner workings from the outside world and providing a clear interface for interaction .

Methods implement an object's behavior by defining the operations that can be performed on the object's data, thereby allowing interaction with the object's attributes and enabling dynamic functionality based on the object's state .

A class is a template for creating objects, meaning it defines the structure and behavior that its objects (instances) will have. In contrast, an object is an instance of a class, representing a specific entity in the system. This distinction affects system building by allowing developers to define reusable structures and behaviors (classes) and instantiate them as needed (objects) to model real-world entities .

You might also like