Objects - ISC Class 12 Computer Science Questions with Answers
48 past-paper questions on Objects from ISC Class 12 Computer Science papers (2026-2017), newest first. Open one to see its answer.
- A class Extract is defined to get the text between the first and the last occurrences of a particular word from a sentence. In… 2026 · 10 marks · Program
- A class TimeOp has been defined to add any two accepted time periods. Example: Time A = 6 hours 35 minutes 40 seconds Time B = 7… 2026 · 10 marks · Program
- Design a class Powerful to check if a given number is powerful or not. A Powerful number is a number which is equal to the sum of… 2026 · 8 marks · Program
- Consider the following code segment: … Identify the valid statement(s)? I. The variable totalStu keeps count of all Student… 2026 · 1 mark · MCQ
- A class FibList is designed to extract the terms of the Fibonacci series from a set of numbers. A Fibonacci series starts with… 2026 · 10 marks · Program
- Which of the following is a valid prototype of the non-parameterised constructor for the class Book? 2025 · 1 mark · MCQ
- A class Palprime has been defined to display Palprime words from a sentence. Palprime is a palindrome word and its length is a… 2025 · 10 marks · Program
- What is the difference between the two methods, nextToken( ) and hasMoreTokens( ) of StringTokenizer class ? 2025 · 2 marks · Short answer
- What is the difference between the following two statements? 1. FileWriter fw = new FileWriter(<file name>); 2. FileWriter fw =… 2025 · 2 marks · Short answer
- [Programme based on Numbers] An Automorphic number is a number whose square ends with the given number itself. E.g. $(5)^2 = 25$… 2025 · 10 marks · Program
- A class Mighty has been defined to create m1 and m2 as mighty numbers from integers n1 and n2. m1 will become mighty by placing… 2025 · 10 marks · Program
- A class JoinArray contains an array of integer elements. Form a new array which will contain elements of the second array from… 2025 · 10 marks · Program
- Which one of the given exceptions is raised when a user enters a String literal “hello” on the execution of following code: … 2025 · 1 mark · MCQ
- [Object as an Argument] A sports academy wants to conduct a friendly match between two teams with maximum fifteen players. A… 2025 · 10 marks · Program
- A class Perni has been defined to accept a positive integer in binary number system from the user and display if it is a… 2025 · 10 marks · Program
- Given are two strings, input string and a mask string that remove all the characters of the mask string from the original string… 2025 · 10 marks · Program
- Software developers of Banayan High School have created a class to store the name, age and height of students. If the class shown… 2025 · 1 mark · MCQ
- A class Flipgram has been defined to flip the letters of the left and right halves of a non-heterogram word. If the word has odd… 2025 · 10 marks · Program
- Which of the following statements are valid for static member methods of a class? I. They can access static as well as non-static… 2025 · 1 mark · MCQ
- What is the constructor's implicit return type? 2025 · 1 mark · MCQ
- Which one of the following keywords will make the data member as a class variable? 2025 · 1 mark · MCQ
- A class teacher has kept the records of the marks obtained in Physics and Computer Science of 3 students along with the students’… 2025 · 2 marks · Short answer
- Design a class Colsum to check if the sum of elements in each corresponding column of two matrices is equal or not. Assume that… 2025 · 10 marks · Program
- A class Composite contains a two-dimensional array of order [m x n]. The maximum values possible for both ‘m’ and ‘n’ is 20… 2024 · 10 marks · Program
- An Evil Number is a number which contains even number of 1’s in its binary equivalent. Example: Binary equivalent of 10 = 1010… 2024 · 10 marks · Program
- Design a class DeciHex to accept a positive integer in decimal number system from the user and display its hexadecimal… 2024 · 10 marks · Program
- A class Encode has been defined to replace only the vowels in a word by the next corresponding vowel and form a new word. i.e. A… 2024 · 10 marks · Program
- Design a class Pronic to check if a given number is a pronic number or not. [ A number is said to be pronic if the product of two… 2023 · 10 marks · Program
- Design a class NumDude to check if a given number is a Dudeney number or not. (A Dudeney number is a positive integer that is a… 2023 · 10 marks · Program
- Design a class Toggle which toggles a word by converting all upper case alphabets to lower case and vice versa. Example: The word… 2022 · 6 marks · Program
- Design a class Check which checks whether a word is a palindrome or not. (Palindrome words are those which spell the same from… 2022 · 6 marks · Program
- A Special number is a number in which the sum of the factorial of its digits is equal to the number. Example: 145 (… 2020 · 10 marks · Program
- What is the significance of the keyword ‘new’ in Java? Mention the areas where it is used. 2020 · 2 marks · Short answer
- Design a class Convert to find the date and the month from a given day number for a particular year. Example: If day number is 64… 2020 · 10 marks · Program
- A class Mix has been defined to mix two words, character by character, in the following manner: The first character of the first… 2020 · 10 marks · Program
- A class Composite contains a two dimensional array of order [m x n]. The maximum value possible for both ‘m’ and ‘n’ is 20… 2020 · 10 marks · Program
- Design a class BinSearch to search for a particular value in an array. Some of the members of the class are given below: Class… 2020 · 10 marks · Program
- Design a class Sort which enables a word to be arranged in alphabetical order. The details of the members of the class are given… 2020 · 10 marks · Program
- Design a class ArmNum to check if a given number is an Armstrong number or not. [A number is said to be Armstrong if sum of its… 2019 · 10 marks · Program
- A class Rearrange has been defined to modify a word by bringing all the vowels in the word at the beginning followed by the… 2019 · 10 marks · Program
- Design a class MatRev to reverse each element of a matrix. Example: Some of the members of the class are given below: Class name… 2019 · 10 marks · Program
- A class Capital has been defined to check whether a sentence has words beginning with a capital letter or not. Some of the… 2018 · 10 marks · Program
- Design a class Perfect to check if a given number is a perfect number or not. [ A number is said to be perfect if sum of the… 2018 · 10 marks · Program
- Two matrices are said to be equal if they have the same dimension and their corresponding elements are equal. For example the two… 2018 · 10 marks · Program
- A class Palin has been defined to check whether a positive number is a Palindrome number or not. The number ‘N’ is palindrome if… 2017 · 10 marks · Program
- A class Adder has been defined to add any two accepted time. Example: Time A - 6 hours 35 minutes Time B - 7 hours 45 minutes… 2017 · 10 marks · Program
- A class SwapSort has been defined to perform string related operations on a word input. Some of the members of the class are as… 2017 · 10 marks · Program
- Differentiate between a constructor and a method of 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
- 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
- Inheritance, Interfaces and Polymorphism 44 questions
- Data structures 71 questions
- Complexity and Big O notation 15 questions
- Boolean Algebra 177 questions