set-6

251. An operation can be described as ______.

  1. Object

  2. Class

  3. Pointer

  4. Object & Class

Show me the answer

Answer: 4. Object & Class

Explanation:

  • An operation in UML can be described as belonging to both objects and classes. It represents the behavior or functionality of the class or object.

252. ______ are part of the class operation specification format.

  1. Parameter list

  2. Name

  3. Return-type list

  4. All of the mentioned

Show me the answer

Answer: 4. All of the mentioned

Explanation:

  • The class operation specification format includes the parameter list, name, and return-type list. All these elements are necessary for defining an operation.

253. ______ among the optional statement is true.

  1. Associations may also correspond between instances of three

  2. Association lines may be unlabeled

  3. All of the mentioned

  4. None of the mentioned

Show me the answer

Answer: 3. All of the mentioned

Explanation:

  • Associations in UML can correspond between instances of three or more classes, and association lines may be unlabeled. Both statements are true.

254. Multiplicity for an association ______.

  1. Association is the number of instances with a single instance

  2. Association is the number of instances with a number instance

  3. All of the mentioned

  4. None of the mentioned

Show me the answer

Answer: 1. Association is the number of instances with a single instance

Explanation:

  • Multiplicity in UML defines the number of instances that can be associated with a single instance of another class. It specifies the cardinality of the relationship.

255. To form Class diagram, these are the rules to be considered ______.

  1. Class symbols least a name compartment

  2. The compartment can be in random order

  3. Attributes and operations can be listed

  4. Methods should be overloaded

Show me the answer

Answer: 1. Class symbols least a name compartment

Explanation:

  • To form a class diagram, the class symbol must have at least a name compartment. The other compartments (attributes and operations) can be added as needed.

256. ______ are the heuristics.

  1. Name classes attributes with noun phrases

  2. Name operations with verb phrases

  3. Stick to binary associations

  4. All of the mentioned

Show me the answer

Answer: 4. All of the mentioned

Explanation:

  • Heuristics for UML class diagrams include naming classes and attributes with noun phrases, naming operations with verb phrases, and sticking to binary associations. All these practices improve clarity and consistency.

257. An object symbol is divided into ______ part of compartment.

  1. Bottom

  2. Top

  3. All of the mentioned

  4. None of the mentioned

Show me the answer

Answer: 3. All of the mentioned

Explanation:

  • An object symbol in UML is divided into compartments, including the top (name) and bottom (attributes and operations). All these compartments are used to define the object.

258. ______ diagram is time-oriented?

  1. Activity

  2. Sequence

  3. Collaboration

  4. None of the mentioned

Show me the answer

Answer: 2. Sequence

Explanation:

  • A sequence diagram in UML is time-oriented. It shows the sequence of messages exchanged between objects over time.

259. ______ term are combined Interaction Diagram?

  1. Sequence Diagram + Collaboration Diagram

  2. Activity Diagram + Class Diagram

  3. Deployment Diagram + Component Diagram

  4. Class Diagram + Object Diagram

Show me the answer

Answer: 1. Sequence Diagram + Collaboration Diagram

Explanation:

  • Interaction diagrams in UML combine sequence diagrams and collaboration diagrams. Both are used to model the interactions between objects.

260. ______ diagrams emphasize the things present system being modeled.

  1. Behavioral

  2. Structure

  3. Grouping

  4. Annotation

Show me the answer

Answer: 2. Structure

Explanation:

  • Structural diagrams in UML emphasize the things (objects, classes, components) present in the system being modeled. They represent the static structure of the system.

261. ______ UML diagrams has a static view.

  1. Collaboration

  2. Use case

  3. State chart

  4. Activity

Show me the answer

Answer: 2. Use case

Explanation:

  • Use case diagrams in UML have a static view. They represent the interactions between actors and the system without showing the dynamic behavior.

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

A. Aggregation B. Composition C. Generalization D. Association

Show me the answer

Answer: 1. Aggregation

Explanation:

  • The symbol in the figure represents aggregation, which is a "whole-part" relationship in UML. It indicates that one class is a collection of other classes.

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

A. Node B. Package C. Deployment D. Component

Show me the answer

Answer: 4. Component

Explanation:

  • The figure shows a component, which is a core element of UML. Components represent modular parts of a system that can be replaced or reused.

264. What type of relationship is represented by Shape class and Triangle?

Shape Class Triangle Square

A. Realization B. Generalization C. Composition D. Association

Show me the answer

Answer: 2. Generalization

Explanation:

  • The relationship between Shape class and Triangle is generalization. It indicates that Triangle is a specialized form of Shape.

265. ______ diagram in UML shows a complete or partial view of the structure of a modeled system at a specific time

  1. System Sequence Diagram

  2. Collaboration Diagram

  3. Class Diagram

  4. Object Diagram

Show me the answer

Answer: 4. Object Diagram

Explanation:

  • An object diagram in UML shows a complete or partial view of the structure of a modeled system at a specific time. It represents the instances of classes and their relationships.

266. << actor >> notation is used to denote ______

  1. Database

  2. Subsystem

  3. Non-human actor

  4. All of the mentioned

Show me the answer

Answer: 4. All of the mentioned

Explanation:

  • The <> notation in UML is used to denote actors, which can include databases, subsystems, and non-human actors. All these can interact with the system.

267. Which UML diagram is shown below?

User ID Basic Salary Accountant HRA Safety Calculator Bonus Penalty/ Fine

A. Use Case B. Component Diagram C. Class Diagram D. Object Diagram

Show me the answer

Answer: 1. Use Case

Explanation:

  • The diagram shown is a use case diagram, which represents the interactions between actors (e.g., Accountant) and the system (e.g., Safety Calculator).

268. UML diagram that facilitates requirements gathering and interacts between system and external users, is called as

  1. Data flow diagram

  2. Use case diagram

  3. Object diagram

  4. Class diagram

Show me the answer

Answer: 2. Use case diagram

Explanation:

  • A use case diagram in UML facilitates requirements gathering and shows the interactions between the system and external users (actors).

269. Which UML diagram is shown below?

intitization IDLE enter details Login

cancellation of booking check status book the ticket Cancel Booking Ticket Availability and Status Book Ticket

Update Booking Details

A. Use Case diagram B. State Chart diagram C. Sequence diagram D. Object Diagram

Show me the answer

Answer: 2. State Chart diagram

Explanation:

  • The diagram shown is a state chart diagram, which represents the states of an object and the transitions between them based on events.

270. Class diagrams are not useful to ______

  1. Model simple collaborations B. Model the vocabulary of a system C. Model simple interactions D. Model a logical database schema

Show me the answer

Answer: 3. Model simple interactions

Explanation:

  • Class diagrams are not typically used to model simple interactions. They are more suited for modeling the vocabulary of a system, collaborations, and logical database schemas.

271. Which UML diagram is shown below?

Applicant System Database

Enter Applicant Id Fetch Details for the applicant

Display Status

A. System Sequence Diagram B. Collaboration Diagram C. Sequence Diagram D. Object Diagram

Show me the answer

Answer: 3. Sequence Diagram

Explanation:

  • The diagram shown is a sequence diagram, which represents the sequence of messages exchanged between objects over time.

272. Which UML diagram's symbols are shown below?

Processor NewDevice or Node

A. Deployment diagram B. State chart Diagram C. Component Diagram D. Object Diagram

Show me the answer

Answer: 1. Deployment diagram

Explanation:

  • The symbols shown are part of a deployment diagram, which represents the physical deployment of software components on hardware nodes.

273. Which UML diagram is shown below?

Point (from awt) ✿x : int ✿y : int ✿Point() ✿Point() ✿Point() ✿getX() ✿getY() ✿getLocation() ✿setLocation()

Building ✿door : char ✿get door() ✿set door()

Street ✿SI : Char ✿get st() ✿set st()

A. Component diagram B. Interaction Diagram C. Object Diagram D. Class Diagram

Show me the answer

Answer: 4. Class Diagram

Explanation:

  • The diagram shown is a class diagram, which represents the structure of the system by showing classes, attributes, and operations.

274. Which UML diagram is shown below?

Passport Automatic System Check Passport Status Applicant ID Found Display ID Status Enter Correct ID

A. Activity B. State chart C. System sequence D. Collaboration

Show me the answer

Answer: 1. Activity

Explanation:

  • The diagram shown is an activity diagram, which represents the flow of activities or processes in the system.

275. Which UML diagram is shown below?

A. Component B. Deployment C. Activity D. DFD

Show me the answer

Answer: 1. Component

Explanation:

  • The diagram shown is a component diagram, which represents the modular structure of the system by showing components and their relationships.

276. Which relationship exists between instances of Company and Person class in this statement “Nepal Engineering Council takes Engineering Licensing Exam”

  1. Association

  2. Inheritance

  3. Realization

  4. Class

Show me the answer

Answer: 1. Association

Explanation:

  • The relationship between Company and Person in the statement is an association. It represents a connection between the two classes.

277. ______ are graphical representations of workflows of stepwise activities and actions with support for choice, iteration and concurrency. It describes the flow of control of the target system, such as the exploring complex business rules and operations, describing the use case also the business process.

  1. Activity Diagram

  2. Profile Diagram

  3. Object Diagram

  4. Class Diagram

Show me the answer

Answer: 1. Activity Diagram

Explanation:

  • Activity diagrams in UML are graphical representations of workflows, showing stepwise activities, choices, iterations, and concurrency. They describe the flow of control in a system.

278. Inheritance relation between two classes can be described as ___

  1. Encapsulation.

  2. Aggregation of information.

  3. Generalization and Specialization.

  4. Polymorphism

Show me the answer

Answer: 3. Generalization and Specialization.

Explanation:

  • Inheritance in UML represents a generalization and specialization relationship between classes. A subclass (specialized class) inherits from a superclass (generalized class).

279. What does UML mean?

  1. United Modelling Language

  2. Unified Modelling Language

  3. Unified Models Linguistic

  4. Universal Modelling Language

Show me the answer

Answer: 2. Unified Modelling Language

Explanation:

  • UML stands for Unified Modeling Language. It is a standardized modeling language used for visualizing, specifying, constructing, and documenting software systems.

280. The vertical dimension of a sequence diagram shows ___

  1. Abstract

  2. Line

  3. Time

  4. Messages

Show me the answer

Answer: 3. Time

Explanation:

  • The vertical dimension of a sequence diagram represents time. It shows the sequence of messages exchanged between objects over time.

281. The time-oriented diagram include ___

  1. Sequence

  2. Classes

  3. Activity

  4. Objects

Show me the answer

Answer: 1. Sequence

Explanation:

  • Time-oriented diagrams in UML include sequence diagrams, which show the sequence of messages exchanged between objects over time.

282. Uses cases are represented as ___

  1. Ellipses

  2. Oval

  3. Triangle

  4. Rectangle

Show me the answer

Answer: 1. Ellipses

Explanation:

  • Use cases in UML are represented as ellipses. They represent the functionality or behavior of the system from the user's perspective.

283. Dependency models the ___ relationship

  1. has-a

  2. is-a

  3. uses-a

  4. contained-by

Show me the answer

Answer: 3. uses-a

Explanation:

  • Dependency in UML models a "uses-a" relationship, where one class depends on another class for its functionality.

284. Aggregation models the ___ relationship

  1. has-a

  2. is-a

  3. uses-a

  4. contained-by

Show me the answer

Answer: 1. has-a

Explanation:

  • Aggregation in UML models a "has-a" relationship, where one class contains or is composed of other classes.

  1. Generalization

  2. Association

  3. Realization

  4. Aggregation

Show me the answer

Answer: 2. Association

Explanation:

  • A link in UML is an instance of an association. It represents a connection between objects of associated classes.

286. Associations ______.

  1. May exist only between actors and use cases

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

  3. Identify interactions between actors and use cases

  4. Identify dependencies between actors and use cases

Show me the answer

Answer: 3. Identify interactions between actors and use cases

Explanation:

  • Associations in UML identify interactions between actors and use cases. They represent the relationships between actors and the system.

287. The association stereotype «Extends» indicates ______.

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

  2. The target use case is a sub process of the source use cases

  3. A specialized form of a use case

  4. A deviation from the UML standard

Show me the answer

Answer: 3. A specialized form of a use case

Explanation:

  • The «Extends» stereotype in UML indicates a specialized form of a use case. It represents an optional or conditional extension of a base use case.

288. A ______ is a relationship between two states indicating that an object in the first s will enter the second state.

  1. Transition

  2. State

  3. Association

  4. Generalization

Show me the answer

Answer: 1. Transition

Explanation:

  • A transition in UML is a relationship between two states, indicating that an object in the first state will move to the second state based on an event or condition.

289. A state that has sub states, that is nested states, is called ______.

  1. Composite State

  2. Source State

  3. Destination State

  4. Null State

Show me the answer

Answer: 1. Composite State

Explanation:

  • A composite state in UML is a state that contains nested substates. It represents a complex state with internal behavior.

290. ______ is the state that is active after completion of the transition.

  1. Multiple state

  2. Null state

  3. Target state

  4. Source state

Show me the answer

Answer: 3. Target state

Explanation:

  • The target state in UML is the state that becomes active after the completion of a transition. It is the destination state of the transition.

291. Which of the following is used to model the life time of an object?

  1. Use Case

  2. Class

  3. Deployment

  4. State Machine

Show me the answer

Answer: 4. State Machine

Explanation:

  • A state machine in UML is used to model the lifetime of an object. It represents the states an object can be in and the transitions between those states.

292. Consider the following sentence: “A square is a polygon”. Which is relations between the two classes Square and Polygon

  1. Inheritance

  2. Aggregation

  3. Composition

  4. Association

Show me the answer

Answer: 1. Inheritance

Explanation:

  • The relationship between Square and Polygon is inheritance. Square is a specialized form of Polygon, inheriting its properties and behaviors.

293. When using an informal (natural language) description of a programming problem, which parts of the description are likely represent objects?

  1. All of the nouns and some of the verbs

  2. All of the verbs and some of the nouns.

  3. Some of the nouns.

  4. Some of the verbs

Show me the answer

Answer: 3. Some of the nouns.

Explanation:

  • In natural language descriptions, nouns often represent objects, while verbs represent actions or behaviors. Therefore, some of the nouns are likely to represent objects in the system.

294. An operation can be described as ______.

  1. Object

  2. Class

  3. Object and Class Behaviour

  4. None of the mentioned

Show me the answer

Answer: 3. Object and Class Behaviour

Explanation:

  • An operation in UML can be described as the behavior of both objects and classes. It represents the functionality or actions that can be performed by the class or object.

295. A tagged value extends the ______ of a UML building block.

  1. Vocabulary

  2. Properties

  3. Semantic

  4. Definition

Show me the answer

Answer: 2. Properties

Explanation:

  • A tagged value in UML extends the properties of a building block. It allows additional information to be attached to model elements.

296. A ______ allow us to you to create new kind of building blocks derived from existing one.

  1. Tagged Value

  2. Stereotype

  3. Interface

  4. Class

Show me the answer

Answer: 2. Stereotype

Explanation:

  • A stereotype in UML allows the creation of new kinds of building blocks derived from existing ones. It extends the UML metamodel to support domain-specific modeling.

297. ______ diagrams are used to illustrate data structures, and the static snapshots instances of the things found in the class diagrams.

  1. Use case

  2. Activity

  3. Class

  4. Object

Show me the answer

Answer: 4. Object

Explanation:

  • Object diagrams in UML are used to illustrate data structures and static snapshots of instances of classes. They show the state of objects at a specific point in time.

298. Which one of the following class relations is indicated among the class(es) in the following statement: "A course is the prerequisite of many courses and has many courses as its prerequisite."

  1. N-ary association

  2. Self-association

  3. Binary association

  4. Aggregation

Show me the answer

Answer: 2. Self-association

Explanation:

  • The relationship described in the statement is a self-association, where a class is associated with itself. In this case, a course is associated with other courses as prerequisites.

299. What is multiplicity for an association

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

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

  3. The multiplicity at the target class end of an association is the attributes and operations

  4. The multiplicity at the target class end of an association is only the attributes

Show me the answer

Answer: 1. 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

Explanation:

  • Multiplicity in UML defines the number of instances of one class that can be associated with a single instance of another class. It specifies the cardinality of the relationship.

300. Students will be allocated to one department at least but cannot be allocated to more than 3 departments. Identify the cardinality between Department and Student

  1. Department: 1 and Student: 1.*

  2. Department: * and Student: 1.*

  3. Department: 1..3 and Student: *

  4. Department: * and Student: *

Show me the answer

Answer: 3. Department: 1..3 and Student: *

Explanation:

  • The cardinality between Department and Student is Department: 1..3 and Student: *. This means a student can be allocated to 1 to 3 departments, and a department can have many students.

Last updated