Tag: web technology

Questions Related to web technology

Who is the key stakeholder in an UML model

  1. Business Analyst

  2. Designer

  3. Developer

  4. All of the Above


Correct Option: D

Which statements are false when partitioning a class into subclass?

  1. The subclass has additional attributes of interest

  2. . The subclass has additional associations of interest.

  3. Some of the attributes/operations in super class are not applicable to subclass

  4. The subclass concept is operated on, handled, reacted to, or manipulated differently than the superclass or other subclasses in ways that are of interest.


Correct Option: C

AI Explanation

To answer this question, you need to understand the concepts of class partitioning and subclassing in object-oriented programming.

Let's go through each option to understand why it is correct or incorrect:

Option A) The subclass has additional attributes of interest - This option is true. When partitioning a class into subclasses, it is common for each subclass to have additional attributes specific to its own characteristics or requirements.

Option B) The subclass has additional associations of interest - This option is true. Similar to additional attributes, a subclass can have additional associations or relationships with other classes that are specific to its own behavior or functionality.

Option C) Some of the attributes/operations in the superclass are not applicable to the subclass - This option is false. When creating subclasses, all the attributes and operations defined in the superclass are inherited by the subclasses. The subclasses can choose to override or extend these attributes and operations, but they cannot remove them entirely.

Option D) The subclass concept is operated on, handled, reacted to, or manipulated differently than the superclass or other subclasses in ways that are of interest - This option is true. Subclasses can define their own specialized behavior and functionality, which may be different from the superclass or other subclasses. This is one of the main reasons for partitioning a class into subclasses.

Therefore, the correct answer is C. Some of the attributes/operations in the superclass are not applicable to the subclass.

  1. Deployment Diagram

  2. Class Diagram

  3. Activity Diagram

  4. Use case diagram


Correct Option: D
  1. UML uses # for public element

  2. UML uses - for private element

  3. UML uses * for protected element

  4. All of the above


Correct Option: B

Which of the following statement is false about Design Model?

  1. . Class Diagram in design model doesn't show real world objects; rather it shows software classes only

  2. Design Model illustrates the specifications for software classes and interfaces

  3. Setters and getters should not be included in the Design Model.

  4. . Programming Language native libraries are shown in the Design Model


Correct Option: D

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Class Diagram in the design model doesn't show real-world objects; rather it shows software classes only - This option is correct. In the design model, the class diagram represents the structure and relationships between software classes, not real-world objects.

Option B) Design Model illustrates the specifications for software classes and interfaces - This option is correct. The design model provides a high-level representation of the software system, including the specifications for software classes and interfaces.

Option C) Setters and getters should not be included in the Design Model - This option is incorrect. Setters and getters, also known as accessor and mutator methods, are commonly included in the design model to represent the behavior and properties of software classes.

Option D) Programming Language native libraries are shown in the Design Model - This option is incorrect. Design models typically do not include programming language native libraries. The design model focuses on representing the structure and behavior of the software system, not the specific libraries or frameworks used.

The correct answer is D. Programming Language native libraries are not shown in the Design Model because the design model is a higher-level representation of the software system, focusing on the structure and behavior of the system rather than specific implementation details.

  1. Inheritance

  2. Composition

  3. Association

  4. Specialization


Correct Option: B
Explanation:

To solve this question, the user needs to have a basic understanding of object-oriented programming concepts.

The book and page relationship can be best characterized as a composition relationship. Composition is a "has-a" relationship between two or more classes, where one class is a part of another class. In this case, a book has one or more pages, and each page is a part of the book. Therefore, the best option is:

The Answer is: B (Composition)

What is the representation of inheritance in an UML class diagram?

  1. An open headed arrow pointing to the inheriting class

  2. A closed headed arrow pointing to the inheriting class

  3. A closed headed dashed arrow pointing to the parent class

  4. . A closed headed arrow pointing to the parent class


Correct Option: D
  1. StartUML

  2. Rational Rose

  3. Visual Architect

  4. Borland Together


Correct Option: C