Top Banner
MCQ Unit I 1. A Class consists of which of these abstractions? a) Name Compartment b) Attribute Compartment c) Operation Compartment d) All of the mentioned 2. An attribute is a data item held by which of the following? a) Class b) Object c) All of the mentioned d) None of the mentioned 3. The Unified Modeling Language (UML) has become an effective standard for software modelling.How many different notations does it have ? a) Three b) Four c) Six d) Nine 4. Which model in system modelling depicts the dynamic behaviour of the system ? a) Context Model b) Behavioral Model c) Data Model d) Object Model 5. Which model in system modelling depicts the static nature of the system? a) Behavioral Model b) Context Model c) Data Model d) Structural Model 6. Which perspective in system modelling shows the system or data architecture? a) Structural perspective b) Behavioral perspective
24

MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

Feb 14, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

MCQ Unit I

1. A Class consists of which of these abstractions?

a) Name Compartment

b) Attribute Compartment

c) Operation Compartment

d) All of the mentioned

2. An attribute is a data item held by which of the following?

a) Class

b) Object

c) All of the mentioned

d) None of the mentioned

3. The Unified Modeling Language (UML) has become an effective standard for software

modelling.How many different notations does it have ?

a) Three

b) Four

c) Six

d) Nine

4. Which model in system modelling depicts the dynamic behaviour of the system ?

a) Context Model

b) Behavioral Model

c) Data Model

d) Object Model

5. Which model in system modelling depicts the static nature of the system?

a) Behavioral Model

b) Context Model

c) Data Model

d) Structural Model

6. Which perspective in system modelling shows the system or data architecture?

a) Structural perspective

b) Behavioral perspective

Page 2: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

c) External perspective

d) All of the mentioned

7. Model-driven engineering is just a theoretical concept. It cannot be converted into a

working/executable code.

a) True

b) False

8. The UML supports event-based modeling using ____________ diagrams.

a) Deployment

b) Collaboration

c) State chart

d) All of the mentioned

9. Which of the following diagram is not supported by UML considering Data-driven

modeling ?

a) Activity

b) Data Flow Diagram (DFD)

c) State Chart

d) Component

10. _________________ allows us to infer that different members of classes have some

common characteristics.

a) Realization

b) Aggregation

c) Generalization

d) dependency

11. ______________ & ______________ diagrams of UML represent Interaction modeling.

a) Use Case, Sequence

b) Class, Object

c) Activity, State Chart

d) All of the mentioned

12. Single inheritance, Multiple inheritance, and Aggregation comes under _______

a) Modularity

b) Typing

Page 3: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

c) Hierarchy

d) None of the mentioned

13. 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

14. 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

15. 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

16. 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.

17. Which relationship gives whole part relationship between two classes

a) Aggregation

b) Dependency

c) Composition

d) Both a & b

Page 4: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

18. Which of the following UML diagrams has a static view?

a) Collaboration

b) Use case

c) State chart

d) Activity

19. What type of core-relationship is represented by the symbol in the figure below?

a) Aggregation

b) Dependency

c) Generalization

d) Association

20. Which core element of UML is being shown in the figure?

a) Node

b) Interface

c) Class

d) Component

21. What type of relationship is represented by Shape class and Square ?

Page 5: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

a) Realization

b) Generalization

c) Aggregation

d) Dependency

22. Which diagram in UML shows a complete or partial view of the structure of a modeled

system at a specific time?

a) Sequence Diagram

b) Collaboration Diagram

c) Class Diagram

d) Object Diagram

23. Interaction Diagram is a combined term for

a) Sequence Diagram + Collaboration Diagram

b) Activity Diagram + State Chart Diagram

c) Deployment Diagram + Collaboration Diagram

d) None of the mentioned

24. Structure diagrams emphasize the things that must be present in the system being

modeled.

a) True

b) False

25. Which of the following diagram is time oriented?

a) Collaboration

b) Sequence

c) Activity

d) None of the mentioned

Page 6: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

26. How many diagrams are here in Unified Modelling Language?

a) six

b) seven

c) eight

d) nine

27. Which UML diagram is shown below?

a) Use Case

b) Collaboration Diagram

c) Class Diagram

d) Object Diagram

28. Which UML diagram is shown below?

Page 7: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

a) Use Case

b) State Chart

c) Activity

d) Object Diagram

29. Which UML diagram is shown below?

a) Use Case

b) Collaboration Diagram

c) Sequence Diagram

d) Object Diagram

30. Which UML diagram’s symbols are shown below?

a) Deployment diagram

b) Collaboration Diagram

c) Component Diagram

d) Object Diagram

Page 8: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

31. Which of these truly defines Software design?

a) Software design is an activity subjected to constraints

b) Software Design specifies nature and composition of software product

c) Software Design satisfies client needs and desires

d) All of the mentioned

32. What is incorrect about structural design?

a) Structural design introduced notations and heuristics

b) Structural design emphasis on procedural decomposition

c) The advantage is data flow representation

d) It follows Structure chart

33. What is the solution for Structural design?

a) The specification model following data flow diagram

b) Procedures represented as bubbles

c) Specification model is structure chart showing procedure calling hierarchy and flow of

data in and out of procedures

d) Emphasizing procedural decomposition

34. What is followed by the design task?

a) Choosing specific classes, operations

b) Checking model’s completeness

c) Following design task heuristics

d) All of the mentioned

35. Which of this analysis are not acceptable?

a) Object oriented design is a far better approach compared to structural design

b) Object oriented design always dominates structural design

c) Object oriented design are given more preference than structural design

d) Object oriented uses more specific notations

36. Which of these does not represent object oriented design?

a) It follows regular procedural decomposition in favor of class and object decomposition

b) Programs are thought of collection of objects

c) Central model represents class diagrams that show the classes comprising a program

Page 9: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

and their relationships to one another

d) Object-oriented methods incorporates Structural methods

37. Engineering design activities consists of which of the following?

a) Studying the SRS

b) Producing new models of the problem

c) Product design models

d) All of the mentioned

38. What is Analysis model?

a) Understanding of design problem

b) Representation of design problem solution

c) Representation of design problem

d) All of the mentioned

39. Which is not the phase from unified process

a) Elaboration

b) Inception

c) Deployment

d) Construction

40. Conceptual models are useful for which of the following reasons?

a) Understanding problem design

b) Data Requirements and Product design

c) Validating requirements

d) All of the mentioned

41. Include dependencies means one functionality is compulsory depends on other

functionality.

a) True

b) False

42. Which one is not the type of inheritance

a) Multilevel

b) Single level

c) Hybrid

Page 10: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

d) Level 2

43. This is which type of relation ship

a) Generalization

b) Dependencies

c) Realization

d) Aggregation

44. Number of levels in DFD (data flow diagram) are depends on complexity of problem.

a) True

b) Fals

45. Structure chart is method of designing model using structural approach

a) True

b) False

46. Message used to give reply at user end is called

a) Synchronous message

b) Reply message

c) Asynchronous message

d) Self loop

47. An active class objects shows concurrent behavior

a) True

b) False

48. Annotational things are thing which are

a) Explanatory part of UML

b) Which provide grouping element in UML

Page 11: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

c) Provide behavioral element in UML

d) None of this

49. Reflexive association is nothing but

a) Shows relationship between two classes

b) Shows dependencies between two classes

c) Shows class associated with it self

50. Composition is tightly bonding of two classes

a) True

b) False

Page 12: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

MCQ’s on Unit 2

Static Modeling

1. The Unified Modeling Language (UML) has become an effective standard for software

modelling. How many different notations does it have ?

a) Three

b) Four

c) Six

d) Nine

2. ________ diagrams are used to illustrate data structures, and the static snapshots instances of

the things found in the class diagrams.

a) Use case

b) Object

c) Collaboration

d) Sequence

3. Object diagram is used to show the design ________ view of a system.

a) Static

b) Dynamic

c) Logical

d) Process

4. Which perspective in system modelling shows the system or data architecture.

a) Structural perspective

b) Behavioral perspective

c) External perspective

Page 13: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

d) All of the mentioned

5. Which system model is being depicted by the ATM operations shown below:

a) Structural model

b) Context model

c) Behavioral model

d) Interaction model

6. Forward engineering and reverse engineering can be applicable to ________

a) Class diagram

b) Stereotypes

c) Tagged values

d) Adornments

7. Model-driven engineering is just a theoretical concept. It cannot be converted into a

working/executable code.

a) True

b) False

Page 14: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

8. ________ shows a set of objects and their relationships.

a) Class diagram

b) Object diagram

c) Use case diagram

d) Activity diagram

9. Which of the following diagram is used to model the vocabulary of a system?

a) Object Diagram

b) Activity Diagram

c) Class diagram

d) Interaction Diagram

10. _________________ allows us to infer that different members of classes have some common

characteristics.

a) Realization

b) Aggregation

c) Generalization

d) dependency

11. One creates Behavioral models of a system when you are discussing and designing the

system architecture.

a) True

b) False

12. Which of the following statement is false?

a) A note is a dog-eared box connected to any model element by a dashed line

b) The main way to extend UML is by constraints, properties, etc

Page 15: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

c) A dependency relation holds between two entities D and I where change in I does not affect D

d) All of the mentioned.

13. ___________ classes are used to create the interface that the user sees and interacts with as

the software is used.

a) Controller

b) Entity

c) Boundary

d) Business

.

14. Which of the following statement is incorrect regarding the Class-responsibility-collaborator

(CRC) modeling ?

a) All use-case scenarios (and corresponding use-case diagrams) are organized into categories in

CRC modelling

b) The review leader reads the use-case deliberately

c) Only developers in the review (of the CRC model) are given a subset of the CRC model index

cards

d) All of the mentioned

15. What is a collection of model elements called?

a) Box

b) Dependency

c) UML packages

d) Package members

16. What types of units does Component follow?

a) Modular Unit

b) Replaceable Unit

c) Unit with well defined interface

d) All of the mentioned

Page 16: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

17. What type of co-relationship is represented by the symbol in the figure below?

a) Aggregation

b) Dependency

c) Generalization

d) Association

18. Which core element of UML is being shown in the figure?

a) Node

b) Interface

c) Class

d) Component

19. What type of relationship is represented by Shape class and Square ?

a) Realization

b) Generalization

Page 17: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

c) Aggregation

d) Dependency

.

20. Which diagram in UML shows a complete or partial view of the structure of a modeled

system at a specific time?

a) Sequence Diagram

b) Collaboration Diagram

c) Class Diagram

d) Object Diagram

21. Components can be represented by which of the following?

a) Component symbols

b) Stereotypes

c) Rectangular boxes

d) Component symbols & Stereotypes

22. Structure diagrams emphasize the things that must be present in the system being modeled.

a) True

b) False

.

23. Which of these is true with respect to interfaces?

a) Interfaces in component diagram defines relationship between components and environment

b) Interfaces realized by a class or a component are required interfaces

c) Interface on which a class or component depends are called provided interfaces

d) All of the mentioned

24. Which UML diagram’s symbols are shown below?

Page 18: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

a) Deployment diagram

b) Collaboration Diagram

c) Component Diagram

d) Object Diagram.

25. Which UML diagram is shown below?

a) Deployment diagram

b) Collaboration Diagram

c) Object Diagram

d) Class Diagram

26. Which UML diagram is shown below?

Page 19: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

a) Component

b) Deployment

c) Use Case

d) DFD

27. A package diagram consists of the following?

a) Package symbols

b) Groupings of Use cases, classes, components

c) Interface

d) Package symbols, Groupings of Use cases, classes & components

28. Which of these are types of nodes used in the deployment diagram?

a) Device

b) Execution Environment

c) Artifact

d) Device & Execution Environment

29 What does a deployment diagram consists of?

a) Computational resource

b) Communication path between resource

c) Artifacts that execute resource

d) All of the mentioned

30. What should be mentioned as attributes for conceptual modelling ?

a) Initial Values

b) Names

c) All of the mentioned

d) None of the mentioned

Page 20: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

31. An operation can be described as?

a) Object behavior

b) Class behavior

c) Functions

d) a,b

32. What among these is true ?

a) Associations may also correspond to relation between instances of three or more classes

b) Association lines may be unlabeled or they may show association name

c) All of the mentioned

d) None of the mentioneds.

33. What is multiplicity for an association?

a) The multiplicity at the target class end of an association is the number of instances that can be

associated with a single instance of source class

b) The multiplicity at the target class end of an association is the number of instances that can be

associated with a number instance of source class

c) All of the mentioned

d) None of the mentioned

34. Which among these are the rules to be considered to formClass diagrams?

a) Class symbols must have at least a name compartment

b) Compartment can be in random order

c) Attributes and operations can be listed at any suitable place

d) None of the mentioned

35. Which of the following is incorrect in the deployment diagram?

a) Communication connections between nodes are shown by communication paths

b) Communication paths are represented by dotted lines

Page 21: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

c) Artifacts are deployed inside nodes where they reside and execute

d) None of the mentioned

36. Diagrams in unified modified language which are used to test class diagrams for accuracy

purpose are called

a) deployment diagrams

b) component diagrams

c) object diagrams

d) package diagrams

37. What is true about the artifacts?

a) An Artifact is a physical entity

b) An artifact has spatio temporal location

c) All of the mentioned

d) None of the mentioned

38. In Unified Modeling Language, diagrams that organize system elements into groups are

classified as

a) package diagrams

b) organized diagram

c) system diagrams

d) class diagrams

39. In component diagrams, building block which is represented with two rectangles laid on left

side is classified as

a) type of components

b) interfaces

c) dependency relationships

40. Which among the following are not the valid notations for package and component diagram?

Page 22: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

a) Notes

b) Box

c) Extension Mechanisms

d) Packages

41. Which of the following in incorrect in reference to dependency?

a) Module D uses module I when a correct version of I must be present for D to work correctly

b) Module D depends for compilation on module I

c) Class I imports elements from package D

d) None of the mentioned

42. What is collection of model elements called?

a) Box

b) Dependency

c) UML packages

d) Package members

43. A package diagram consists of the following?

a) Package symbols

b) Groupings of Usecases, classes, components

c) Interface

d) All of the mentioned

e) a, b

44. Components can be represented by which of the following?

a) Component symbols

b) Stereotypes

c) Rectangular boxes

d) a, b

e) a, c

Page 23: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

45. What does a component diagram consists of?

a) Components, their Relationship to the environment

b) Packages and dependency

c) Internal structure

d) a, b

e) a, c

.

46. Which of these is true with respect to interfaces?

a) Interfaces in component diagram defines relationship betweencomponents and environment

b) Interfaces realized by a class or a component are required interfaces

c) Interface on which a class or component depends are called provided interfaces

d) All of the mentioned

47. Which among these are the common notations for deployment diagrams?

a) Artifacts and nodes

b) Stereotypes

c) Components

d) All of the mentioned

48. Which of these are types of nodes used in deployment diagram?

a) Device

b) Execution Environment

c) Artifact

d) a,b

e) a,c

.

49. Which are the ways to represent nodes in adeployment diagram?

a) Nodes instances are underlined identifiers of the form name:type

Page 24: MCQ Unit I 1. 2. 3. 4. 5. 6. - Engineering Updates

b) The name may be left off,indicating an unnamed instance of the type

c) The type may be left off, indicating a named instance with an unspecified type

d) All of the mentioned

50. What does a deployment diagram consists of?

a) Computational resource

b) Communication path between resource

c) Artifacts thatexecute resource

d) All of the mentioned

51. Which of the following is correct?

a) An attribute is an class variable when each object stores its own value for the attribute

b) An attribute can also be a instance variable, which means that there is only one value stored

for the attribute that is shared by all class instances

c) An instance operation can be called using any object

d) A class operation is encapsulated in a class and can be called through the class