Introduction to Object Oriented Programming Techniques: book back answers

23 solved questions from the end of this chapter, Class 11 Computer Science, Tamil Nadu State Board. Each answer is checked against the textbook, and you can open the page that proves it.

← Notes and quiz for Introduction to Object Oriented Programming Techniques

SECTION – A Choose the correct answer

  1. The term is used to describe a programming approach based on classes and objects is (A) OOP (B) POP (C) ADT (D) SOP

    • (A) OOP
    • (B) POP
    • (C) ADT
    • (D) SOP
    Try it, then show the answer

    (A) OOP

    The chapter uses OOP to describe the programming approach based on classes and objects.

    From the book: “Object-Oriented Programming (OOP) is the term used to describe a programming approach based on classes and objects.”

  2. The paradigm which aims more at procedures. (A) Object Oriented Programming (B)Procedural programming (C) Modular programming (D)Structural programming

    • (A) Object Oriented Programming
    • (B)Procedural programming
    • (C) Modular programming
    • (D)Structural programming
    Try it, then show the answer

    (B)Procedural programming

    Procedural programming places greater emphasis on procedures.

    From the book: “Procedural programming aims more at procedures.”

  3. Which of the following is a user defined data type? (A) class (B) float (C) int (D) object

    • (A) class
    • (B) float
    • (C) int
    • (D) object
    Try it, then show the answer

    (A) class

    The chapter identifies a class as a user defined data type.

    From the book: “Class is a user defined data type.”

  4. The identifiable entity with some characteristics and behaviour is. (A) class (B) object (C) structure (D) member

    • (A) class
    • (B) object
    • (C) structure
    • (D) member
    Try it, then show the answer

    (B) object

    An identifiable entity with characteristics and behaviour is called an object.

    From the book: “An identifiable entity with some characteristics and behaviour is called object.”

  5. The mechanism by which the data and functions are bound together into a single unit is known as (A) Inheritance (B) Encapsulation (C) Polymorphism (D) Abstraction

    • (A) Inheritance
    • (B) Encapsulation
    • (C) Polymorphism
    • (D) Abstraction
    Try it, then show the answer

    (B) Encapsulation

    Encapsulation binds data and functions together into a single unit.

    From the book: “The mechanism by which the data and functions are bound together into a single unit is known as Encapsulation.”

  6. Insulation of the data from direct access by the program is called as (A) Data hiding (B) Encapsulation (C) Polymorphism (D) Abstraction

    • (A) Data hiding
    • (B) Encapsulation
    • (C) Polymorphism
    • (D) Abstraction
    Try it, then show the answer

    (A) Data hiding

    The chapter calls protecting data from direct access by the program data hiding or information hiding.

    From the book: “This encapsulation of data from direct access by the program is called data hiding or information hiding.”

  7. Which of the following concept encapsulate all the essential properties of the object that are to be created? (A) class (B) Encapsulation (C) Polymorphism (D) Abstraction

    • (A) class
    • (B) Encapsulation
    • (C) Polymorphism
    • (D) Abstraction
    Try it, then show the answer

    (D) Abstraction

    Abstraction uses classes to encapsulate the essential properties of objects to be created.

    From the book: “They encapsulate all the essential properties of the object that are to be created.”

  8. Which of the following is the most important advantage of inheritance? (A) data hiding (B) code reusability (C) code modification (D) accessibility

    • (A) data hiding
    • (B) code reusability
    • (C) code modification
    • (D) accessibility
    Try it, then show the answer

    (B) code reusability

    The chapter names code reusability as inheritance’s most important advantage.

    From the book: “The most important advantage of inheritance is code reusability.”

  9. “Write once and use it multiple time” can be achieved by (A) redundancy (B) reusability (C) modification (D) composition

    • (A) redundancy
    • (B) reusability
    • (C) modification
    • (D) composition
    Try it, then show the answer

    (B) reusability

    The chapter describes writing once and using multiple times as re-usability.

    From the book: ““Write once and use it multiple times” you can achieve this by using class.”

  10. Which of the following supports the transitive nature of data? (A) Inheritance (B) Encapsulation (C) Polymorphism (D) Abstraction

    • (A) Inheritance
    • (B) Encapsulation
    • (C) Polymorphism
    • (D) Abstraction
    Try it, then show the answer

    (A) Inheritance

    The chapter explicitly states that inheritance is transitive in nature.

    From the book: “Inheritance is transitive in nature.”

SECTION-B

  1. How is modular programming different from procedural programming paradigm?

    Try it, then show the answer

    Procedural programming organizes programs as subroutines or subprograms, and all data items are global. Modular programming divides programs into independent modules containing related functions; each module has its own local data, and data is hidden under the modules.

    Procedural programming focuses on procedures, while modular programming groups related functions into modules with their own local data.

    From the book: “Programs are organized in the form of subroutines or sub programs”

  2. Differentiate classes and objects.

    Try it, then show the answer

    A class is a user-defined data type or blueprint representing a group of similar objects. An object is created from a class, is an instance of that class, and represents data and associated functions together as a unit.

    A class defines a group or template; an object is an instance created from that class.

    From the book: “Objects are the basic unit of OOP. Basically an object is created from a class.”

  3. What is polymorphism?

    Try it, then show the answer

    Polymorphism is the ability of a message or function to be displayed in more than one form.

    It allows a message or function to appear in multiple forms.

    From the book: “Polymorphism is the ability of a message or function to be displayed in more than one form.”

  4. How is encapsulation and abstraction are interrelated?

    Try it, then show the answer

    Encapsulation binds data and functions together in a single unit and implements abstraction. Abstraction shows essential features without revealing background details; encapsulation helps provide that separation by restricting direct access to data.

    The chapter directly says encapsulation implements abstraction, while data is hidden from direct access.

    From the book: “The mechanism by which the data and functions are bound together into a single unit is known as Encapsulation. It implements abstraction.”

  5. Write the disadvantages of OOP.

    Try it, then show the answer

    OOP programs are much larger than other programs, require a lot of work to create, and are slower than other programs because of their size.

    The chapter lists size, effort, and speed as disadvantages.

    From the book: “Object Oriented Programs are much larger than other programs.”

  6. What is paradigm ?Mention the different types of paradigm.

    Try it, then show the answer

    A paradigm is the organizing principle of a program and an approach to programming. The different types are procedural programming, modular programming, and object oriented programming.

    The chapter defines a paradigm and names these three programming approaches.

    From the book: “They are Procedural programming, Modular Programming and Object Oriented Programming”

  7. Write a note on the features of procedural programming.

    Try it, then show the answer

    Procedural programming organizes programs as subroutines or subprograms, and all data items are global. It is suitable for small software applications. It is difficult and time-consuming to maintain or enhance because a data-type change must be propagated to all subroutines that use it. Examples include FORTRAN and COBOL.

    These are the features and limitations listed for procedural programming in the chapter.

    From the book: “Programs are organized in the form of subroutines or sub programs”

  8. List some of the features of modular programming

    Try it, then show the answer

    Modular programming emphasizes algorithms rather than data. Programs are divided into independent modules, each with its own local data; modules can work with their own data and with data passed to them. Examples include Pascal and C.

    The chapter lists the emphasis, structure, independence, and data handling of modules as features.

    From the book: “Each modules are independent of each other and have their own local data”

  9. What do you mean by modularization and software reuse?

    Try it, then show the answer

    Modularization is designing a system divided into functional units called modules that can be composed into a larger application. Software reuse means composing a program from existing and new modules.

    These definitions follow the chapter’s descriptions of modularity and software re-use.

    From the book: “Modularity is designing a system that is divided into a set of functional units (named modules)”

  10. Define information hiding.

    Try it, then show the answer

    Information hiding is the protection of data from direct access by the program; only functions wrapped in the class can access that data.

    The chapter describes data hidden from direct program access as information hiding.

    From the book: “This encapsulation of data from direct access by the program is called data hiding or information hiding.”

SECTION - D Explain in detail

  1. Write the differences between Object Oriented Programming and procedural programming

    Try it, then show the answer

    Procedural programming organizes a program around procedures, while Object Oriented Programming (OOP) organizes it around data using classes and objects.

    1. Main emphasis: Procedural programming focuses on procedures and doing tasks. OOP emphasizes data rather than the algorithm.
    2. Program structure: Procedural programs are organized as subroutines or subprograms. OOP programs are implemented using classes and objects.
    3. Handling data and operations: In procedural programming, data items are global. In OOP, data and its associated operations are grouped into a single unit.
    4. Data protection: Procedural programming has global data items. OOP uses data hiding, so data is not directly accessible to the outside world.
    5. Program design: Procedural programs are centered on procedures, whereas OOP programs are designed around the data being operated.
    6. Maintenance: Procedural programs are difficult to maintain and enhance because a change in data type must be propagated to all subroutines that use it.
    7. Suitability and examples: Procedural programming is suitable for small-sized software applications. The chapter lists C++ among the examples of OOP languages.

    Example: The chapter gives FORTRAN and COBOL as examples of procedural programming, and C++ as an example of Object Oriented Programming.

    Thus, procedural programming centers on procedures, while OOP groups data and its associated operations into objects.

    From the book: “Object Oriented Programming paradigm emphasizes on the data rather than the algorithm.”

  2. What are the advanatges of OOPs?

    Try it, then show the answer

    Object-Oriented Programming (OOP) is a programming approach that uses classes and objects. It offers several advantages in developing and maintaining software.

    1. Reusability: A class can be written once and used multiple times, reducing the need to write the same functionality repeatedly.
    2. Reduced Redundancy: A common class can provide the same functionality to multiple classes through inheritance.
    3. Easy Maintenance: Existing code can be maintained and modified easily by creating new objects with small differences from existing ones.
    4. Security: Data hiding and abstraction make only necessary data available, helping to protect the data.
    5. Modularity: A program can be divided into functional modules and composed into a larger application.

    Example: Inheritance allows a common class to be used by subclasses for the same functionality.

    Thus, OOP supports reusability, reduces redundancy, and makes programs easier to maintain and secure.

    From the book: “It is easy to maintain and modify existing code as new objects can be created with small differences to existing ones.”

  3. 3 Write a note on the basic concepts that suppors OOPs?

    Try it, then show the answer

    Object-Oriented Programming (OOP) is a programming approach based on classes and objects. Its basic concepts support the organisation and reuse of software.

    1. Encapsulation: Encapsulation binds data and functions together in a single unit. It also prevents direct access to data from outside the class.
    2. Data Abstraction: Abstraction shows only the essential features of an object and hides background details.
    3. Modularity: Modularity divides a system into functional units called modules, which can be combined into a larger application.
    4. Inheritance: Inheritance builds new derived classes from existing base classes. It supports code reusability.
    5. Polymorphism: Polymorphism allows a message or function to appear in more than one form.

    Example: C++ is an example of an object-oriented programming language.

    These concepts are the main features that support Object-Oriented Programming.

    From the book: “Main Features of Object Oriented Programming • Data Abstraction • Encapsulation • Modularity • Inheritance • Polymorphism”

Next chapterClasses and objects