ISC (Commerce)
ISC (Science)
Academic Year: 2021-2022
Date & Time: 30th May 2022, 2:00 pm
Duration: 1h30m
Advertisements
- Candidates are allowed an additional 10 minutes for only reading the paper.
- They must NOT start writing during this time.
- Answer all questions in Section A, Section B and Section C.
- While answering questions in Sections A and B, working and reasoning may be indicated briefly.
- The intended marks for questions or parts of questions are given in brackets. [ ]
- All working, including rough work, should be done on the same sheet as the rest of the answer.
The concept in Java to perform method overloading and method overriding is called ______.
inheritance
polymorphism
data abstraction
encapsulation
Chapter:
The interface in Java is a mechanism to achieve ______.
encapsulation
overriding
polymorphism
abstraction
Chapter:
System.out.println("Computer Science"
lastlndexOf('E')):
The output of the statement given above will be:
8
7
−1
15
Chapter:
Write a statement in Java to extract the last four characters from the word "SIMPLICITY".
Chapter:
Name a data structure that follows LIFO principle and one that follows FIFO principle.
Chapter:
Advertisements
What is the output of the program code given below, when the value of x = 294?
int simple(int x)
{return (x<=0)? 0: x + simple(x/10);}Chapter:
State any one drawback of using recursive technique in a Java program.
Chapter:
Differentiate between finite recursion and infinite recursion.
Chapter:
Convert the following infix notation to prefix notation:
P * (Q − R) + S
Chapter:
Answer the following questions from the diagram of a Binary Tree given below:

- State the siblings of the nodes C and E. Also, state the predecessor node(s) and successor node(s) of node B. [2]
- Write the in-order traversal of the left sub tree and pre-order traversal of the right sub tree. [2]
Chapter:
Advertisements
Design a class Unique, which checks whether a word begins and ends with a vowel.
Example: APPLE, ARORA etc.
The details of the members of the class are given below:
| Class name: | Unique |
| Data members/instance variables: | |
| word: | stores a word |
| len: | to store the length of the word |
| Methods/Member functions: | |
| Unique( ) | default constructor |
| void aceptword( ) | to accept the word in UPPER CASE |
| boolean checkUnique( ) | checks and returns 'true' if the word starts and ends with a vowel otherwise returns 'false' |
| void display( ) | displays the word along with an appropriate message |
Specify the class Unique, giving details of the constructor, void acceptword( ), boolean checkUnique( ) and void display( ). Define the main( ) function to create an object and call the Junctions accordingly to enable the task.
Chapter:
Design a class NoRepeat which checks whether a word has no repeated alphabets in it.
Example: COMP.UTER has no repeated alphabets but SCIENCE has repeated alphabets.
The details of the class are given below:
| Class name: | NoRepeat |
| Data members/instance variables: | |
| word: | to store a word |
| len: | to store the length of the word |
| Methods/Member functions: | |
| NoRepeat (String wd): | parameterized constructor to initialize word=wd |
| boolean check( ): | checks whether a word has no repeated alphabets and returns true else returns false. |
| void prn( ): | displays the word along with an appropriate message |
Specify the class NoRepeat, giving details of the constructor(String), boolean check() and void prn( ). Define the main() function to create an object and call the functions accordingly to enable the task.
Chapter:
A class CalSeries has been defined to calculate the sum of the series:
sum = 1 + x + x2 + x3 ..... + xn
Some of the members of the class are given below:
| Class name: | CalSeries |
| Data members/instance variables: | |
| x: | integer to store the value of x |
| n: | integer to store the value of n |
| sum: | integer to store sum of the series |
| Member functions/methods: | |
| CalSeries( ): | default constructor |
| void input( ): | to accept the values of x and n |
| int power( int p,int q): | return the power of p raised to q (pq) using recursive technique |
| void cal( ): | calculates the sum of the series by invoking the method power() and displays the result with an appropriate message |
Specify the class CalSeries, giving details of the constructor, void input(), int power(int, int) and void call( ). Define the main() function to create an object and call the member function accordingly to enable the task.
Chapter:
Design a class Revno which reverses an integer number.
Example: 94765 becomes 56749 on reversing the digits of the number.
Some of the members of the class are given below:
| Class name: | Renvo |
| Data member/instance variable: | |
| num: | to store the integer number |
| Member functions/methods: | |
| Revno(): | default constructor |
| void inputnum: | to accept the number |
| int reverse(int nn): | returns the reverse of a number by using recursive technique |
| void display(): | displays the original number along with its reverse by invoking the method reverse() |
Specify the class Revno, giving details of the constructor, void inputnum( ), int reverse(int) and void display(). Define the main( ) function to create an object and call the functions accordingly to enable the task.
Chapter:
A super class Item has been defined to store the details of an item sold by a wholesaler to a retailer. Define a subclass Taxable to compute the total amount paid by retailer along with service tax.
Some of the members of both the classes are given below:
| Class name: | Item |
| Data members/instance variables: | |
| name: | to store the name of the item |
| code: | integer to store the item code |
| amount: | stores the total sale amount of the item (in decimals) |
| Member functions/methods: | |
| Item(.....): | parameterized constructor to assign value to the data members |
| void show(): | to display the item details |
| Class name: | Taxable |
| Data members/instance variables: | |
| tax: | to store the service tax (in decimals) |
| totamt: | to store the total amount (in decimals) |
| Member functions/methods | |
| Taxable(.....): | parameterized constructor to assign values to the data members of both classes |
| void cal_tax(): | calculates the service tax @ 10.2% of the total sale amount calculates the total amount paid by the retailer as (total sale amount + service tax) |
| void show(): | to display the item details along with the total amount |
Assume that the super class Item has been defined. Using the concept of inheritance, specify the class Taxable, giving details of the constructor, void cal_tax() and void show().
The super class, main function and algorithm need NOT be written.
Chapter:
A Stack is a kind of data structure which can store elements with the restriction that an element can be added or removed from the top end only.
The details of the class Stack is given below:
| Class name: | Stack |
| Data members/instance variables: | |
| Chat[]: | array to hold the characters |
| size: | stores the maximum capacity of the stack |
| top: | to point the index of the topmost element of the stack |
| Member functions/methods: | |
| Stack(int mm): | constructor to initialize the data member size = mm, top = −1 and create the character array |
| void push_char(char v): | to add characters from the top end if possible else display the message("Stack full") |
| char pop_char(): | to remove and return characters from the top end, if any, else return '$' |
| void display( ): | to display elements of the stack |
Specify the class Stack giving the details of void push_char(char) and char pop_char( ). Assume that the other functions have been defined.
The main( ) function and algorithm need NOT be written.
Chapter:
Other Solutions
Submit Question Paper
Help us maintain new question papers on Shaalaa.com, so we can continue to help studentsonly jpg, png and pdf files
CISCE previous year question papers Class 12 Computer Science (Theory) with solutions 2021 - 2022
Previous year Question paper for CISCE Class 12 -2022 is solved by experts. Solved question papers gives you the chance to check yourself after your mock test.
By referring the question paper Solutions for Computer Science (Theory), you can scale your preparation level and work on your weak areas. It will also help the candidates in developing the time-management skills. Practice makes perfect, and there is no better way to practice than to attempt previous year question paper solutions of CISCE Class 12.
How CISCE Class 12 Question Paper solutions Help Students ?
• Question paper solutions for Computer Science (Theory) will helps students to prepare for exam.
• Question paper with answer will boost students confidence in exam time and also give you an idea About the important questions and topics to be prepared for the board exam.
• For finding solution of question papers no need to refer so multiple sources like textbook or guides.
