set-7
301. 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
- Department: 1 and Student: 1.*
- Department: * and Student: 1.*
- Department: 1..3 and Student: *
- Department: * and Student: *
Show me the answer
Answer: 3. Department: 1..3 and Student: *
Explanation:
- The cardinality between Department and Student is 1..3 for Department and * for Student. This means a student can be allocated to 1 to 3 departments, and a department can have any number of students.
302. Which one of the following best characterizes a sequence diagram?
- A tree illustrating inheritance relationship between classes
- A call graph illustrating all possible sequences of calls between class method members
- A time-line illustrating a typical sequence of calls between object methods
- A time-line illustrating the changes in inheritance and instantiation relationships between classes and objects over time
Show me the answer
Answer: 3. A time-line illustrating a typical sequence of calls between object methods
Explanation:
- A sequence diagram is a type of interaction diagram that shows how objects interact in a particular sequence of messages or method calls over time.
303. ______ diagram helps to show Dynamic aspects related to a system.
- Object
- Deployment
- Class
- Interaction
Show me the answer
Answer: 4. Interaction
Explanation:
- Interaction diagrams, such as sequence diagrams and collaboration diagrams, are used to show dynamic aspects of a system, such as how objects interact with each other.
304. If you are working on real-time process control applications or systems that involve concurrent processing, you would use a ______
- State Diagram
- Class Diagram
- Activity Diagram
- Object Diagram
Show me the answer
Answer: 1. State Diagram
Explanation:
- State diagrams are used to model the behavior of systems that involve real-time process control or concurrent processing. They show the different states of an object and how it transitions between states.
305. “Book has pages”. In this sentence what is relation between book and page classes?
- Inheritance
- Aggregation
- Composition
- Association
Show me the answer
Answer: 3. Composition
Explanation:
- The relationship between Book and Page is composition because a Book is composed of Pages, and Pages cannot exist independently of a Book.
306. How guard condition is represented in sequence diagram
- Using ( )
- Using [ ]
- Using keyword condition
- None of the mentioned
Show me the answer
Answer: 2. Using [ ]
Explanation:
- Guard conditions in sequence diagrams are represented using square brackets [ ]. They specify the condition under which a message is sent.
307. Bulls eye is use to denote ______.
- Start state
- Concurrent state
- End state
- None of the above
Show me the answer
Answer: 3. End state
Explanation:
- A bullseye symbol is used to denote the end state in a state diagram, indicating the termination of a process or state.
308. ______ shows a set of objects and their relationships.
- Class diagram
- Object diagram
- Use case diagram
- Collaboration diagram
Show me the answer
Answer: 2. Object diagram
Explanation:
- An object diagram shows a set of objects and their relationships at a specific point in time. It is a snapshot of the system.
309. A collaboration diagram depicts which one of the following types of information?
- Structural information such as class association
- The looping structure
- The decision structure among the classes
- The attribute values of the objects
Show me the answer
Answer: 1. Structural information such as class association
Explanation:
- A collaboration diagram depicts structural information, such as how objects are associated and interact with each other.
310. Because of ______ reason the inheritance useful.
- It prevents inherited properties from being lost
- It minimizes the amount of code which has to be written
- It creates elegant tree structures in the class model
- It divides objects up into useful classes
Show me the answer
Answer: 2. It minimizes the amount of code which has to be written
Explanation:
- Inheritance is useful because it allows code reuse, minimizing the amount of code that needs to be written. It also helps in organizing classes into a hierarchical structure.
311. ______ characteristics of a class implies that the same message can be interpreted by it differently.
- Polymorphism
- Overloading
- Overriding
- Inheritance
Show me the answer
Answer: 1. Polymorphism
Explanation:
- Polymorphism allows a class to interpret the same message differently based on the context or the object’s type. It is a key feature of object-oriented programming.
312. Consider the statement: “Test can be Objective or Subjective.” Assuming that Test and Subjective are two classes, what can be said about the relationship between these two classes?
- Aggregation
- Composition
- Generalization - specialization
- Polymorphism
Show me the answer
Answer: 3. Generalization - specialization
Explanation:
- The relationship between Test and Subjective is generalization-specialization, where Subjective is a specialized form of Test.
313. Login credentials are validated by system. Which relationship exists among login and validation use cases-
- Login include Validation
- Validation include Login
- Login extend Validation
- Validation extend Login
Show me the answer
Answer: 1. Login include Validation
Explanation:
- The Login use case includes the Validation use case because validation is a necessary step in the login process.
314. “Payment can be done through Credit Card or Debit Card”. In this relation payment is consider as ___
- Base uses case
- Extension point
- Inclusion
- None of the above
Show me the answer
Answer: 1. Base uses case
Explanation:
- In this scenario, Payment is the base use case, and Credit Card and Debit Card are extensions or variations of the Payment use case.
315. “Students work on project and get evaluated.” In this evaluation function is consider at ___
- Project class
- Student class
- Association class of “works on”
- Evaluation class
Show me the answer
Answer: 3. Association class of “works on”
Explanation:
- The evaluation function is associated with the relationship between Student and Project, which is represented by the association class “works on.”
316. Solid circle is considering as start state only when ___
- Previous states are not known
- Idle state is not present
- It is optional
- None of the above
Show me the answer
Answer: 1. Previous states are not known
Explanation:
- A solid circle is used to denote the start state in a state diagram when the previous states are not known or when the process begins from this state.
317. Merge (Hollow diamond) is use to
- Split a single incoming flow into multiple concurrent flows
- Bring together multiple flows that are not concurrent
- Interrupt the flow denoted with a lightning bolt
- Group related activities into one column
Show me the answer
Answer: 2. Bring together multiple flows that are not concurrent
Explanation:
- A merge (hollow diamond) in an activity diagram is used to bring together multiple flows that are not concurrent into a single flow.
318. The vertical line in activity diagram represents
- Decision and branching
- Synchronization
- Time event
- Swim lanes
Show me the answer
Answer: 4. Swim lanes
Explanation:
- The vertical line in an activity diagram represents swim lanes, which are used to group activities by the responsible party or component.
319. The vertical line in sequence diagram represents
- Time line of object
- Synchronization
- Swim lanes
- End of life
Show me the answer
Answer: 1. Time line of object
Explanation:
- The vertical line in a sequence diagram represents the timeline of an object, showing the sequence of messages or interactions over time.
320. ______ is a crucial software development activity for both Software Engineering and Knowledge Engineering.
- Conceptual modeling
- Visibility modeling
- System Modeling
- Behavior Modeling
Show me the answer
Answer: 1. Conceptual modeling
Explanation:
- Conceptual modeling is a crucial activity in both Software Engineering and Knowledge Engineering. It involves creating abstract models to represent the system or domain.
321. Domain Modeling is also known as:
- Behavior modeling
- Conceptual modeling
- System modeling
- None
Show me the answer
Answer: 2. Conceptual modeling
Explanation:
- Domain modeling is also known as conceptual modeling, as it involves creating abstract models to represent the concepts and relationships in a domain.
322. During the domain analysis, which is the initial step of domain modeling, the objects are to be identified. These objects are classified into three categories,
- Boundary objects, Controller objects, Entity objects
- Class objects, data objects, meta objects
- Controller object, model object, view object
- All of above
Show me the answer
Answer: 1. Boundary objects, Controller objects, Entity objects
Explanation:
- In domain modeling, objects are classified into boundary objects (interfaces), controller objects (logic), and entity objects (data). This classification helps in organizing the system.
323. Boundary objects are also called ______.
- Interface objects
- Class objects
- Model objects
- Meta objects
Show me the answer
Answer: 1. Interface objects
Explanation:
- Boundary objects are also called interface objects because they represent the interaction between the system and external entities.
324. A domain model is a representation of real-world conceptual classes, not of software components.
- True
- False
Show me the answer
Answer: 1. True
Explanation:
- A domain model represents real-world conceptual classes and their relationships, not software components. It is used to understand the problem domain.
325. IS this a domain model?
[\begin{array}{|c|c|} \hline \text{Card} & \text{DecK} \ \hline \end{array}] [\begin{array}{|c|c|} \hline \text{Privacy} & \text{CribbageBoard} \ \hline & \text{Peg} \ \hline \end{array}]
- Yes
- No
Show me the answer
Answer: 1. Yes
Explanation:
- The given diagram represents a domain model as it shows conceptual classes (Card, Deck, CribbageBoard, Peg) and their relationships.
326. Conceptual modelling represents ______.
- Responsibility
- Attributes
- Important relationships between them
- All of the mentioned
Show me the answer
Answer: 4. All of the mentioned
Explanation:
- Conceptual modeling represents responsibilities, attributes, and important relationships between entities. It provides a high-level view of the system.
327. ______ are the sequence of steps for conceptual process.
- Add Attributes
- Add Classes
- Add Association
- All of the mentioned
Show me the answer
Answer: 4. All of the mentioned
Explanation:
- The sequence of steps for conceptual modeling includes adding classes, attributes, and associations. All these steps are essential for creating a conceptual model.
328. ______ is the third step in sequence for conceptual class modelling.
- Adding Class
- Adding Association
- Adding Attribute
- None of the mentioned
Show me the answer
Answer: 2. Adding Association
Explanation:
- The third step in conceptual class modeling is adding associations, which define the relationships between classes.
329. 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:
- Object-Oriented Programming
- Object-Oriented Design
- Object-Oriented Analysis
- None of the mentioned
Show me the answer
Answer: 2. Object-Oriented Design
Explanation:
- Object-Oriented Design (OOD) involves the process of object-oriented decomposition and the use of notation to represent logical, physical, static, and dynamic models of the system.
330. What is the programming style of the object-oriented conceptual model?
- Invariant relationships
- Algorithms
- Classes and objects
- Goals, often expressed in a predicate calculus.
Show me the answer
Answer: 3. Classes and objects
Explanation:
- The programming style of the object-oriented conceptual model is based on classes and objects, which encapsulate data and behavior.
331. 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:
- Encapsulation
- Modularity
- Hierarchy
- Abstraction
Show me the answer
Answer: 4. Abstraction
Explanation:
- Abstraction is the essential characteristic of an object that distinguishes it from other objects and provides crisply defined conceptual boundaries.
332. Abstraction is classified into ______ types
- 4
- 3
- 2
- 1
Show me the answer
Answer: 2. 3
Explanation:
- Abstraction is classified into three types: entity abstraction, action abstraction, and virtual machine abstraction.
333. The process of compartmentalizing the elements of an abstraction that constitute its structure and behavior is called as
- Hierarchy
- Encapsulation
- Modularity
- Entity Abstraction
Show me the answer
Answer: 2. Encapsulation
Explanation:
- Encapsulation is the process of compartmentalizing the elements of an abstraction, hiding the internal details and exposing only the necessary interfaces.
334. Single inheritance, Multiple inheritance, and Aggregation comes under
- Modularity
- Typing
- Hierarchy
- None of the mentioned
Show me the answer
Answer: 3. Hierarchy
Explanation:
- Single inheritance, multiple inheritance, and aggregation are all concepts related to hierarchy in object-oriented programming.
335. In which of the following mechanisms, types of all variables and expressions are fixed at compilation time.
- Strong Typing
- Weak Typing
- Static Binding/ early binding
- Dynamic Binding/ late binding
Show me the answer
Answer: 3. Static Binding/ early binding
Explanation:
- Static binding (or early binding) fixes the types of variables and expressions at compile time, ensuring type safety and efficiency.
336. In which of the following mechanisms, types of all variables and expressions are not known until runtime
- Strong Typing
- Weak Typing
- Static Binding/ early binding
- Dynamic Binding/ late binding
Show me the answer
Answer: 4. Dynamic Binding/ late binding
Explanation:
- Dynamic binding (or late binding) determines the types of variables and expressions at runtime, allowing for greater flexibility but less type safety.
337. Which of the following statements about Persistence is correct?
- 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.
- It is the property of an object through which its existence transcends time and/or space.
- It is the property that distinguishes an active object from one that is not active.
- All of the mentioned
Show me the answer
Answer: 2. It is the property of an object through which its existence transcends time and/or space.
Explanation:
- Persistence is the property of an object that allows it to exist beyond the lifetime of the program or process that created it, transcending time and/or space.
338. 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 superclass referred to ______.
- Monomorphism
- Type Checking
- Polymorphism
- Generalization
Show me the answer
Answer: 3. Polymorphism
Explanation:
- Polymorphism is the concept in type theory where a single name can denote objects of different classes that are related by a common superclass. It allows for flexibility and code reuse.
339. Identify the problem of the GRASP pattern: What is a basic principle by which to assign responsibilities to objects?
- Low coupling
- High cohesion
- Information Expert
- Creator
Show me the answer
Answer: 3. Information Expert
Explanation:
- The Information Expert pattern is a GRASP pattern that assigns responsibilities to the class that has the most information needed to fulfill the responsibility.
340. Identify the problem of the GRASP pattern: Who creates object A?
- Low coupling
- High cohesion
- Information Expert
- Creator
Show me the answer
Answer: 4. Creator
Explanation:
- The Creator pattern is a GRASP pattern that determines which class should be responsible for creating instances of another class.
341. Identify the problem of the GRASP pattern: What first object beyond the UI layer receives and coordinates “controls” a system operation?
- Controller
- High cohesion
- Information Expert
- Creator
Show me the answer
Answer: 1. Controller
Explanation:
- The Controller pattern is a GRASP pattern that identifies the first object beyond the UI layer that receives and coordinates a system operation.
342. Identify the problem of the GRASP pattern: How to reduce the impact of change? How to support low dependency and increased reuse?
- High Coupling
- Low Coupling
- High Cohesion
- Low Cohesion
Show me the answer
Answer: 2. Low Coupling
Explanation:
- The Low Coupling pattern is a GRASP pattern that aims to reduce the impact of change by minimizing dependencies between classes, thereby increasing reuse and flexibility.
343. Identify the problem of the GRASP pattern: How to keep objects focused, understandable, manageable and as a side effect support Low Coupling?
- High Coupling
- Low Coupling
- High Cohesion
- Low Cohesion
Show me the answer
Answer: 3. High Cohesion
Explanation:
- The High Cohesion pattern is a GRASP pattern that ensures objects are focused, understandable, and manageable by keeping related responsibilities together, which also supports low coupling.
344. Identify the problem of the GRASP pattern: Where to assign a responsibility to avoid direct coupling between two or more things?
- Indirection
- Polymorphism
- Pure Fabrication
- Creational
Show me the answer
Answer: 1. Indirection
Explanation:
- The Indirection pattern is a GRASP pattern that assigns a responsibility to an intermediate object to avoid direct coupling between two or more things.
345. Identify the problem of the GRASP pattern: How handle alternatives based on type?
- Pure Fabrication
- Polymorphism
- Information Expert
- Creator
Show me the answer
Answer: 2. Polymorphism
Explanation:
- The Polymorphism pattern is a GRASP pattern that handles alternatives based on type by allowing different classes to respond to the same message in different ways.
346. Identify the problem of the GRASP pattern: What object should have the responsibility, when you do not want to violate High Cohesion and Low Coupling, but solutions offered by other principles are not appropriate?
- Polymorphism
- High Cohesion
- Low Coupling
- Pure Fabrication
Show me the answer
Answer: 4. Pure Fabrication
Explanation:
- The Pure Fabrication pattern is a GRASP pattern that assigns a responsibility to a fabricated or artificial class when other principles like High Cohesion and Low Coupling cannot be satisfied.
347. Identify the problem of the GRASP pattern: How to design objects, subsystems and systems so that the variations or instability in these elements does not have an undesirable impact on other elements?
- Protected Variations
- High Cohesion
- Low Coupling
- Pure Fabrication
Show me the answer
Answer: 1. Protected Variations
Explanation:
- The Protected Variations pattern is a GRASP pattern that protects elements from variations or instability by encapsulating the points of variation, ensuring that changes do not have an undesirable impact on other elements.
348. Identify the problem of GoF pattern: How do you ensure that it is never possible to create more than one instance of a singleton class?
- Adapter
- Singleton
- Façade
- Observer
Show me the answer
Answer: 2. Singleton
Explanation:
- The Singleton pattern ensures that only one instance of a class is created and provides a global point of access to that instance.
349. Identify the problem of GoF pattern: How do you reduce the interconnection between classes, especially between classes that belong to different modules or subsystems?
- Adapter
- Singleton
- Façade
- Observer
Show me the answer
Answer: 3. Façade
Explanation:
- The Façade pattern provides a simplified interface to a complex subsystem, reducing the interconnection between classes and making the system easier to use.
350. Identify the problem of GoF pattern: How can you most effectively make use of a method that already exists in the other class?
- Adapter
- Singleton
- Façade
- Delegation
Show me the answer
Answer: 4. Delegation
Explanation:
- The Delegation pattern allows an object to delegate a task to another object, making effective use of existing methods in other classes.