Code is copied!
CLASS 12 ISC - Java Question Paper 2023
Maximum Marks: 70
Time Allowed: Three hours
(Candidates are allowed additional 15 minutes for only reading the paper.)
(They must NOT start writing during this time).
Answer all questions in Part I (compulsory) and six questions from Part-II,
choosing two questions from Section-A, two from Section-B and
two from Section-C.
All working, including rough work, should be done on the same sheet as the
The intended marks for questions or parts of questions are given in brackets [ ]
PART I
(Attempt all questions)
Question 1
(i)
According to De Morgan's law (a + b +c’ )' will be equal to:
(a) a' + b' + c’
(b) a' + b'+c
(c) a'.b'.c'
(d) a'b'c
(ii)
The dual of (X'+ 1 ).(Y' + 0) = Y'
(a) X.0 + Y.1 = Y
(b) X'.1 + Y'.0 = Y'
(c) X'.0 + Y'.1 = Y'
(d) (X'+ 0) . (Y'+ 1) = Y'
(iii)
The reduced expression of the Boolean function F(P,Q) =P’ + PQ is:
(a) P' + Q
(b) P
(c) P'
(d) P+Q
(iv)
If (~p => ~q ) then its contra positive will be:
(a) p=>q
(b) q=>p
(c) ~q=>p
(d) ~p=>q
(v)
The keyword that allows multi-level inheritance in Java programming is:
(a) implements
(b) super
(c) extends
(d) this
Question 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.
(iii)
With reference to the code given below, answer the questions that follow along
with dry run / working.
boolean num(int x)
{
int a=1;
for (int c=x; c>0; c/=10)
a * = 10;
return (x * x % a) == x;
}
(a) What will the function num() return when the value of x=25?
(b) What is the method num() performing?
(iv)
The following function task(Q) is a part of some class. Assume ‘m’ and ‘n’ are positive integers, greater than 0. Answer the questions given below along with dry run / working.
int task(int m, int n)
{ if(m==n)
retum m;
else if(m>n)
return task(m-n, n);
else
retum task(m, n-m);
}
(a) What will the function task() return when the value of m=30 and n=45?
(b) What function does task() perform, apart from recursion?
PART II
SECTION - A
(Answer any two questions.)
Question 3
(i) Given the Boolean function F(A,B,C,D) = ∑(2, 3, 6, 7, 8, 10, 12, 14, 15).
(a) Reduce the above expression by using 4-variable Karnaugh map, showing
the various groups (i.e., octal, quads and pairs).
(b) Draw the logic gate diagram for the reduced expression. Assume that the
variables and their complements are available as inputs.
(ii) Given the Boolean function F(A,B,C,D) = π(0, 1, 2, 4,5, 8, 10, 15, 14, 15),
(a) Reduce the above expression by using 4-variable Karnaugh map, showing
the various groups (i.e., octal, quads and pairs).
(b) Draw the logic gate diagram for the reduced expression. Assume that the
variables and their complements are available as inputs
(i) A shopping mall allows customers to shop using, cash or credit card of any
nationalised bank. It awards bonus points to their customers on the basis of
criteria given below:
- The customer is an employee of the shopping mall and makes the
payment using a credit card
OR
- The customer shops items which carry bonus points and makes the
payment using a credit card with a shopping amount of less than
Rs 10,000/-
OR
- The customer is not an employee of the shopping mall and makes the
payment not through a credit card but in cash for the shopping amount
above Rs 10,000/-
The inputs are:
C - Payment through a credit card
A - Shopping amount is above Rs 10,000/-
E - The customer is an employee of the shopping mall
I - Item carries a bonus point
(In all the above cases, 1 indicates yes and 0 indicates no.)
Output: X [1 indicates purchased, 0 indicates not purchased for all cases]
Draw the truth table for the inputs and outputs given above and write the POS
expression for X (C, A, E, I).
(ii) Differentiate between half adder and full adder. Write the Boolean expression and draw the logic circuit diagram for the SUM and CARRY of a full adder.
(iii) Verify the following expression by using the truth table:
(A ⊙ B)' = (A ⊕ B)
(i) What is an encoder? How is it different from a decoder? Draw the logic circuit for a 4:1 multiplexer and explain its working.
(ii) From the logic diagram given below write the boolean expression for (1) and (2). Also, derive the boolean expression (F) and simplify it:
(iii) Convert the following cardinal expression to its canonical form:
F (P, Q, R) = π(0, 1, 3, 4)
SECTION B
(Attempt all questions from this Section.)
Question 6