Inheritance, Interfaces and Polymorphism - ISC Class 12 Computer Science Questions with Answers
44 past-paper questions on Inheritance, Interfaces and Polymorphism from ISC Class 12 Computer Science papers (2026-2017), newest first. Open one to see its answer.
- A superclass Course has been defined to store the basic details of a course. Define a subclass Internship to store… 2026 · 5 marks · Program
- In Java, an abstract class is created for the purpose of inheritance. Given below are two statements marked, Assertion and… 2026 · 1 mark · Assertion-reason
- In Java, a subclass can override a method of its superclass by defining a method with the same name and same signature. Given… 2026 · 1 mark · Assertion-reason
- An interface in Java contains abstract and non-abstract methods. Given below are two statements marked, Assertion and Reason… 2026 · 1 mark · Assertion-reason
- A superclass Hotel has been defined to store the details of a hotel. Define a subclass Customer to calculate the total bill for a… 2026 · 5 marks · Program
- Study the given two classes below and identify the error if any, in the given code. … 2025 · 1 mark · Short answer
- A superclass Train has been defined to store the details of a train for booking tickets. Define a subclass Booking to compute the… 2025 · 5 marks · Program
- Fix the following keywords at the right places: extends, super, protected, abstract, implements … … … … … 2025 · 5 marks · Short answer
- In the given code snippet, which feature of object-oriented programming concept is being exhibited by the substring( ) method? … 2025 · 1 mark · Short answer
- What will happen if void show( ) in subclass Car is given access specifier as private? 2025 · 1 mark · Short answer
- Consider the class definitions and answer the questions: Complete the missing parts of the code given below: … Answer the… 2025 · 5 marks · Short answer
- In single inheritance, which one of the following keywords should NOT be used. 2025 · 1 mark · MCQ
- What will happen if data members of super class are made private instead of protected? 2025 · 1 mark · Short answer
- Consider the following code segment: … Which of the following statements are valid for the given code? I. Vehicle is a super… 2025 · 1 mark · MCQ
- A superclass Flight has been defined to store the details of a flight. Define a subclass Passenger to calculate the fare for a… 2025 · 5 marks · Program
- Answer the following questions related to object-oriented programming: In Java, polymorphism is exhibited in two different ways… 2025 · 5 marks · Short answer
- All methods declared in the interface are abstract. Where will the body of these abstract methods be defined? 2025 · 1 mark · Short answer
- An abstract class can contain abstract as well as non-abstract methods. Given below are two statements marked Assertion and… 2025 · 1 mark · Assertion-reason
- Based on the given image, write the java statement to create the class Child. 2025 · 1 mark · Short answer
- … Assume that class Check implements interfaces A and B, how many times the method abc( ) will be defined in class Check ? 2025 · 1 mark · MCQ
- A library issues books on rental basis at a 2% charge on the cost price of the book per day. As per the rules of the library, a… 2025 · 5 marks · Program
- For overloaded method, signature matching happens at compile time. Given below are two statements marked Assertion and Reason… 2025 · 1 mark · Assertion-reason
- A super class EmpSal has been defined to store the details of an employee. Define a subclass Overtime to compute the total salary… 2024 · 5 marks · Program
- State any one purpose of using interfaces in Java programming. 2024 · 1 mark · Short answer
- State any one use of interfaces in Java. 2024 · 1 mark · Short answer
- A super class Circle has been defined to calculate the area of a circle. Define a subclass Volume to calculate the volume of a… 2024 · 5 marks · Program
- Mention any two properties of the data members of an Interface. 2023 · 1 mark · Short answer
- State any one purpose of using the keyword super in Java programming. 2023 · 1 mark · Short answer
- A super class Bank has been defined to store the details of the customer in a bank. Define a subclass Interest to calculate the… 2023 · 5 marks · Program
- Transitive nature of inheritance is implemented through 2023 · 1 mark · MCQ
- The keyword that allows multi-level inheritance in Java programming is: 2023 · 1 mark · MCQ
- Define Interface with respect to data abstraction. 2023 · 1 mark · Short answer
- A super class Demand has been defined to store the details of the demands for a product. Define a subclass Supply which contains… 2023 · 5 marks · Program
- The ability of an object to take many forms is known as: 2022 · 1 mark · MCQ
- A super class Godown has been defined to store the details of the stock of a retail store. Define a subclass Update to store the… 2022 · 4 marks · Program
- The keyword used by a class to acquire the properties of an interface is: 2022 · 1 mark · MCQ
- Define Interface. How is it different from a Class? 2020 · 2 marks · Short answer
- An interface Shape is defined with a method area() which returns the area of the implementing shape. Create the classes Circle… 2020 · 5 marks · Program
- An interface Data is defined with a data member and a method volume( ) which returns the volume of the implementing shape. A… 2020 · 5 marks · Program
- What is an Interface? How is it different from a class? 2019 · 2 marks · Short answer
- A super class Record contains names and marks of the students in two different single dimensional arrays. Define a sub class… 2019 · 5 marks · Program
- A super class Number is defined to calculate the factorial of a number. Define a sub class Series to find the sum of the series… 2018 · 5 marks · Program
- A super class Product has been defined to store the details of a product sold by a wholesaler to a retailer. Define a sub class… 2017 · 5 marks · Program
- What is an interface? How is it different from a class? 2017 · 2 marks · Short answer
Other Computer Science chapters
- Computer Hardware 55 questions
- Implementation of algorithms to solve problems 20 questions
- Programming in Java (Review of Class XI Sections B and C) 3 questions
- Objects 48 questions
- Primitive values, Wrapper classes, Types and casting 11 questions
- Variables, Expressions 2 questions
- Statements, Scope 4 questions
- Methods 13 questions
- Arrays, Strings 48 questions
- Recursion 30 questions
- Data structures 71 questions
- Complexity and Big O notation 15 questions
- Boolean Algebra 177 questions