Vous êtes sur la page 1sur 2

Thursday, February 17th 2011

SYSTEMS ANALYSIS & DESIGN


BY MUHAMMAD SAUD KHAN

CMS #: ___________ FULL NAME: ____________________________________________________

1) Objects can be thought of as little modules the encapsulate:


a) Techniques for system development
b) Data and processes
c) Other objects
d) System specifications
e) Business operations

2) The distinction between a class and an object is:


a) A class is a template for creating objects, while an object is an instance of a class
b) An object is a template for creating objects, while a class is an instance of an object
c) Classes can be instantiated from objects, while the opposite is not true
d) Classes and objects both are templates only, but classes provide a more complete template
e) Neither a class nor an object is a template, but objects are better suited for system development

3) ________ implement an object's behavior.


a) Methods
b) Messages
c) Procedures
d) Other objects
e) Attributes

4) According to the principle of inheritance:


a) A superclass inherits methods and attributes from its subclass
b) A subclass inherits messages and data from its superclass
c) A superclass inherits messages and data from its subclass
d) A class can inherit methods and attributes from every other class
e) A subclass inherits methods and attributes from its superclass

5) _____ means that the same message can be interpreted differently by different classes of
objects.
a) Inheritance
b) Encapsulation
c) Polymorphism
d) Information Hiding
e) Dynamic Binding

6) In dynamic binding, the specific method that is used by the program must be determined at:
a) Compile time
b) Run time
c) The time of development

Page 1 of 2
Thursday, February 17th 2011
SYSTEMS ANALYSIS & DESIGN
BY MUHAMMAD SAUD KHAN

CMS #: ___________ FULL NAME: ____________________________________________________

7) Objects are treated like black boxes, based on principle of:


a) Polymorphism
b) Encapsulation
c) Inheritance
d) None of the above

8) Members can only be accessed by the same class members and child class members when
______ access modifier is used.
a) public
b) private
c) protected
d) internal
e) protected internal

9) ____________ is the process to define more than one method with the same name.
a) Method Overriding
b) Method Overloading
c) Information hiding

10) Classes that are used merely as templates for other more specific classes are referred to as:
a) Abstract classes
b) Concrete classes
c) Parent Classes

Page 2 of 2

Vous aimerez peut-être aussi