{"id":13891,"date":"2023-08-21T23:07:07","date_gmt":"2023-08-21T17:37:07","guid":{"rendered":"https:\/\/onlinefreenotes.com\/?p=13891"},"modified":"2025-12-12T11:48:18","modified_gmt":"2025-12-12T11:48:18","slug":"an-introduction-to-object-oriented-programming","status":"publish","type":"post","link":"https:\/\/mockupbw.site\/2025\/onlinefreenotes\/an-introduction-to-object-oriented-programming\/","title":{"rendered":"An Introduction to Object Oriented Programming: SEBA Class 10 Computer"},"content":{"rendered":"\n<p>Get answers, questions, notes, textbook solutions, extras, pdf, mcqs, for Computer Chapter 10 <em>An Introduction to Object Oriented Programming<\/em> of class 10 (HSLC\/Madhyamik) for students studying under the Board of Secondary Education, Assam (<a href=\"https:\/\/sebaonline.org\/\" target=\"_blank\" rel=\"noopener\">SEBA<\/a>). These notes\/answers, however, should only be used for references and modifications\/changes can be made wherever possible.<\/p>\n\n\n  <style>\r\n    .notice {\r\n      background: yellow;       \/* simple yellow background *\/\r\n      text-align: center;       \/* centre alignment *\/\r\n      padding: 12px 16px;\r\n      margin: 20px auto;\r\n      width: fit-content;       \/* shrink to text and centre via auto margins *\/\r\n      font-family: Arial, sans-serif;\r\n    }\r\n  <\/style>\r\n  <div class=\"notice\">\r\n    If you notice any errors in the notes, please mention them in the comments\r\n  <\/div>\r\n<nav id=\"toc\" class=\"toc-box\"><\/nav>\r\n<style>\r\n.toc-box{\r\n  border:1px solid #e5e7eb;\r\n  border-radius:8px;\r\n  background:#fff;\r\n  margin:20px 0;\r\n  font-family:Arial, Helvetica, sans-serif\r\n}\r\n.toc-header{\r\n  padding:10px 14px;\r\n  font-size:16px;\r\n  font-weight:600;\r\n  border-bottom:1px solid #eef2f7;\r\n  background:#f8fafc\r\n}\r\n.toc-content{\r\n  padding:12px 18px\r\n}\r\n\r\n\/* Base list *\/\r\n.toc-content ul{\r\n  margin:0 25px;\r\n  padding-left:0;\r\n  list-style:none\r\n}\r\n\r\n\/* Level-based bullets *\/\r\n.toc-content li{\r\n  position:relative;\r\n  margin:6px 0;\r\n  margin-left:6px;\r\n  line-height:1.5;\r\n\tlist-style:disc;\r\n}\r\n\r\n\/* H2 bullet \u25cf *\/\r\n.toc-content li.level-2{\r\n  list-style:disc;\r\n\t\r\n}\r\n\r\n\/* H3 bullet \u25cb *\/\r\n.toc-content li.level-3{\r\n  margin-left:26px;\r\n\tlist-style:disc;\r\n}\r\n\r\n\r\n\/* H4+ bullet \u2013 *\/\r\n.toc-content li.level-4{\r\n  margin-left:46px;\r\n\tlist-style:disc;\r\n}\r\n.toc-content li.level-5,\r\n.toc-content li.level-6{\r\n  margin-left:66px;\r\n\tlist-style:disc;\r\n}\r\n\r\n.toc-content a{\r\n  text-decoration:none;\r\n  color:#000\r\n}\r\n.toc-content a:hover{\r\n  text-decoration:underline\r\n}\r\n\r\nhtml{scroll-behavior:smooth}\r\nh1[id],h2[id],h3[id],h4[id],h5[id],h6[id]{\r\n  scroll-margin-top:110px\r\n}\r\n<\/style>\r\n\r\n<script>\r\ndocument.addEventListener('DOMContentLoaded', function () {\r\n\r\n  const toc = document.getElementById('toc');\r\n  if (!toc) return;\r\n\r\n  \/* MAIN CONTENT ONLY *\/\r\n  const content = document.querySelector('#pdf-content');\r\n\r\n  \/* EXCLUDE AREAS *\/\r\n  const excludeSelectors = `\r\n    .author, .byline, .entry-meta, .post-meta,\r\n    #comments, .comments-area, .comment-respond,\r\n    .comment-form, .comment-list,\r\n    .login, .login-required,\r\n    .sidebar, aside, footer, nav,\r\n    .widget, .widgets\r\n  `;\r\n\r\n  \/* TEXT TO IGNORE *\/\r\n  const ignoreText = [\r\n    'leave a comment',\r\n    'cancel reply',\r\n    'login required',\r\n    'get notes',\r\n    'ron\\'e dutta',\r\n    'comments'\r\n  ];\r\n\r\n  \r\nconst headings = [...content.querySelectorAll('h1,h2,h3,h4,h5,h6')]\r\n  .filter(h => !excludeSelectors || !h.closest(excludeSelectors))\r\n  .filter(h => {\r\n    const txt = h.textContent.trim().toLowerCase();\r\n    return txt.length > 0 && !ignoreText.some(t => txt.includes(t));\r\n  });\r\n\r\n\/\/alert(content);\r\n  if (!headings.length) {\r\n    toc.style.display = 'none';\r\n    return;\r\n  }\r\n\r\n  \/* UNIQUE IDs *\/\r\n  const used = {};\r\n  const slug = t => t.toLowerCase().trim()\r\n    .replace(\/[^a-z0-9\\s-]\/g, '')\r\n    .replace(\/\\s+\/g, '-');\r\n\r\n  headings.forEach(h => {\r\n    if (!h.id) {\r\n      let base = slug(h.textContent) || 'section';\r\n      used[base] = (used[base] || 0) + 1;\r\n      h.id = used[base] > 1 ? base + '-' + used[base] : base;\r\n    }\r\n  });\r\n\r\n  \/* BUILD TOC *\/\r\n  const ul = document.createElement('ul');\r\n\r\n  headings.forEach(h => {\r\n    const level = parseInt(h.tagName.substring(1));\r\n    if (level < 2) return; \/\/ skip H1 like your reference site\r\n\r\n    const li = document.createElement('li');\r\n    li.className = 'level-' + level;\r\n\r\n    const a = document.createElement('a');\r\n    a.href = '#' + h.id;\r\n    a.textContent = h.textContent.trim();\r\n\r\n    li.appendChild(a);\r\n    ul.appendChild(li);\r\n  });\r\n\r\n  toc.innerHTML = `\r\n    <div class=\"toc-header\">Table of Contents<\/div>\r\n    <div class=\"toc-content\"><\/div>\r\n  `;\r\n  toc.querySelector('.toc-content').appendChild(ul);\r\n\r\n});\r\n<\/script>\r\n\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Summary\"><strong>Summary<\/strong><\/h4>\n\n\n\n<p>The chapter provides an introduction to Object-Oriented Programming (OOP). It discusses the concept of programming paradigms, which are sets of design principles that define program structure. It also mentions different programming paradigms, with a focus on Procedure Oriented Programming (POP) and Object-Oriented Programming (OOP).<\/p>\n\n\n\n<p>Procedure Oriented Programming (POP) is described as a model based on the concept of calling procedures, which are computational steps to be executed. On the other hand, OOP is introduced as a paradigm that represents real-life entities. The basic unit of OOP is the object, which has attributes and methods that represent its state and behaviour, respectively. Objects are instances of classes, which are user-defined blueprints or prototypes.<\/p>\n\n\n\n<p>There are four main features of OOP: encapsulation, abstraction, inheritance, and polymorphism. Encapsulation is the method of bundling data and methods into a single unit, like a class, to perform a specific task without revealing unnecessary details. It adds a layer of security by restricting direct access to data. Abstraction displays only essential data or information to the user, hiding the implementation details. Polymorphism allows a single function or operator to perform in different ways, depending on how it&#8217;s invoked.<\/p>\n\n\n\n\n\n<h4 class=\"wp-block-heading\" id=\"I_Short_answer_questions\"><strong>I. Short answer questions<\/strong><\/h4>\n\n\n\n<p><strong>a. What do you mean by programming paradigm?<\/strong><\/p>\n\n\n\n<p><strong>Answer:<\/strong> The term paradigm means set of design principles that defines the program structure. It is an approach to programming. The programming paradigm is all about the writing style and organizing the program code in a specific way. It is a framework that defines how the programmer can conceptualize and model complex problems to be solved.<\/p>\n\n\n\n<p><strong>b. Define object.<\/strong><\/p>\n\n\n\n<p><strong>Answer:<\/strong> Object is a basic unit of Object Oriented Programming and represents the real-life entities. An object is a thing in the real world which has certain properties and methods. It may be any place, person, bank account, bill, or any item.<\/p>\n\n\n\n<p><strong>c. Define class.<\/strong><\/p>\n\n\n\n<p><strong>Answer:<\/strong> A class is a user-defined blueprint or prototype from which objects are created. It represents the set of properties or methods that are common to all objects of one type.<\/p>\n\n\n\n<p><strong>d. What is encapsulation?<\/strong><\/p>\n\n\n\n<p><strong>Answer:<\/strong> Encapsulation is the process of binding data members and methods of a program together to do a specific job, without revealing unnecessary details.<\/p>\n\n\n\n<p><strong>e. What is data hiding?<\/strong><\/p>\n\n\n\n<p><strong>Answer:<\/strong> Data hiding is the principle of preventing direct access to some of the object&#8217;s components from outside the object&#8217;s definition through information hiding and encapsulation.<\/p>\n\n\n\n<p><strong>f. What is polymorphism?<\/strong><\/p>\n\n\n\n<p><strong>Answer:<\/strong> Polymorphism means one name multiple forms. Polymorphism refers to a single function or multi-functioning operator performing in different ways.<\/p>\n\n\n\n<p><strong>g. Name four object-oriented programming languages.<\/strong><\/p>\n\n\n\n<p><strong>Answer:<\/strong> Java, C++, Python, C#<\/p>\n\n\n\n<p><strong>h. Name two procedure-oriented programming languages.<\/strong><\/p>\n\n\n\n<p><strong>Answer:<\/strong> C, Pascal<\/p>\n\n\n\n<p><strong>i. Name the first object-oriented language.<\/strong><\/p>\n\n\n\n<p><strong>Answer:<\/strong> Simula<\/p>\n\n\n\n<p><strong>j. What is abstraction?<\/strong><\/p>\n\n\n\n<p><strong>Answer:<\/strong> Abstraction refers to displaying only essential information while hiding implementation details from users. It focuses on the key characteristics of an object.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"II_Long_answer_questions\"><strong>II. Long answer questions<\/strong><\/h4>\n\n\n\n<p><strong>a. Mention four characteristics of procedure-oriented programming.<\/strong><\/p>\n\n\n\n<p><strong>Answer:<\/strong> The four characteristics of procedure-oriented programming are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It emphasizes on algorithm.<\/li>\n\n\n\n<li>Large programs are divided into smaller programs known as functions.<\/li>\n\n\n\n<li>Functions can communicate by global variable.<\/li>\n\n\n\n<li>Data move freely from one function to another function.<\/li>\n<\/ul>\n\n\n\n<p><strong>b. Mention two advantages and two disadvantages of procedure-oriented programming<\/strong><\/p>\n\n\n\n<p><strong>Answer:<\/strong> Advantages:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The procedural programming languages are relatively much easier to learn as a first programming language for beginners.<\/li>\n\n\n\n<li>The straightforward program organization makes it an ideal choice as a general-purpose language.<\/li>\n<\/ul>\n\n\n\n<p>Disadvantages:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The procedural programming is not suitable for large and complex software.<\/li>\n\n\n\n<li>It is difficult to protect the data from inadvertent changes.<\/li>\n<\/ul>\n\n\n\n<p><strong>c. Explain four features of OOP.<\/strong><\/p>\n\n\n\n<p><strong>Answer:<\/strong> The four features of object-oriented programming are:<\/p>\n\n\n\n<p>Encapsulation: Encapsulation can be defined as the method of putting everything that is required to do the job, inside a capsule and presenting that capsule to the user. By encapsulation, all the necessary data and methods are bind together and all the necessary details are hidden to the normal user.<\/p>\n\n\n\n<p>Inheritance: Inheritance is the process of acquiring or inheriting properties of one class to the other. The process of deriving one class from an existing class is called inheritance.&nbsp;<\/p>\n\n\n\n<p>Abstraction: It allows us to show only essential data or information to the user and hides the implementation details from the user. The concept of abstraction relates to the idea of hiding data that are not needed for presentation.<\/p>\n\n\n\n<p>Polymorphism: Poly means many and morphs mean form. So polymorphism means one name multiple forms. Polymorphism refers to a single-function or multi-functioning operator performing in different ways.&nbsp;<\/p>\n\n\n\n<p><strong>d. List four advantages of OOP.<\/strong><\/p>\n\n\n\n<p><strong>Answer:<\/strong> Four advantages of OOP are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>OOP can support large-scale and complex software development projects.<\/li>\n\n\n\n<li>OOP offers better data protection. In OOP, the data access permissions are tightly controlled. It allows us the code re-usability.<\/li>\n\n\n\n<li>Better representation of real-world objects. The programmer can easily represent real-world objects realistically in the program code.<\/li>\n\n\n\n<li>Avoids unnecessary data exposure to the user by using abstraction.<\/li>\n<\/ul>\n\n\n\n<p><strong>e. Differentiate between procedure-oriented programming and object-oriented programming.<\/strong><\/p>\n\n\n\n<p><strong>Answer:<\/strong>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>Procedural Programming<\/strong><\/td><td><strong>Object Oriented Programming<\/strong><\/td><\/tr><tr><td>Program is divided into objects<\/td><td>Program is divided into functions.<\/td><\/tr><tr><td>Object-oriented programming provides data hiding so it is more secure.<\/td><td>Top-down approach.<\/td><\/tr><tr><td>It uses access specifier.<\/td><td>It doesn&#8217;t use access specifier.<\/td><\/tr><tr><td>Procedural programming does not have any proper way for hiding data so it is less secure.<\/td><td>Object oriented programming provides data hiding so it is more secure.<\/td><\/tr><tr><td>Inheritance property is used.<\/td><td>Inheritance is not allowed.<\/td><\/tr><tr><td>Encapsulation is used to hide the data.&nbsp;<\/td><td>No data hiding.<\/td><\/tr><tr><td>It is difficult to represent the real world objects.<\/td><td>It is much easier to represent the real world objects in OOP.<\/td><\/tr><tr><td>Adding new data and functions is not easy.<\/td><td>Adding new data and function is easy.<\/td><\/tr><tr><td>Overloading is not possible.<\/td><td>Overloading is possible.<\/td><\/tr><tr><td>Function is more important than data.<\/td><td>Data is more important than function.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>Get answers, questions, notes, textbook solutions, extras, pdf, mcqs, for Computer Chapter 10 An Introduction to Object Oriented Programming of class 10 (HSLC\/Madhyamik) for students studying under the Board of Secondary Education, Assam (SEBA). These notes\/answers, however, should only be used for references and modifications\/changes can be made wherever possible. Summary The chapter provides an&hellip; <a class=\"more-link\" href=\"https:\/\/mockupbw.site\/2025\/onlinefreenotes\/an-introduction-to-object-oriented-programming\/\">Continue reading <span class=\"screen-reader-text\">An Introduction to Object Oriented Programming: SEBA Class 10 Computer<\/span><\/a><\/p>\n","protected":false},"author":1044,"featured_media":13893,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,45],"tags":[729,245,117,29,573,30,41,213,33,35,36,44,37,53],"class_list":["post-13891","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-notes","category-seba","tag-an-introduction-to-object-oriented-programming","tag-assam-board","tag-chapter-10","tag-class-10","tag-computer","tag-extras","tag-hslc","tag-madhyamik","tag-notes","tag-pdf","tag-questions","tag-seba","tag-solutions","tag-textual-answers","entry"],"acf":[],"_links":{"self":[{"href":"https:\/\/mockupbw.site\/2025\/onlinefreenotes\/wp-json\/wp\/v2\/posts\/13891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mockupbw.site\/2025\/onlinefreenotes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mockupbw.site\/2025\/onlinefreenotes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mockupbw.site\/2025\/onlinefreenotes\/wp-json\/wp\/v2\/users\/1044"}],"replies":[{"embeddable":true,"href":"https:\/\/mockupbw.site\/2025\/onlinefreenotes\/wp-json\/wp\/v2\/comments?post=13891"}],"version-history":[{"count":1,"href":"https:\/\/mockupbw.site\/2025\/onlinefreenotes\/wp-json\/wp\/v2\/posts\/13891\/revisions"}],"predecessor-version":[{"id":33078,"href":"https:\/\/mockupbw.site\/2025\/onlinefreenotes\/wp-json\/wp\/v2\/posts\/13891\/revisions\/33078"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mockupbw.site\/2025\/onlinefreenotes\/wp-json\/wp\/v2\/media\/13893"}],"wp:attachment":[{"href":"https:\/\/mockupbw.site\/2025\/onlinefreenotes\/wp-json\/wp\/v2\/media?parent=13891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mockupbw.site\/2025\/onlinefreenotes\/wp-json\/wp\/v2\/categories?post=13891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mockupbw.site\/2025\/onlinefreenotes\/wp-json\/wp\/v2\/tags?post=13891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}