OOPS Quiz (Set 7) OOPS (Set 7) 1 / 10 What is a use case diagram? A use case diagram is a diagram that shows the interactions between a system and its components A use case diagram is a diagram that shows the interactions between a system and its users A use case diagram is a diagram that shows the interactions between a system and its data 2 / 10 What are the 5 main types of UML diagrams? The 5 main types of UML diagrams are class diagrams, object diagrams, sequence diagrams, activity diagrams, and component diagrams The 5 main types of UML diagrams are class diagrams, object diagrams, sequence diagrams, state diagrams, and use case diagrams The 5 main types of UML diagrams are class diagrams, object diagrams, sequence diagrams, state diagrams, and activity diagrams 3 / 10 What is the purpose of a UML diagram? A UML diagram is a diagram that is used to model algorithms A UML diagram is a diagram that is used to model data structures A UML diagram is a diagram that is used to model software systems 4 / 10 What is the difference between a class diagram and an object diagram? A class diagram is a diagram that shows the attributes and methods of a class, while an object diagram is a diagram that shows the instances of classes A class diagram is a diagram that shows the relationships between classes, while an object diagram is a diagram that shows the instances of classes A class diagram is a diagram that shows the relationships between objects, while an object diagram is a diagram that shows the instances of classes 5 / 10 What is the difference between composition and association? Composition is the relationship between two classes where one class inherits from another class, while association is the relationship between two classes where one class has a reference to another class Composition is the relationship between two classes where one class is a part of another class, while association is the relationship between two classes where one class uses another class Composition is the relationship between two classes where one class is a whole of another class, while association is the relationship between two classes where one class is a part of another class 6 / 10 What is the difference between polymorphism and inheritance? Polymorphism is the ability of an object to have multiple parents, while inheritance is the ability of an object to have multiple children Polymorphism is the ability of an object to take on different forms, while inheritance is the ability of an object to inherit the properties and methods of another object Polymorphism is the ability of an object to have multiple implementations, while inheritance is the ability of an object to have multiple arguments 7 / 10 What is the difference between encapsulation and abstraction? Encapsulation is the process of making an object's data and methods accessible to everyone, while abstraction is the process of making an object's data and methods accessible only to certain users Encapsulation is the process of making an object's data and methods public, while abstraction is the process of making an object's data and methods private Encapsulation is the process of hiding the implementation details of an object from the outside world, while abstraction is the process of representing the essential features of an object without including the details 8 / 10 What is the difference between a getter and a setter? A getter is a method that is used to change the state of an object, while a setter is a method that is used to get or set the value of an object's attribute A getter is a method that is used to get the value of an object's attribute, while a setter is a method that is used to set the value of an object's attribute A getter is a method that is used to create a new object, while a setter is a method that is used to delete an object 9 / 10 What is the purpose of an accessor method? An accessor method is a method that is used to change the state of an object An accessor method is a method that is used to create a new object An accessor method is a method that is used to get or set the value of an object's attribute 10 / 10 What is the purpose of a mutator method? A mutator method is a method that is used to change the state of an object A mutator method is a method that is used to create a new object A mutator method is a method that is used to delete an object Your score isThe average score is 0% 0% Restart quiz