मराठी

Computer Science (Theory) Official Board Paper 2021-2022 ISC (Commerce) Class 12 Question Paper Solution

Advertisements
Computer Science (Theory) [Official Board Paper]
Marks: 35 CISCE
ISC (Commerce)
ISC (Science)

Academic Year: 2021-2022
Date & Time: 30th May 2022, 2:00 pm
Duration: 1h30m
Advertisements
  1. Candidates are allowed an additional 10 minutes for only reading the paper.
  2. They must NOT start writing during this time.
  3. Answer all questions in Section A, Section B and Section C.
  4. While answering questions in Sections A and B, working and reasoning may be indicated briefly.
  5. The intended marks for questions or parts of questions are given in brackets. [ ]
  6. All working, including rough work, should be done on the same sheet as the rest of the answer.

SECTION A - 7 MARKS
[1]1. (i)

The concept in Java to perform method overloading and method overriding is called ______.

inheritance

polymorphism

data abstraction

encapsulation

Concept: undefined - undefined
Chapter:
[1]1. (ii)

The interface in Java is a mechanism to achieve ______.

encapsulation

overriding

polymorphism

abstraction

Concept: undefined - undefined
Chapter:
[1]1. (iii)
System.out.println("Computer      Science"
lastlndexOf('E')):

The output of the statement given above will be:

8

7

−1

15

Concept: undefined - undefined
Chapter:
[1]1. (iv)

Write a statement in Java to extract the last four characters from the word "SIMPLICITY".

Concept: undefined - undefined
Chapter:
[1]1. (v)

Name a data structure that follows LIFO principle and one that follows FIFO principle.

Concept: undefined - undefined
Chapter:
Advertisements
[1]1. (vi)

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);}
Concept: undefined - undefined
Chapter:
[1]1. (vi)

State any one drawback of using recursive technique in a Java program.

Concept: undefined - undefined
Chapter:
SECTION B - 8 MARKS
[2]2.

Differentiate between finite recursion and infinite recursion.

Concept: undefined - undefined
Chapter:
[2]3.

Convert the following infix notation to prefix notation:

P * (Q − R) + S

Concept: undefined - undefined
Chapter:
[4]4.

Answer the following questions from the diagram of a Binary Tree given below:

  1. State the siblings of the nodes C and E. Also, state the predecessor node(s) and successor node(s) of node B.  [2]
  2. Write the in-order traversal of the left sub tree and pre-order traversal of the right sub tree.  [2]
Concept: undefined - undefined
Chapter:
Advertisements
SECTION C - 20 MARKS
Each program should be written in such a way that it clearly depicts the logic of the problem. This can be achieved by using mnemonic names and comments in the program. (Flowcharts and Algorithms are not required.) The programs must be written in Java.
[5]5. (i)

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.

Concept: undefined - undefined
Chapter:
OR
[5]5. (ii)

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.

Concept: undefined - undefined
Chapter:
[6]6. (i)

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.

Concept: undefined - undefined
Chapter:
OR
[6]6. (ii)

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.

Concept: undefined - undefined
Chapter:
[4]7.

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.

Concept: undefined - undefined
Chapter:
[5]8.

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.

Concept: undefined - undefined
Chapter:

Submit Question Paper

Help us maintain new question papers on Shaalaa.com, so we can continue to help students




only jpg, png and pdf files

CISCE previous year question papers Class 12 Computer Science (Theory) with solutions 2021 - 2022

     CISCE Class 12 question paper solution is key to score more marks in final exams. Students who have used our past year paper solution have significantly improved in speed and boosted their confidence to solve any question in the examination. Our CISCE Class 12 question paper 2022 serve as a catalyst to prepare for your Computer Science (Theory) board examination.
     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.
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×