Object-oriented Analysis And Design Book Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Mgabr
M
Mgabr
Community Contributor
Quizzes Created: 4 | Total Attempts: 8,682
| Attempts: 7,423 | Questions: 30
Please wait...
Question 1 / 30
0 %
0/100
Score 0/100
1. Object-Oriented Programming is characterized by using  

Explanation

Object-Oriented Programming (OOP) is a programming paradigm that focuses on creating objects, which are instances of classes, and provides a set of principles to structure and organize code. Encapsulation is one of the fundamental principles of OOP, which involves bundling data and methods together within a class to hide the internal details and provide a clean interface for interacting with the object. Inheritance allows the creation of new classes based on existing ones, inheriting their properties and behaviors. Polymorphism enables objects of different classes to be treated as objects of a common superclass, allowing for flexibility and code reusability. Therefore, all three concepts - encapsulation, inheritance, and polymorphism - are characteristics of Object-Oriented Programming.

Submit
Please wait...
About This Quiz
Object-oriented Analysis And Design Book Quiz - Quiz

Get ready for an exciting Object-oriented Analysis And Design Book Quiz. The quiz has medium as well as difficult-level questions. Try to answer all of these correctly. Have... see morefun, and don't forget to put your score in the comment box. see less

2. What are the advantages of inheritance? 

Explanation

Inheritance has two main advantages. Firstly, it allows code reusability, which means that we can reuse existing code in a new class, saving time and effort in program development. Secondly, it encourages the reuse of proven and debugged high-quality software, which reduces problems and errors in the system once it becomes functional. Therefore, the correct answer is "Both A & B" as both advantages are applicable.

Submit
3. The return data type of void means  

Explanation

The return data type of void means that no data type is returned. In programming, when a function or method is declared with a void return type, it indicates that the function does not return any value. It is used when the function is intended to perform certain actions or operations without producing a result that needs to be returned. Therefore, the statement "No data type is returned" accurately describes the return data type of void.

Submit
4. A class can have many methods with the same name, as long as the number of parameters is different.  This is known as: 

Explanation

Method overloading is a feature in object-oriented programming where a class can have multiple methods with the same name but different parameters. This allows for flexibility and reusability of code, as different versions of the method can be called depending on the number or type of arguments passed. Method overloading is useful when there are similar operations that need to be performed on different types of data or with different input parameters.

Submit
5. -___________ is a blueprint or prototype that defines the variables and the methods common to all objects of a certain kind.  Select the best word to complete this sentence.

Explanation

A class is a blueprint or prototype that defines the variables and the methods common to all objects of a certain kind. It serves as a template for creating objects, allowing them to have similar attributes and behaviors.

Submit
6. What is an Object?

Explanation

An object is a combination of data because it consists of variables or properties that store information. These variables can hold different types of data such as numbers, strings, or even other objects. Objects also have methods or functions that define the behavior or actions that can be performed on the data. Therefore, an object is essentially a collection or combination of data and the operations that can be performed on that data.

Submit
7. ____ is a method of design encompassing the process of object-oriented decomposition and a notation for depicting both logical and physical as well as static and dynamic models of the system under design.

Explanation

Object-oriented design is a method of design that involves breaking down a system into smaller, more manageable objects. It includes both logical and physical models of the system, as well as static and dynamic models. This approach allows for better organization and understanding of the system being designed.

Submit
8. If an attribute is private, which methods have access to it?

Explanation

If an attribute is private, it means that it can only be accessed within the same class. Private attributes are not accessible to other classes, even if they are in the same package. Therefore, the correct answer is that only methods defined in the same class have access to the private attribute.

Submit
9.  Language is object-oriented if and only if it satisfies the following requirements:  

Explanation

The correct answer is "All of the above". This is because all of the requirements listed in the question are necessary for a language to be considered object-oriented. These requirements include supporting objects as data abstractions with named operations and hidden local state, having objects associated with a type (class), and allowing types (classes) to inherit attributes from supertypes (superclasses). Therefore, a language must satisfy all of these requirements in order to be considered object-oriented.

Submit
10. ____ is a method of analysis that examines requirements from the perspective of the classes and objects found in the vocabulary of the problem domain.

Explanation

Object-oriented analysis is a method of analysis that examines requirements from the perspective of the classes and objects found in the vocabulary of the problem domain. It focuses on understanding the problem domain and identifying the objects and their relationships. This analysis helps in creating a conceptual model of the system, which serves as a foundation for object-oriented design and programming. Object-oriented analysis helps in ensuring that the system design and implementation align with the problem domain and its requirements.

Submit
11. What is the difference between Assignment and Initialization?

Explanation

Assignment and initialization are two different concepts in programming. Assignment refers to the process of giving a value to a variable, which can be done multiple times throughout the program. On the other hand, initialization is the act of giving an initial value to a variable when it is created, which can only be done once. Therefore, the correct answer is "Assignment can be done as many times as desired, whereas initialization can be done only once."

Submit
12. Polymorphism reduces the effort required to extend an object system by

Explanation

Polymorphism enables a number of different operations to share the same name. This means that objects can have different implementations of the same method, allowing for flexibility and reusability in the code. It reduces the effort required to extend an object system because new operations can be added without modifying existing code. This promotes code maintenance and scalability in object-oriented programming.

Submit
13. _____ is a method of implementation in which programs are organized as cooperative collections of objects, each of which represents an instance of some class and whose classes are all members of a hierarchy of classes united via inheritance relationships.

Explanation

Object-oriented programming is a method of implementation in which programs are organized as cooperative collections of objects. Each object represents an instance of some class, and the classes are all members of a hierarchy of classes united via inheritance relationships. This approach allows for the encapsulation of data and behavior within objects, promoting code reusability, modularity, and flexibility in software development.

Submit
14. ____ is An object that represents a useful model of a problem domain or solution domain entity

Explanation

Entity abstraction refers to an object that represents a useful model of a problem domain or solution domain entity. It is a way of simplifying complex systems by focusing on the essential characteristics of an entity and hiding unnecessary details. By using entity abstraction, developers can create more efficient and manageable code by encapsulating the behavior and properties of an entity into a single object. This allows for easier understanding, maintenance, and reuse of the code, making it a valuable concept in software development.

Submit
15. -(A/An) ____________ is a contract in the form of a collection of method and constant declarations. When a class implements (a/an) ____________, it promises to implement all of the methods declared in that ____________.  Select the best word to complete this sentence.

Explanation

An interface is a contract in the form of a collection of method and constant declarations. When a class implements an interface, it promises to implement all of the methods declared in that interface.

Submit
16. An ____  denotes 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.  

Explanation

Abstraction is the correct answer because it refers to the process of simplifying complex systems by focusing on the essential characteristics and ignoring unnecessary details. In the context of the question, abstraction allows us to define the essential characteristics of an object, which distinguish it from other objects and provide clear conceptual boundaries. This helps in understanding and categorizing objects from the perspective of the viewer.

Submit
17. Consider the following situation: a company realizes projects; each project is executed by a team of employees. Which would be a suitable conceptual UML diagram?  

Explanation

Diagram B, also known as a class diagram, would be a suitable conceptual UML diagram for the given situation. In this diagram, the classes "Company", "Project", and "Employee" are represented with their respective attributes and relationships. This diagram allows for a clear understanding of how projects are executed by teams of employees within the company.

Submit
18. Which statements are not correct about Objects? 

Explanation

The statement "Objects do not permit encapsulation" is not correct. Encapsulation is one of the fundamental principles of object-oriented programming, which allows the data and methods of an object to be bundled together and hidden from the outside world. Objects provide encapsulation by encapsulating their internal state and providing public methods to interact with that state. This helps in achieving data abstraction and ensures that the internal implementation details of an object are not exposed to the outside world.

Submit
19. Which of the following is an example of encapsulation

Explanation

Encapsulation refers to the process of hiding the internal details and complexities of an object and providing a simple interface for interacting with it. In this context, the car itself is an example of encapsulation because it encapsulates various components such as the engine, steering wheel, music system, etc., within its structure. The car provides a high-level interface (such as pedals, steering wheel, buttons) for the user to interact with, while the internal workings of the car remain hidden.

Submit
20. What is inner class?

Explanation

An inner class is a class that is defined within another class. It can be defined either within another class (option A) or within a method (option B). This allows the inner class to have access to the members of the outer class, including private members. The use of inner classes can help to organize code and encapsulate functionality within a specific context.

Submit
21. ____ is the process of compartmentalizing the elements of an abstraction that constitute its structure and behavior; encapsulation serves to separate the contractual interface of an abstraction and its implementation.

Explanation

Encapsulation is the process of organizing the elements of an abstraction, such as its structure and behavior, in a way that separates the contractual interface from its implementation. It allows for the hiding of internal details and provides a clear and defined way to interact with the abstraction. This helps to improve the maintainability and reusability of code, as changes made to the implementation do not affect the external interface. Therefore, encapsulation best fits the description provided in the question.

Submit
22. What is an aggregate object?

Explanation

An aggregate object is an object instance that contains other objects. This means that it is composed of multiple objects and can be seen as a collection or container of these objects. The other options provided do not accurately describe an aggregate object. An object with only static methods does not necessarily contain other objects, an object with only primitive attributes does not have the capability to contain other objects, and an object with only primitive attributes and instance methods does not necessarily contain other objects either.

Submit
23. Major elements of the object model are

Explanation

The major elements of the object model are abstraction, encapsulation, modularity, and hierarchy. Abstraction refers to the process of simplifying complex systems by breaking them down into smaller, manageable parts. Encapsulation involves bundling data and methods together into a single unit, known as an object, and hiding the internal details from the outside world. Modularity promotes the organization of code into separate, reusable components. Hierarchy establishes relationships between objects, allowing for inheritance and the creation of specialized classes based on existing ones. These elements are fundamental to object-oriented programming and facilitate the development of efficient and maintainable software systems.

Submit
24. How do you express that some persons keep animals as pets?

Explanation



The illustration in Diagram A depicts a person holding a dog on a leash, which is a clear representation of a human keeping an animal as a pet. This visual representation conveys the idea that some individuals choose to have animals as companions in their homes and lives. By showcasing the person walking the dog, the image illustrates the common practice of people forming close bonds with animals, caring for their needs, and providing them with love and attention, all of which are characteristics of pet ownership. In summary, Diagram A effectively communicates the concept that some persons keep animals as pets by visually portraying a human-animal relationship where the animal is cared for and regarded as a companion.
Submit
25. Kinds of abstractions are :

Explanation

The correct answer is the first option, "Entity, action, virtual machine, coincidental." This is because these four terms represent different types of abstractions. An entity is an abstract representation of a real-world object, an action represents a behavior or operation, a virtual machine is an abstraction of a physical computer system, and coincidental abstraction refers to accidental or unintended abstractions. The other options listed do not accurately represent different types of abstractions.

Submit
26. ____ is An object that provides a generalized set of operations, all of which perform the same kind of function  

Explanation

Action abstraction is the correct answer because it refers to an object that provides a generalized set of operations, all of which perform the same kind of function. This means that the object can be used to perform various actions or tasks in a consistent and standardized way. It allows for the simplification and organization of complex systems by grouping similar actions together under a single abstraction.

Submit
27. Minor elements of the object model are :

Explanation

The correct answer is Typing, Concurrency, Persistence. These elements are considered minor in the object model because they are not as commonly discussed or emphasized as the major elements like Class, Object, Method, Interface, Property, Inheritance, and Abstraction. Typing refers to the type system used in the programming language, Concurrency deals with the ability of an object to execute multiple tasks simultaneously, and Persistence refers to the ability of an object to retain its data even after the program terminates.

Submit
28. Object-Oriented Programming

Explanation

Object-Oriented Programming (OOP) simulates real life by representing objects and their interactions in a program. OOP allows developers to model real-world concepts, such as objects, classes, and inheritance, which makes the program more intuitive and easier to understand. By simulating real life, OOP helps developers design more reliable and maintainable code. It also promotes code reusability and modularity, making it easier to manage and update software systems. The statement "All of the above" is incorrect as it implies that OOP also uses intimidating vocabulary, which is not necessarily true.

Submit
29. Which of these activities COULD occur simultaneously?  

Explanation

The activities that could occur simultaneously are a44, a33, and a22. This means that a44, a33, and a22 can all happen at the same time without any conflicts or dependencies. Additionally, a22 and a77 could also occur simultaneously, indicating that these two activities can happen concurrently.

Submit
30. What is true about a Sequence Diagram? [2 answers]

Explanation

A Sequence Diagram is a type of UML diagram that shows the interactions between objects in a system. It is used to describe the behavior of a system or a specific scenario, typically within a single Use Case. The diagram illustrates the sequence of messages exchanged between objects and the order in which they occur. By showing the interactions between multiple objects, it provides a visual representation of how the objects collaborate to achieve a specific functionality. Therefore, it is true that a Sequence Diagram describes the behavior in a single Use Case and the behavior of several objects.

Submit
View My Results

Quiz Review Timeline (Updated): Sep 27, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Sep 27, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Dec 23, 2011
    Quiz Created by
    Mgabr
Cancel
  • All
    All (30)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Object-Oriented Programming is characterized by using  
What are the advantages of inheritance? 
The return data type of void means  
A class can have many methods with the same name, as long as the...
-___________ is a blueprint or prototype that defines the variables...
What is an Object?
____ is a method of design encompassing the process of object-oriented...
If an attribute is private, which methods have access to it?
 Language is object-oriented if and only if it satisfies the...
____ is a method of analysis that examines requirements from the...
What is the difference between Assignment and Initialization?
Polymorphism reduces the effort required to extend an object system by
_____ is a method of implementation in which programs are organized as...
____ is An object that represents a useful model of a problem domain...
-(A/An) ____________ is a contract in the form of a collection of...
An ____  denotes the essential characteristics of an object that...
Consider the following situation: a company realizes projects; each...
Which statements are not correct about Objects? 
Which of the following is an example of encapsulation
What is inner class?
____ is the process of compartmentalizing the elements of an...
What is an aggregate object?
Major elements of the object model are
How do you express that some persons keep animals as pets?
Kinds of abstractions are :
____ is An object that provides a generalized set of operations, all...
Minor elements of the object model are :
Object-Oriented Programming
Which of these activities COULD occur simultaneously?  
What is true about a Sequence Diagram? [2 answers]
Alert!

Advertisement