Skip to main content

OOAD Multiple Choice Questions

 OOAD MULTIPLE CHOICE QUESTIONS UNIT WISE



1. A model is a _________ of reality. 

a. Complication 

b. Simplification 

c. Realization 

d. Generalization 

2. Models help us to________ a system as it is or the way it is wanted. 

a. Analyze 

b. Design 

c. Visualize 

d. Measure 

3. In which principle, the models created explain the identification of a problem and find its solution? 

a. The Choice of Model is Important 

b. Levels of Precision May Differ 

c. The Best Models are connected to Reality  

d. No Single Model is Sufficient 

4. Algorithmic and object-oriented are the two common ways for modeling ________ 

a. Non-software Systems

b.software systems

c. Vocabulary of a System 

d. Client/Server Systems

5. ________ helps to communicate the overall system architecture unambiguously. 

a. Flow charts 

b. Designing 

c. SRS 

d. Templates 

6. ________ defines the system's actions and how different parts contribute to it. 

a. Behavior 

b. Structure 

c. Model 

d. Use case 

7. ________ can be done for both simple and complex systems. 

a. Generalization n 

b. Specification cm, 

c. Modeling 

d. Collaboration 

8. The best kind of models helps to choose ________ 

a. Degree of detail 

b. Design view 

c. Single model 

d. Choice of model 

9. A set of ________ models are used to approach a complex system. 

a. Dependent w" 

b. Independent 

c. Both dependent and independent 

d. Different 

10. An Object-oriented program is structured as a community of interacting agents, called ________

a. Objects 

b. Classes 

c. Functions 

d. Statements 

11. UML is useful to ________ a system as it is or as we want it to be. 

a. Visualize 

b. Specify 

c. Document 

d. All of the above 

12. A collection of operations that specify the services rendered by a class or component known as________ 

a. Class 

b. Interaction 

c. Interface 

d. Collaboration 

13. ________ is an abstraction of a set of functions that the system performs. 

a. Class 

b. Interaction

c. Use case 

d. Collaboration 

14. ________ is a physical element that exists at runtime and represents a computational resource. 

a. Node 

b. Actor 

c. Name 

d. Object 

15. Which one of the following is not a structural thing? 

a. Class 

b. Package 

c. Use case 

d. Node 

16. ________ can represent the invocation of an operation, a step in a business p an entire business process. 

a. State machine 

b. Interaction 

c.use case

d. Activity 

17. The explanatory parts of the UML model are known as ________

a. Behavioral things 

b. Grouping things 

c. Structural things 

d. Annotational things 

18. A link is an instance of ________ 

a. Generalization 

b. Association 

c. Dependency 

d. Realization 

19.______ are used to create new building blocks from existing blocks. 

a. Tagged Values 

b. Stereotypes

c. Constraints 

d. Diagrams 

20. In which phase is the scope of the project defined? 

a. Inception 

b. Elaboration 

c. Construction 

d. Transition 

21. Which one of the following OOAD artifacts is the MOST useful? 

a. Use cases 

b. Interaction diagrams 

c. Activity diagrams 

d. Package diagrams 

22. All public methods in business model objects are defined directly or indirectly because of a ________ requirement. 

a. Use case 

b. Dependency 

c. Association 

d. Sequence 

23. UML interfaces are used to ________

a. Define an API for all classes 

b. Program in Java, but not in C++ or Smalltalk 

c. Define executable logic to reuse across classes 

d. Specify required services for types of objects 

24. An actor is ________

a. A person 

b. A job title 

c. A role 

d. A system 

25. The system icon identifies ________

a. The boundaries of the system 

b. The scope of the project so 

c. The context of the system 

d. Another system in the role of an actor

26. A person may function in ________

a. Only one role le 

b. Many roles 

c. One role per system 

d. One role per use case 

27. Devices and other systems ________

a. May be actors 

b. May only receive output from a use case 

c. May only provide input to a use case 

d. Are out of scope because we are describing only one system at 

28. Associations ________

a. May exist only between actors and use cases

b. Identify the flow of data between actors and use cases 

c.Identify interactions between actors and use cases 

d. Identify dependencies between actors and use cases 

29. Use cases ________

a. Identify business processes 

b. Identify system goals 

c. Describe workflow 

d. Prioritize system procedures 

30. The association stereotype «Extends» indicates ________

a. Delegation of part of a task to another use case 

b. The target use case is a subprocess of the source use cases 

c. A specialized form of a use case 

d. A deviation from the UML stan

OOAD MCQ (Multiple Choice Questions Answers)

1. Abstraction has ______ types.

a) 1

b) 2

c) 3

d) 4

Answer - Click Here:

D

2. To hide the internal implementation of an object we use …

a) inheritance

b) encapsulation

c) polymorphism

d) none of these

Answer - Click Here:

B

3. The vertcal dimension of a sequence diagram shows

a) abstract

b) line

c) time

d) messages

Answer - Click Here:

C

4. CRC approach and noun phrase approach are used to identify …

a) classes

b) colaborators

c) use cases

d) object

Answer - Click Here:

A

5. Abstraction provide an operation named as …

a) encapsulation

b) call back

c) turndown

d) inheritance

Answer - Click Here:

B

6. To distunguish between active and non-active object which property is applied?

a) abstraction

b) polymophism

c) concurrency

d) aggregation

Answer - Click Here:

C

7. The time oriented diagram include …

a) sequence

b) classes

c) activity

d) none of these

Answer - Click Here:

A

8. Aggregation is …

a) set of relationship

b) composed of relationship

c) part of relationship

d) all of these

Answer - Click Here:

B

9. Cohesion and coupling are represented by using …

a) structure part

b) structure effect

c) dependence matrix

d) all of these

Answer - Click Here:

C

10. Refinement is a process of

a) inheritance

b) colaboration

c) elaboration

d) polymophism

Answer - Click Here:

C

11. SMI stands for

a) software maturity index

b) system maturity information

c) software model index

c) none of these

Answer - Click Here:

A

12. Group of functionally related objects is …

a) concatenation

b) cohesion

c) coupling

d) all of these

Answer - Click Here:

B

in a sequence diagram, the _____ indicates when an object sends or receives a message.

(A)command line

(B)focus

(C)request link

(D)lifeline

Answer - Click Here:

(C)request link

When arranging actors and objects on a sequence diagram, it is nice to list them _____.

Answer - Click Here:

in order in which they participate in the sequence across the top of the diagram

A ___ describes information about an object.

Answer - Click Here:

attribute

The two types of interaction diagrams are ____, and ____ diagrams.

Answer - Click Here:

sequence and communication

Looping in an activity diagram is best represented using what?

Answer - Click Here:

Looping in an activity diagram is best represented by Synchronizaton bars.

A decision point within an activity diagram may be shown with an activity symbol.

True/False

Answer - Click Here:

True

A___ is an instantiation of a class.

Answer - Click Here:

object

On an activity diagram the arrows represent what?

Answer - Click Here:

In activity diagram the arrows represent the flow of activities.


The focus in a sequence diagram is on _____.

Answer - Click Here:

time ordering of messages being passed between objects

The acronym CRUD stands for ____.

Answer - Click Here:

create, read, update, delete

A deployment diagram is most useful for which design activity?

Answer - Click Here:

Designing the duplication components

The external behavior of a system is described by ___.

Answer - Click Here:

functional models

In an activity diagram, the merge symbol has the same shape as what other symbol?

Answer - Click Here:

Decision symbols


On an activity diagram, which of the following is not a valid use of a synchronization bar?

Answer - Click Here:

To initiate the alternative path.

 1) The method of design encompassing the process of object oriented decomposition and a notation for depicting both logical and physical and as well as static and dynamic models of the system under design is known as:

a) Object- Oriented Programming

b) Object- Oriented Design

c) Object- Oriented Analysis

d) None of the mentioned

View Answer

Answer: b

Explanation: The definition has two important parts. The former part uses the class and object abstractions to logically structure systems, and the latter uses algorithmic abstractions. The term object oriented design (OOD) is used to refer any method that leads to object oriented decomposition.

2) What is the programming style of the object oriented conceptual model?

a) Invariant relationships

b) Algorithms

c) Classes and objects

d) Goals, often expressed in a predicate calculus.

View Answer

Answer: c

Explanation: Object oriented programming follows a conceptual framework called object model and is implemented by writing classes and objects to make its style clear unlike procedure- oriented language.

3) The essential characteristics of an object that distinguish it from all other kinds of objects and thus provide crisply defined conceptual boundaries, relative to the perspective of the viewer is called:

a) Encapsulation

b) Modularity

c) Hierarchy

d) Abstraction

View Answer

Answer: d

Explanation: Abstraction focuses only on the outside view of an object and separates object’s essential behavior from its implementation. It explains what an object does but doesn’t explain how it does.

4) Abstraction is classified into _______ types

a) 4

b) 3

c) 2

d) 1

View Answer

Answer: a

Explanation: Entity abstraction, Action abstraction, Virtual machine abstraction, Coincidental abstraction

5) The process of compartmentalizing the elements of an abstraction that constitute its structure and behavior is called as

a) Hierarchy

b) Encapsulation

c) Modularity

d) Entity Abstraction

View Answer

Answer: b

Explanation: Encapsulation focuses upon the implementation that gives rise to this behavior and is mostly often achieved through information hiding i.e., abstraction.

6) Single inheritance, Multiple inheritance, and Aggregation comes under _______

a) Modularity

b) Typing

c) Hierarchy

d) None of the mentioned

View Answer

Answer: c

Explanation: All the three types are the examples of Hierarchy, as it denotes ranking or ordering of abstractions.

7) In which of the following mechanisms, types of all variables and expressions are fixed at compilation time.

a) Strong Typing

b) Weak Typing

c) Static Binding/ early binding

d) Dynamic Binding/ late binding

View Answer

Answer: c

Explanation: The memory address of a variable can be statically bound to the variable at compile time or dynamically at runtime. Likewise, variables in some languages have dynamic types that change during program execution, while other variables have static types that remain fixed over the execution of the program. Only the binding of the value determines whether the object is a variable or something else (such as constant).

8) In which of the following mechanisms, types of all variables and expressions are not known until runtime

a) Strong Typing

b) Weak Typing

c) Static Binding/ early binding

d) Dynamic Binding/ late binding

View Answer

Answer: d

Explanation: The memory address of a variable can be statically bound to the variable at compile time or dynamically at runtime. Likewise, variables in some languages have dynamic types that change during program execution, while other variables have static types that remain fixed over the execution of the program. Only the binding of the value determines whether the object is a variable or something else (such as constant).

9) Which of the following statements about Persistence is correct?

a) It is the enforcement of the class of an object, such that objects of different types may not be interchanged, or at the most they may be interchanged only in very restricted ways.

b) It is the property of an object through which its existence transcends time and/or space.

c) It is the property that distinguishes an active object from one that is not active.

d) All of the mentioned

View Answer

Answer: b

Explanation: Persistence deals with lifetime of data. Persistence saves the state and class of an object across time or space.

10) What is that concept in type theory in which a single name may denote objects of many different classes that are related by some common super class referred to ______

a) Monomorphism

b) Type Checking

c) Polymorphism

d) Generalization

View Answer

Answer: c

Explanation: Polymorphism is a feature of object oriented programming that usually takes the ability of creating an object, or variable, or a function in more than one form. Polymorphism exists when the features of inheritance and dynamic binding interact.

1) Object oriented technology is built upon a sound engineering foundation, whose elements are collectively called as _________

a) Von Neumann Model

b) Object Model

c) Structured Model

d) Programming Model

View Answer

Answer: b

Explanation: The object mode encompasses the principles of abstraction, encapsulation, modularity, typing, concurrency, and persistence which are the principles of object oriented programming language.

2) Which of the following programming language are object oriented in nature

a) Smalltalk and Simula

b) FORTRAN and ALGOL

c) C and Ada

d) Perl and Python

View Answer

Answer: a

Explanation: In Smalltalk and Simula, data and methods of manipulating the data are kept as a single unit called an object.

3) Callback is an operation provided by

a) Inheritance

b) Encapsulation

c) Modularity

d) Abstraction

View Answer

Answer: d

Explanation: A call back is a programming idiom which a client provides a function to the server and the server calls the client’s function whenever the appropriate conditions are met.

4) :reader, :writer or :accessor are the slot options in

a) Smalltalk

b) LISP

c) Object Pascal

d) CLOS

View Answer

Answer: CLOS

Explanation: These are the options which grant a client read access, write access, or read/write access respectively.

5) Dependencies among files can then be asserted using the macro

a) #define

b) #undef

c) #include

d) #endif

View Answer

Answer: c

Explanation: Modular implementations are placed in file named with a .c sufficx which are called header files. #include is necessary to tell the preprocessor where to look for header files if they are not placed in the current directory.

6) Inheritance is an example of which type of hierarchy

a) Class Structure

b) Object Structure

c) Both

d) None of the mentioned

View Answer

Answer: a

Explanation: Inheritance is the most important “is a” (class structure) hierarchy and not “part of” (object structure) hierarchy.

7) Superclass represents ______________ abstractions

a) Generalized abstractions

b) Specialization abstractions

c) Both

d) None of the mentioned

View Answer

Answer: a

Explanation: Generalization is the process of extracting shared characteristics from two or more classes, and combining them into a generalized superclass.

8) Subclass represents _______________ abstractions

a) Generalized abstractions

b) Specialization abstractions

c) Both

d) None of the mentioned

View Answer

Answer: b

Explanation: Specialization means creating new subclasses from an existing class.

9) _____________ is the property that distinguishes an active object from one that is not active.

a) Persistence

b) Typing

c) Aggregation

d) Concurrency

View Answer

Answer: d

Explanation: None.

10) Which of the following statements about object model is true?

I. Object model encourages the reuse of software and entire design of the application.

II. Object model produces systems that are built upon stable intermediate forms.

III. Object model reduce the inherent in developing complex systems.

IV. None of the mentioned

a) I, III

b) I, II

c) I, II, III

d) IV

View Answer

Answer: c

Explanation: All the above written statements are the benefits of object model.

Classes and Objects – 1.

1) Which of the following property is associated with objects?

a) State

b) Behavior

c) Identity

d) All of the mentioned

View Answer

Answer: d

Explanation: An object has state, exhibits some well defined behavior, and has a unique identity.

2) Which of the property of a object encompasses all of the (usually static) properties of the object plus the current (usually dynamic) values of each of these.

a) Semantics

b) Behavior

c) State

d) Identity

View Answer

Answer: c

Explanation: None.

3) The following is an example of

Struct PersonnelRecord

{

char name[100];

int socialSecurityNumber;

char department[10];

float salary;

};

a) Objects

b) Class

c) Both a and b

d) None of the mentioned

View Answer

Answer: b

Explanation: The above declaration denotes a class, not an object, because it does not represent a specific instance. To declare objects of this class we usually write in the following way:

PersonnelRecord deb, dave, jim, tom;

Class declaration is almost similar to struct declaration except that in reality it uses a keyword ‘class’ in place of ‘struct.’

4) Which of the following object types are generally autonomous, meaning that they can exhibit some behavior without being operated upon by another object

a) Passive

b) Active

c) Both a and b

d) None of the mentioned

View Answer

Answer: b

Explanation: None.

5) A ________ is a description of a set of objects that share the same attributes, operations, relationships, and semantics.

a) Structure

b) Class

c) Constructor

d) Function

View Answer

Answer: b

Explanation: Classes are the most important building blocks of any object- oriented systems. Classes are used to capture the vocabulary of the system you are developing. Modeling a system involves identifying the things that are important to your particular view. Hence all the above mentioned properties would distinguish each class from one another.

6) A ________ is a special member function whose task is to initialize the objects of its class.

a) Constructor

b) Destructor

c) Selector

d) Iterator

View Answer

Answer: a

Explanation: Constructors are special because its name is same as the class name. The constructor is invoked whenever an object of its associated class is created. It is called constructor because it constructs the value of data members of the class.

7) Which of the following statements about a constructor is not true?

a) We cannot refer to their addresses.

b) They cannot be inherited, though a derived class can call the base class constructor.

c) An object with a constructor can be used as a member of a union.

d) Constructors cannot be virtual.

View Answer

Answer: c

Explanation: An object with a constructor cannot be used as a member of a union. A union is a limited form of the class type. It can contain access specifiers (public, protected, private), member data, and member functions, including constructors and destructors. It cannot contain virtual member functions or static data members. Default access of members in a union is public. A union cannot be used as a base class and cannot be derived from a base class. (same with the constructor too, constructor cannot be inherited, though a derived class can call the basic class constructor).

8) The constructors that can take arguments are called ___________

a) Default Constructor

b) Copy Constructor

c) Parameterized Constructor

d) Dynamic Constructor

View Answer

Answer: c

Explanation: In order to initialize the various data elements of different objects with different values when they are created parameterized constructors are used.

9) When an object is created and initialized at the same time, a _________ constructor gets called.

a) Inline Constructor

b) Copy Constructor

c) Default Constructor

d) Parameterized Constructor

View Answer

Answer: b

Explanation: A copy constructor takes reference to an object of the same class as itself as an argument.

10) Destructor is defined as _______

a) Const matrix X(m, n);

b) matrix:: ~matrix(){ }

c) matrix:: matrix(void)

d) matrix()

View Answer

Answer: b

Explanation: A destructor is used to destroy the objects that have been created by a constructor. Like a constructor, the destructor is a member function whose name is same as the class name but is preceded by a tilde.












Comments

  1. I really appreciate your support on this.
    Look forward to hearing from you soon.
    I’m happy to answer your questions, if you have any.


    เล่นบาคาร่า

    คาสิโนออนไลน์

    เล่นบาคาร่า

    ReplyDelete
  2. Thank you for content. I like it and my site is different for your site. please visit my site. king kong slot

    ReplyDelete
  3. Thank you for content. I like it and my site is different for your site. please visit my site. 77up live

    ReplyDelete
  4. pg สล็อต คนไหนเป็นแฟนคลับเกมสล็อต เชื่อเลยว่าบางทีอาจจะไม่มีผู้ใดที่จะไม่เคยทราบและไม่เคยใช้บริการเกมสล็อต PG SLOT ด้วยเหตุว่าค่ายพีจีสล็อต ถือได้ว่าเป็นค่ายยักษ์ใหญ่

    ReplyDelete

Post a Comment

Popular posts from this blog

COMPILER DESIGN MULTIPLE CHOICE QUESTION

  MULTIPLE CHOICE QUESTION 1. Which tool is used for grouping of characters in tokens in the compiler? * a. Parser b. Code optimizer c. Code generator d. Scanner ANSWER.D 2) Does the compiler program translate the whole source code in one step? * a. No b. Depends on the Compiler c. Don't Know d. Yes ANSWER.D 3) The Lex compiler runs the lex.1 program and produces a C program as * a. lex.yy.c. b. lex.c c. lex.y.c d. a.out ANSWER.A 4) Buffer pair can store up to --------------------characters * a. N b. N+1 c. N2 d. N2n ANSWER.A 5) In the compiler, the function of using intermediate code is * a. to improve the register allocation b. to increase the error reporting & recovery. c. to make semantic analysis easier. d. to increase the chances of re-using the machine-independent code optimizer in other compilers. ANSWER.D 6) Which symbol is not related to context-free grammar? * a. End symbol b. Start symbol c. Non-terminal symbol d. Terminal symbol ANSWER.A 7) Which method merge...

Artificial Intelligence Multiple Choice Questions

  Artificial Intelligence Multiple Choice Questions 1) Artificial Intelligence is about_____. Playing a game on Computer Making a machine Intelligent Programming on Machine with your Own Intelligence Putting your intelligence in Machine Hide Answer Workspace Answer: b. Making a machine Intelligent. Explanation: Artificial Intelligence is a branch of Computer science, which aims to create intelligent machines so that machine can think intelligently in the same manner as a human does. 2) Who is known as the -Father of AI”? Fisher Ada Alan Turing John McCarthy Allen Newell Hide Answer Workspace Answer: c. John McCarthy Explanation: John McCarthy was a pioneer in the AI field and known as the father of Artificial intelligence. He was not only the known as the father of AI but also invented the term Artificial Intelligence. 3) Select the most appropriate situation for that a blind search can be used. Real-life situation Small Search Space Complex game All of the above Hide Answer Wor...