English

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

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

Academic Year: 2024-2025
Date & Time: 24th March 2025, 2:00 pm
Duration: 3h
Advertisements

Instructions to Candidates

  1. You are allowed an additional fifteen minutes for only reading the question paper.
  2. You must NOT start writing during the reading time.
  3. This question paper has 15 printed pages and one blank page.
  4. It is divided into two parts: Part I and Part II.
  5. It has 11 questions in all.
  6. Part 1 is compulsory and has two questions.
  7. While attempting Multiple Choice Questions in Part I, you are required to write only ONE option as the answer.
  8. Part II is divided into three sections: A, B and C.
  9. Each section in Part II has three questions. Any two questions have to be attempted from each section.
  10. 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.
[1]1. (i)

The complement of the Boolean expression (A • B') + (B' • C) is ______.

(A + B) • (B' + C)

(A' • B) + (B • C')

(A' + B) • (B + C')

(A • B') + (B • C')

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

Assertion: The expression ~ (X ∨ Y) is logically equivalent to (~X ∧ ~Y)

Reason: The commutative property of logical operators states that the order of the operands does not change the result of a binary operation.

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.

Both Assertion and Reason are false.

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

According to the Principle of Duality, the Boolean equation (1 + Y) • (X + Y) = Y + X' will be equivalent to ______.

(1 + Y') • (X' + Y') = Y' + X

(0 • Y) + (X • Y) = Y • X'

(0 + Y) • (X + Y) = Y + X'

(1 • Y) + (X • Y) = Y • X'

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

The Associative Law states that ______.

A • B = B • A

A = B = B + A

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

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

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

Consider the following code statement:

public class Person
{ int age;
  public Person (int age)
   {
    this.age = age;
   }
}

Which of the following statements are valid for the given code?

  1. The keyword this in the constructor refers to the current instance of the class.
  2. The keyword this differentiates between the instance variable age and the parameter age.
  3. The keyword this can be used only in constructors.

Only I and II

Only II and III

Only I and III

Only III

Concept: undefined - undefined
Chapter:
[1]1. (vi) | Given below are two statements marked, Assertion and Reason. Read the two statements carefully and choose the correct option.

Consider the following code statement:

public class Person
{ int age;
  public Person (int age)
   {
    this.age = age;
   }
}

Which of the following statements are valid for the given code?

  1. The keyword this in the constructor refers to the current instance of the class.
  2. The keyword this differentiates between the instance variable age and the parameter age.
  3. The keyword this can be used only in constructors.

Only I and II

Only II and III

Only I and III

Only III

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

The canonical expression of F(P, Q, R) = π (2, 5, 7) is ______.

(P + Q' + R) • (P' + Q + R') • (P' + Q' + R')

(P • Q' • R) + (P' • Q • R') + (P' • Q' • R')

(P' + Q + R') • (P + Q' + R) • (P + Q + R)

(P' • Q • R') + (P • Q' • R) + (P • Q • R)

Concept: undefined - undefined
Chapter:
Study the given propositions and the statements marked, Assertion and Reason that follow it. Choose the correct option on the basis of your analysis.
[1]1. (viii)

P - It is a holiday

Q - It is a Sunday

Assertion: If it is not a Sunday, then it is not a holiday. (Q' ⇒ P')

Reason: Inverse is formed when antecedent and consequent are interchanged.

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.

Both Assertion and Reason are false.

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

For the given code segment, write Big O notation for worst case complexity.

for (int i=1; i<=P; i++)
 { Statements }
   for (int j=1; j<=P; ++j)
     for (int k=1; k<=Q; k++)
         { Statements }
Concept: undefined - undefined
Chapter:
[1]1. (x)

Write the minterms in canonical form for the Boolean Function X (A, B), from the truth table given below:

A B X
0 0 1
0 1 0
1 0 0
1 1 1
Concept: undefined - undefined
Chapter:
[2]2. (i)

Convert the following infix notation to postfix form.

(A − B / C) + (D * E / F) * G

Concept: undefined - undefined
Chapter:
Advertisements
[2]2. (ii)

A matrix M[–1...10, 4....13] is stored in the memory with each element requiring 2 bytes of storage. If the base address is 1200, find the address of M[2][7] when the matrix is stored Row Major Wise.

Concept: undefined - undefined
Chapter:
[2]2. (iii) (a)

The following function int solve() is a part of some class. Assume ‘m’ and ‘n’ are positive integers. Answer the question given below with dry run/working.

int solve(int m, int n)
  {
    int k=1;
    if(m<0)
      return −k;
    else if(m==0)
      return m;
    else
      return k+(solve(m−n, n+2));
}

What will the function solve() return if:

  1. m = 16, n = 1
  2. m = 9, n = 1
Concept: undefined - undefined
Chapter:
[1]2. (iii) (b)

The following function int solve() is a part of some class. Assume ‘m’ and ‘n’ are positive integers. Answer the question given below with dry run/working.

int solve(int m, int n)
  {
    int k=1;
    if(m<0)
      return −k;
    else if(m==0)
      return m;
    else
      return k+(solve(m−n, n+2));
}

What is the function solve() performing apart from recursion?

Concept: undefined - undefined
Chapter:
[3]2. (iv)

The following function duck () is a part of some class which is used to check if a given number is a duck number or not. 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.

A number is said to be Duck if the digit zero (0) is present in it.

boolean duck(int a)
{ int f=−1;
  if(a==0)
    return true;
  for(int i=a; i!=0;?1?)
{ int c = i%10;
  if(c==?2?)
    { f=1; break; }
}
return (f==?3?)? false:true;
}
  1. What is the expression or statement at ?1?  [1]
  2. What is the expression or statement at ?2?  [1]
  3. What is the expression or statement at ?3?  [1]
Concept: undefined - undefined
Chapter:
PART II - 50 MARKS SECTION - A
Answer six questions in this part, choosing two questions from Section A, two from Section B and two from Section C.
[5]3. (i)

A superhero is allowed access to a secure Avengers facility if he/she meets any of the following criteria:

  • The superhero has Avengers’ membership and possesses a high-security clearance badge
                                              OR
  • The superhero does not have Avengers membership but holds a special permit issued by S.H.I.E.L.D. along with a high-security clearance badge 
                                              OR 
  • The superhero is not a recognised ally but holds a special permit issued by S.H.I.E.L.D. along with a high-security clearance badge

The inputs are:

INPUTS  
A Superhero has Avengers membership.
S Superhero holds a special permit issued by S.H.I.E.L.D.
C Superhero possesses a high-security clearance badge
L Superhero is a recognised ally

(In all the above cases, 1 indicates YES and 0 indicates NO) 

Output: X - Denotes allowed access [1 indicates YES and 0 indicates NO in all cases]

Draw the truth table for the inputs and outputs given above. Write the POS expression for X (A, S, C, L).

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

Reduce the above expression X (A, S, C, L) by using 4-variable Karnaugh map, showing the various groups (i.e., octal, quads and pairs). Draw the logic gate diagram using NOR gates only for the reduced expression. Assume that the variables and their complements are available as inputs.

Concept: undefined - undefined
Chapter:
[4]4. (i) (a)

Reduce the Boolean function F(P, Q, R, S) = ∑(0, 1, 2, 5, 7, 8, 9, 10, 13, 15) by using 4-variable Karnaugh map, showing the various groups (i.e., octal, quads and pairs).

Concept: undefined - undefined
Chapter:
[1]4. (i) (b)

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

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

From the logic gate diagram given below:

  1. Derive Boolean expression for (1), (2) and R. Reduce the derived expression.  [4]
  2. Name the logic gate that represents the reduced expression.  [1]
Concept: undefined - undefined
Chapter:
[1]5. (i) (a)

What is an encoder?

Concept: undefined - undefined
Chapter: [2] Computer Hardware
[3]5. (i) (b)

Draw the logic gate diagram for an octal to binary encoder.

Concept: undefined - undefined
Chapter:
Advertisements
[1]5. (i) (c)

State one application of a decoder.

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

By using truth table, verify if the following proposition is valid or not.

(~X ⇒ Y) ∧ X = (X ∧ ~Y) ∨ (X ∧ Y)

Concept: undefined - undefined
Chapter:
[2]5. (iii)

Study the logic gate diagram given below and answer the questions that follow:

What will be the output of the above gate when:

  1. A = 1, B = 0  [1]
  2. A = 1, B = 1  [1]
Concept: undefined - undefined
Chapter:
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.) The programs must be written in Java.
[10]6.

A class Perni has been defined to accept a positive integer in binary number system from the user and display if it is a Pernicious number or not.
[A pernicious number is a binary number that has minimum of two digits and has prime number of 1’s in it.]

Examples:

  • 101 is a pernicious number as the number of 1’s in 101 = 2 and 2 is prime number.
  • 10110 is a pernicious number as the number of 1’s in 10110 = 3 and 3 is prime number.
  • 1111 is a NOT a pernicious number as the number of 1’s in 1111 = 4 and 4 is NOT a prime number.

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

Class name Perni
Data member/instance varibale:  
num: to store a binary number
Methods/Member functions:  
Perni( ): constructor to initialise the data member with 0
void accept( ): to accept a binary number (containing 0’s and 1’s only)
int countOne(int k): to count and return the number of 1’s in ‘k’ using recursive technique
void check( ): to check whether the given number is a pernicious number by invoking the function countOne( ) and to display an appropriate message

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

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

Design a class Colsum to check if the sum of elements in each corresponding column of two matrices is equal or not. Assume that the two matrices have the same dimensions.
Example:

Input: 

MATRIX A       MATRIX B
2 3 1         7 4 2
7 5 6     1 3 1
1 4 2     2 5 6

Output: Sum of corresponding columns is equal.

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

Class name: Colsum
Data members/instance variables:  
mat[] []: to store the integer array elements
m: to store the number of rows
n: to store the number of columns
Member functions/methods:  
Colsum(int mm, int nn): parameterised constructor to initialise the data members m = mm and n = nn
void readArray( ): to accept the elements into the array
boolean check(Colsum A, Colsum B): to check if the sum of elements in each column of the objects A and B is equal and return true otherwise, return false
void print( ): to display the elements into the array

Specify the class Colsum giving details of the constructor(int, int), void readArray( ), boolean check(Colsum, Colsum), and void print( ). Define the main() function to create objects and call the functions accordingly to enable the task.

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

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 number of characters, then the middle letter remains at its own position.
A heterogram is a word where no letter appears more than once.

Example 1: INPUT : BETTER
                   OUTPUT: TERBET

Example 2: INPUT : NEVER
                   OUTPUT: ERVNE

Example 3: INPUT : THAN
                   OUTPUT: HETEROGRAM

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

Class name: Flipgram
Data member/instance variable:  
word: to store a word
Methods/member functions:  
Flipgram(String s): parameterised constructor to assign word = s
boolean ishetero( ): to return true if word is a heterogram else return false
String flip ( ): to interchange the left and right sides of a non-heterogram word and return the resultant word
void display ( ): to print the flipped word for a non-heterogram word by invoking the method flip( ). An appropriate message should be printed for a heterogram word

Specify the class Flipgram giving the details of the constructor(String), boolean ishetero( ), String flip( ) and void display( ). Define a main( ) function to create an object and call the functions accordingly to enable the task.

Concept: undefined - undefined
Chapter:
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.)
[4]9. (i)

A circular queue is a linear data structure that allows data insertion at the rear and removal from the front, with the rear end connected to the front end forming a circular arrangement.

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

Class name: CirQueue
Data members/instance variables:  
Q[ ]: array to hold integer values
cap: maximum capacity of the circular queue
front: to point the index of the front
rear: to point the index of the rear
Methods/Member functions:  
CirQueue(int n): constructor to initialise cap = n, front = 0 and rear = 0
void pushi(int v): to add integers from the rear index if possible else display the message "QUEUE IS FULL"
int remove( ); to remove and return the integer from front if any, else return −999
void print( ): to display the elements of the circular queue in the order of front to rear

Specify the class CirQueue giving the details of the functions void push(int) and int remove( ). Assume that the other functions have been defined.
The main( ) function and algorithm need NOT be written.

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

State one application of a circular queue.

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

A superclass Flight has been defined to store the details of a flight. Define a subclass Passenger to calculate the fare for a passenger.

The details of the members of both the classes are given below:

Class name: Flight
Data members/instance variables:  
flightno: to store the flight number in string
dep_time: to store the departure time in string
arr_time: to store the arrival time in string
basefare: to store the base fare in decimal
Methods/Member functions:  
Flight(...): parameterised constructor to assign values to the data members
void show( ): to display the flight details
Class name Passenger
Data members/instance variables:  
id: to store the ID of the passenger
name: to store the name of the passenger
tax: to store the tax to be paid in decimal
tot: to store the total amount to be paid in decimal
Methods/Member functions:  
Passenger(...): parameterised constructor to assign values to the data members of both the classes
void cal( ): to calculate the tax as 5% of base fare and total amount (base fare + tax)
void show( ): to display the flight details along with the passenger details and total amount to be paid

Assume that the super class Flight has been defined. Using the concepts of Inheritance, specify the class Passenger giving the details of constructor(...), void cal( ) and void show().

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

Concept: undefined - undefined
Chapter:
[2]11. (i)

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

class Cell
{
    char m;
    Cell right;
}

Write an Algorithm OR a Method to print the sum of the ASCII values of the lower case alphabets present in the linked list. 

The method declaration is as follows:

void lowercase(Cell str)

Concept: undefined - undefined
Chapter:
[3]11. (ii)

Answer the following questions based on the Binary Tree given below:

  1. Write the in-order traversal of the right subtree.  [1]
  2. State the depth of the entire binary tree and depth of node E.  [1]
  3. Name the external nodes of the left subtree and internal nodes of the right subtree.  [1]
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 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×