मराठी

Computer Science (Theory) Specimen Paper 2024-2025 ISC (Commerce) Class 12 Question Paper Solution

Advertisements
Computer Science (Theory) [Specimen Paper]
Marks: 70 CISCE
ISC (Commerce)
ISC (Science)

Academic Year: 2024-2025
Date: एप्रिल 2025
Advertisements
  • You are allowed additional 15 minutes for only reading the question paper.
  • You must NOT start writing during the reading time. 
  • This question paper has 12 printed pages.   
  • It is divided into two parts and has 11 questions in all. 
  • Part I is compulsory and has two questions. Answer all questions. 
  • Part II is divided into three sections: A, B and C. 
  • While attempting Multiple Choice Questions in Part I, you are required to write only ONE option as the answer. 
  • Each section in Part II has three questions. Any two questions have to be attempted from each section. 
  • The intended marks for questions are given in brackets [ ].

PART I – 20 MARKS (Answer all questions. While answering questions in this Part, indicate briefly your working and reasoning, wherever required.)
[10]1
[1]1.i

The compliment of the Boolean expression Aꞌ • (B • Cꞌ + Bꞌ • C).

Aꞌ • (B + C + Bꞌ + C)

A + (B + Cꞌ) • (B + Cꞌ)

A + (Bꞌ + C) • (B + Cꞌ)

Aꞌ • (Bꞌ + Cꞌ + Bꞌ • C)

Concept: undefined - undefined
Chapter: [0.01] Boolean Algebra
[1]1.ii | Given below are two statements marked Assertion and Reason. Read the two statements carefully and choose the correct option.

Assertion: Recursion utilises more memory as compared to iteration.

Reason: Time complexity of recursion is higher due to the overhead of maintaining the function call stack.

Both Assertion and Reason are true and Reason is the correct explanation for Assertion.

Both Assertion and Reason are true but Reason is not the correct explanation for Assertion.

Assertion is true and Reason is false.

Assertion is false and Reason is true.

Concept: undefined - undefined
Chapter: [0.11] Recursion
[1]1.iii

According to the Principle of duality, the Boolean equation (Aꞌ + B) • (1 + B) = Aꞌ + B will be equivalent to ______.

(A + Bꞌ) • (0 + B) = A + Bꞌ

(Aꞌ • B) + (0 • B) = Aꞌ • B

(Aꞌ • B) + (0 • B) = Aꞌ + B

(Aꞌ + B) • (0 + B) = Aꞌ + B

Concept: undefined - undefined
Chapter: [0.01] Boolean Algebra
[1]1.iv

Distributive law states that ______.

A + B • C = (A + B) • (A +C)

A + ( A • B) = A

A • (B + C) = (A • B) + (B • C)

A + B • C = A • B + A • C

Concept: undefined - undefined
Chapter: [0.01] Boolean Algebra
[1]1.v

The complement of the reduced expression of F(A,B) = ∑ (0,1,2,3) is ______.

1

A • B

0

Aꞌ + Bꞌ

Concept: undefined - undefined
Chapter: [0.01] Boolean Algebra
[1]1.vi

Study the given propositions and the statements marked Assertion and Reason that follow it. Choose the correct option on the basis of your analysis.

p = I am a triangle

q = I am a three-sided polygon

s1 = p → q

s2 = q → p

Assertion: s2 is converse of s1

Reason: Three-sided polygon must be a triangle.

Both Assertion and Reason are true and Reason is the correct explanation for Assertion.

Both Assertion and Reason are true but Reason is not the correct explanation for Assertion.

Assertion is true and Reason is false.

Assertion is false and Reason is true.

Concept: undefined - undefined
Chapter: [0.01] Boolean Algebra
[1]1.vii

Assertion: In Java, the String class is used to create and manipulate strings, and it is immutable.

Reason: Immutability ensures that once a String object is created, its value cannot be changed.

Both Assertion and Reason are true and Reason is the correct explanation for Assertion.

Both Assertion and Reason are true but Reason is not the correct explanation for Assertion.

Assertion is true and Reason is false.

Assertion is false and Reason is true.

Concept: undefined - undefined
Chapter: [0.1] Arrays, Strings
[1]1.viii

Consider the following statement written in class Circle where pi is its data member.

static final double pi = 3.142;

Which of the following statements are valid for pi?

  1. It contains a common value for all objects class Circle.
  2. Its value is non-changeable.
  3. At a time two access modifiers, static and final, cannot be applied to a single data member pi.

I and II

II and III

I and III

Only III

Concept: undefined - undefined
Chapter: [0.05] Objects
[1]1.ix

For Big O notation, state the difference between O(n) and O(n2 ).

Concept: undefined - undefined
Chapter: [0.14] Complexity and Big O Notation
[1]1.x

A full adder needs five gates and those are 3 AND gates, 1 OR gate and 1 XOR gate. When a full adder is constructed using 2 half adders, it also requires 5 gates. State the names along with the quantity those gates.

Concept: undefined - undefined
Chapter: [0.02] Computer Hardware
[10]2
Advertisements
[2]2.i

Convert the following infix notation to prefix form.

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

Concept: undefined - undefined
Chapter: [0.13] Data Structures
[2]2.ii

A matrix M[-6….10, 4…15] is stored in the memory, with each element requiring 4 bytes of storage. If the base address is 1025, find the address of M[4][8] when the matrix is stored in column major-wise.

Concept: undefined - undefined
Chapter: [0.1] Arrays, Strings
[3]2.iii

The following function getIt() is a part of some class. Assume x is a positive integer, f is the lower bound of arr[ ] and l is the upper bound of the arr[ ].

Answer the questions given below along with dry run/working.

public int getIt(int x,intarr[],int f,int l)
  {
   if(f>l)
     return-1;
   int m=(f+l)/2;
   if(arr[m]<x)
     return getIt(x,m+1,l);
   else if(arr[m]>x)
     return getIt(x,f,m-1);
   else
     return m;
}
  1. What will the function getIt( ) return if arr[ ] = {10,20,30,40,50} and x = 40?
  2. What is function getIt( ) performing apart from recursion?

Concept: undefined - undefined
Chapter: [0.1] Arrays, Strings
[3]2.iv

The following is a function of class Armstrong. This recursive function calculates and returns the sum of the cubes of all the digits of num, where num is an integer data member of the class Armstrong.

[A number is said to be Armstrong if the sum of the cubes of all its digits is equal to the original number].

There are some places in the code marked by ?1?, ?2?,?3? which may be replaced by a statement/expression so, that the function works properly.

public int sumOfPowers(int num) 
  {
     if(num == 0) 
        return ?1?
     int digit = ?2?;
        return(int)Math.pow(digit, 3) + ?3?;
}
  1. What is the expression or statement at ?1?
  2. What is the expression or statement at ?2?
  3. What is the expression or statement at ?3?
Concept: undefined - undefined
Chapter: [0.11] Recursion
PART II - 50 MARKS : Section-A (Answer any two questions.)
[10]3
[5]3.i

A shopping mall announces a special discount on all its products as a festival offer only to those who satisfy any one of the following conditions.

  • If he/she is an employee of the mall and has a service of more than 10 years.
                                     OR
  • A regular customer of the mall whose age is less than 65 years and should not be an employee of the mall.
                                     OR
  • If he/she is a senior citizen but not a regular customer of the mall.

The inputs are:

INPUTS  
E Employee of the mall
R Regular customer of the mall
S Service of the employee is more than 10 years
C Senior citizen of 65 years or above

(In all the above cases, 1 indicates yes and 0 indicates no.)

Output: X - Denotes eligible for discount [1 indicates YES and 0 indicates NO in all cases]

Draw the truth table for the inputs and outputs given above and write the SOP expression for X ( E, R, S, C ).

Concept: undefined - undefined
Chapter: [0.01] Boolean Algebra
[5]3.ii

Reduce the above expression X ( E, R, S, C ) by using 4-variable Karnaugh map, showing the various groups (i.e. octal, quads and pairs).

Draw the logic gate diagram for the reduced expression. Assume that the variables and their complements are available as inputs.

Concept: undefined - undefined
Chapter: [0.01] Boolean Algebra
[10]4
[5]4.i
[4]4.i.a

Reduce the Boolean function F(P,Q,R,S) = (P+Q+R+S) • (P+Q+R+Sꞌ) • (P+Q+Rꞌ+S) • (P+Qꞌ+R+S) • (P+Qꞌ+R+Sꞌ) • (P+Qꞌ+Rꞌ+S) • (P+Qꞌ+Rꞌ+Sꞌ) •(Pꞌ+Q+R+S) • (Pꞌ+Q+R+Sꞌ) by using 4-variable Karnaugh map, showing the various groups (i.e. octal, quads and pairs).

Concept: undefined - undefined
Chapter: [0.01] Boolean Algebra
[1]4.i.b

Draw the logic gate diagram for the reduced expression. Assume that the variables and their complements are available as inputs.

Concept: undefined - undefined
Chapter: [0.02] Computer Hardware
[5]4.ii

From the given logic diagram:

  1. Derive Boolean expression and draw the truth table for the derived expression
  2. If A=1, B=0 and C=1, then find the value of X.
Concept: undefined - undefined
Chapter: [0.01] Boolean Algebra
Advertisements
[10]5
[5]5.i

Draw the logic circuit to decode the following binary number (0001, 0101, 0111, 1000, 1010, 1100, 1110,1111) to its hexadecimal equivalents. Also, state the Hexadecimal equivalents of the given binary numbers.

Concept: undefined - undefined
Chapter: [0.02] Computer Hardware
[3]5.ii

Verify if the following proposition is valid using the truth table:

(X ∧ Y) =>Z = (Y => Z) ∧ (X => Y).

Concept: undefined - undefined
Chapter: [0.01] Boolean Algebra
[2]5.iii

Answer the following questions related to the below image:

  1. What is the output of the above gate if input A=0, B=1?
  2. What are the values of the inputs if output =1?
Concept: undefined - undefined
Chapter: [0.02] Computer Hardware
Section - B (Answer any two questions.) (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)
[10]6

Given are two strings, input string and a mask string that remove all the characters of the mask string from the original string.

Example: INPUT: ORIGINALSTRING: communication
    MASK STRING: mont
  OUTPUT: cuicai  

A class StringOp is defined as follows to perform above operation.

Some of the members of the class are given below:

Class name StringOp
Data members/instance variables:
str to store the original string
msk to store the mask string
nstr to store the resultant string
Methods / Member functions:
StringOp() default constructor to initialize the data member with legal initial value
void accept( ) to accept the original string str and the mask string msk in lower case
void form() to form the new string nstr after removal of characters present in mask from the original string
void display( ) to display the original string and the newly formed string nstr

Specify the class StringOp giving details of the constructor( ), void accept( ), void form() and void display( ). Define a main( ) function to create an object and call all the functions accordingly to enable the task.

Concept: undefined - undefined
Chapter: [0.1] Arrays, Strings
[10]7

A class Mixarray contains an array of integer elements along with its capacity (More than or equal to 3). Using the following description, form a new array of integers which will contain only the first 3 elements of the two different arrays one after another.

Example:

Array1: { 78, 90, 100, 45, 67 }

Array2: {10, 67, 200, 90 }

Resultant Array: { 78, 90, 100, 10, 67, 200}

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

Class name Mixarray
Data members/instance variables:
arr[] integer array
cap integer to store the capacity of the array
Member functions/methods:
Mixarray (int mm ) to initialize the capacity of the array cap=mm
void input( ) to accept the elements of the array
Mixarray mix(Mixarray P, Mixarray Q) returns the resultant array having the first 3 elements of the array of objects P and Q
void display( ) to display the array with an appropriate message.

Specify the class Mixarraygiving details of the constructor(int), void input( ), Mixarray mix(Mixarray,Mixarray) and void display( ). Define a main( ) function to create objects and call all the functions accordingly to enable the task.

Concept: undefined - undefined
Chapter: [0.1] Arrays, Strings
[10]8

A class LCM has been defined to find the Lowest Common Multiple of two integers.

Some of the data members and member functions are given below:

Class name LCM
Data members/instance variables:
n1 to store an integer number
n2 to store an integer number
large integer to store the largest from n1,n2
sm integer to store the smallest from n1,n2
l to store lcm of two numbers
Methods / Member functions:
LCM( ) default constructor to initialize data members with legal initial values
void accept() to accept n1 and n2
int getLCM() returns the lcm of n1 and n2 using the recursive technique
void display( ) to print the numbers n1, n2 and lcm

Specify the class LCM giving details of the constructor( ), void accept( ), int getLCM() and void display( ). Define a main ( ) function to create an object and call the member functions accordingly to enable the task.

Concept: undefined - undefined
Chapter: [0.11] Recursion
Section - C (Answer any two questions.) (Each program should be written in such a way that it clearly depicts the logic of the problem stepwise. This can be achieved by using comments in the program and mnemonic names or pseudo codes for algorithms. The programs must be written in Java and the algorithms must be written in general/standard form, wherever required/specified.) (Flowcharts are not required)
[5]9

Recycle is an entity which can hold at the most 100 integers. The chain enables the user to add and remove integers from both the ends i.e. front and rear.

Define a class ReCycle with the following details:

Class name ReCycle
Data members/instance variables:
ele[ ] the array to hold the integer elements
cap stores the maximum capacity of the array
front to point the index of the front
rear to point the index of the rear
Methods / Member functions:
ReCycle (int max) constructor to initialize the data cap = max, front = rear = 0 and to create the integer array.
void pushfront(int v) to add integers from the front index if possible else display the message(“full from front”).
int popfront( ) to remove the return elements from front. If array is empty then return-999
void pushrear(int v) to add integers from the front index if possible else display the message(“full from rear”).
int poprear( ) to remove and return elements from rear. If the array is empty then return-999.
  1. Specify the class ReCycle giving details of the functions void pushfront(int) and int poprear( ). Assume that the other functions have been defined.
    The main( ) function and algorithm need NOT be written.
  2. Name the entity described above and state its principle.
Concept: undefined - undefined
Chapter: [0.13] Data Structures
[5]10

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 book can be retained for 7 days without any fine. If the book is returned after 7 days, a fine will also be charged for the excess days as per the chart given below:

Number of excess days Fine per day (Rs.)
1 to 5 2.00
6 to 10 3.00
Above 10 5.00

A super class Library has been defined. Define a sub class Compute to calculate the fine and the total amount. The details of the members of both the classes are given below:

Class name Library
Data members/instance variables:
name to store the name of the book
author to store the author of the book
p to store the price of the book (in decimals)
Methods / Member functions:
Library(... ) parameterized constructor to assign values to the data members
void show( ) displays the book details
Class name Compute
Data members/instance variables:
d number of days taken in returning the book
f to store the fine (in decimals)
Methods / Member functions:
Compute(...) parameterized constructor to assign values to the data members of both the classes
void fine( ) calculates the fine for the excess days as given in the table above
void show() displays the book details along with the number of days, fine and the total amount to be paid. Total amount is (2% of price of book * total no of days) + fine

Assume that the super class Library has been defined. Using the concepts of Inheritance, specify the class Compute giving the details of constructor, void fine ( ) and void show ( ) functions.

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

Concept: undefined - undefined
Chapter:
[5]11
[2]11.i

A linked list is formed from the objects of the class Node. The class structure of the Node is given below:

class Node
{
      int n;
      Node link;
}

Write an Algorithm OR a Method to search for a number from an existing linked list. The method declaration is as follows:

void FindNode( Node str, int b)

Concept: undefined - undefined
Chapter: [0.13] Data Structures
[3]11.ii

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

  1. Name the root of the left sub tree and its siblings.
  2. State the size and depth of the right sub tree.
  3. Write the in-order traversal of the above tree structure.
Concept: undefined - undefined
Chapter: [0.13] Data Structures

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 2024 - 2025

     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 2025 serve as a catalyst to prepare for your Computer Science (Theory) board examination.
     Previous year Question paper for CISCE Class 12 -2025 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×