ISC Computer Science Semester-2 Solved Specimen Paper 2022 Class-12

ISC Computer Science Semester-2 Solved Specimen / Model / Sample Paper 2022 Class-12 for practice. Step by step solutions of ISC Class-12 specimen model sample paper. During solutions of semester-2 Computer Science specimen paper we explain with figure , graph, table whenever necessary so that student can achieve their goal in next upcoming exam of council .

ISC Computer Science Semester-2 Solved Specimen / Model / Sample Paper 2022 Class-12

Board ISC
Class  12th (XII)
Subject Computer Science
Topic Semester-2 ISC Specimen Paper Solved
Syllabus  on bifurcated syllabus (after reduction)
session 2021-22
Question Type  Descriptive Type  (as prescribe by council)
Total question Total-8 with all parts (Sec A, B and C)
Max mark 35

Warning :- before viewing solution view Question Paper

Solved Class-12 for practice Set of Computer Science Semester-2 ISC Specimen Model Sample Paper


SECTION A -7 MARKS

ISC Computer Science Semester-2 Solved Specimen Paper 2022 Class-12

Question 1:

(i) The keyword used by a class to acquire the properties of an interface is:

(a) import

(b) implements

(c) extends

(d) include

Answer : (b) implements

(ii) The ability of an object to take many forms is known as:

(a) inheritance

(b) data abstraction

(c) overriding

(d) polymorphism

Answer : (d) polymorphism

(iii) int Toy(int n)

{ return (n<=0)? 1: n%10 + Toy(n/10); }

With reference to the program code given above, what will the function Toy() return when the value of n=56 ?

(a) 65

(b) 12

(c) 651

(d) 11

Answer : (d) 12

Hint: when the base executes i.e. when n=0 then it returns 1 not 0 so 1+5+6=12 not 11.

(iv) Write the statement in Java to extract the word “MISS” from the word “SUBMISSION”.

(v) State the principle by which the stack data structure works.

(vi) What is the output of the statement given below?

System.out.print(“FAN” + (“AUTOMATIC”.charAt(5) ) );

(vii) Give one reason, why iteration is better than recursion.


SECTION B – 8 MARKS

Semester-2 Solved Specimen Paper 2022 Class-12 ISC Computer Science 

Question 2:

Differentiate between direct recursion and indirect recursion.

Question 3:

Convert the following infix notation to postfix notation:

A * (B + C / D ) – E / F

Question 4:

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

computer science samester 2 class 12

(i) State the degree of the nodes C and G. Also, state the level of these nodes when the root is at level 0.

(ii) Write the pre order and post order traversal of the above tree structure.


SECTION C – 20 MARKS

Semester-2 Solved Specimen Paper 2022 Class-12 ISC Computer Science 

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.

Question 5:

(i) Design a class Check which checks whether a word is a palindrome or not.

(Palindrome words are those which spell the same from either ends).

Example: MADAM, LEVEL etc.

The details of the members of the class are given below:

computer science samester 2 class 12 img 2
Specify the class Check giving details of the constructor, void acceptword( ), boolean palindrome( ) and void display( ). Define the main( ) function to create
an object and call the functions accordingly to enable the task.

(ii) Design a class Toggle which toggles a word by converting all upper case alphabets to lower case and vice versa.

Example: The word “mOTivATe” becomes “MotIVatE”

The details of the members of the class are given below:

computer science samester 2 class 12 img 3

Specify the class Toggle giving details of the constructor, void readword( ), void toggle( ) and void display( ). Define the main( ) function to create an
object and call the functions accordingly to enable the task.

Question 6:

(i) A class Fibo has been defined to generate the Fibonacci series 0, 1, 1, 2, 3, 5, 8, 13,……. (Fibonacci series are those in which the sum of the previous two
terms is equal to the next term).

Some of the members of the class are given below:

computer science samester 2 class 12 img 4

Specify the class Fibo, giving details of the Constructor, void read( ), int fibo(int), and void display( ). Define the main() function to create an object and
call the functions accordingly to enable the task.

OR

(ii) A class Gcd has been defined to find the Greatest Common Divisor of two integer numbers. Some of the members of the class are given below:

computer science samester 2 class 12 img 5

Specify the class Gcd, giving details of the Constructor, void accept( ), int gcd(int,int), and void display( ). Define the main() function to create an object and call the functions accordingly to enable the task.

Question 7:

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 details of the items purchased with the new rate and update the stock. Some of the members of both the classes are given below:

computer science samester 2 class 12 img 6

Assume that the super class Godown has been defined. Using the concept of inheritance, specify the class Update giving details of the constructor, void update ( ) and void display( ).

The super class, main function and algorithm need NOT be written.

Question 8:

A Queue is a linear data structure in which the operations are performed based on FIFO (First In First Out).

Define a class Queue with the following details:

computer science samester 2 class 12 img 7

Specify the class Queue giving the details of void add_dat(int) and int pop_dat( ). Assume that the other functions have been defined.

The main( ) function and algorithm need NOT be written.

Computer Science Specimen Paper Solved Semester-2  PDF Class 12 ISC


Return to:-  Specimen Paper Semester-2 ISC 2022 Class-12 Descriptive Type

thanks

Please share with your ICSE friends

You might also like
Show Comments (6)