
CS CLASS 12 ICSE TEST 2
Quiz by Deepika Upadhyay
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Consider the below statements and determine the output:
String s1 =”MOON” ;
String s2 = new String(“Moon”) ;s1=s2 ; System.out.println(s1==s2);
Derive an correct SOP expression for sum and carry for a half Adder.
1. AB’ + AB’ , AB’
Identify the number of NOR gates required for the given expression below in NOR-to-NOR logic network:
(A’ + B’ +C’) (A +B’+ C) (A +B +C’)
Which kind of expression is derived inNOR-to-NOR logic
Answer the given questions below based on the circuit:
Give the output if, X=1 and Y=0

Answer the given questions below based on the circuit
Name the basic gate represented by the above diagram.

Find the complement of the given expression:
F = (A+ B’) (B + CD)
A+(B+C)=(A+B)+C is
The dual of (A+1)(B+0)(A'+B')
If A=0, B=1, C=0 and D=1,then the minterm will be:
Select the complement of A+(B’C+ABC)
The proposition operator represents:
Decoders are used for:
EXOR gate is formed by the combinations of:
The combinational circuit which adds three binarybits is:
The Octet group in a Karnaugh’s map eliminates:
The logical XNOR operation can be writtenas
If the input in a Encoder is A’B'C’D, then thedecimal equivalent output will be:
A matrix ARR[-4….. 6, 3 ……. 8] is stored in the memory with each element requiring 4 bytes of storage .If the base address is 1430, find the address of ARR[3] [6] when the matrix is stored in Row Major Wise.
3. With reference to the given proposition ~P => ~Q , answer the following questions:
1 the converse of the proposition is:
With reference to the given proposition ~P => ~Q , answer the following questions:
The Inverse of the proposition is:
The reduce expression for the Boolean expression F(A,B,C) = ∑(0,1,2,4,5,6) is
15. Whatis the output of the code given below? [2] intsum = 2;
for(inti = 2; i <= 5; i++ )
{
for(int j = 7; j <= 9;j++ )
{
sum += ( i * j);
}
}
System.out.println("sum = " + sum);
What is the output of the statement given below?
System.out.println(Integer.parseInt("145"+'Z');
What is the output of the statement given below?
System.out.println('5'+'D'+'B');
Select the canonical SOP of the expression A+B
P: We should be honest. Q:We should be dedicated. R: We should be overconfident.
Then “We should be honest or dedicated but not over confident” is expressed by
1. F(A, B, C, D) = Σ (0, 2, 4, 8, 9, 10, 12, 13) Reduce the above expression by using a 4-variable KarnaughMap and answerthe following questions.
What will be the least number of groups and their types formed for reduction?
What is the conditional statement to check for the sum of right diagonal elements in a double
dimensional array of ‘M’ number of rows and ‘M’ number of columns? The row index is represented by
‘r’ and the column index is represented by ‘c’
1. F(A, B, C, D) = Σ (0, 2, 4, 8, 9, 10, 12, 13) Reduce the above expression by using a 4-variable KarnaughMap and answerthe following questions.
The reduced expression of the Boolean functiongiven above is:
From the logic diagram given above, where A,B and C are inputs and F is the output, answer the following questions:
The expression at (1) is:

From the logic diagram given above, where A,B and C are inputs and F is the output, answer the following questions:
The expression at (2) is:

From the logic diagram given above, where A,B and C are inputs and F is the output, answer the following questions:
The final expression F(A,B,C)is:

Given the Boolean expression A’B’+AB(C+D)
Select the complement of
The expression of the De morgan’s law is
With reference to the programcode given below,answer the questions that follow: static boolean isSomething(int num) {
boolean flag = true;
for (int i = 2; i <= (num / 2); i++) { if (num % i == 0) {
flag = false; break;
}
}
return flag;
}
What is the outputof the method isSomething() when the value of n=4?
With reference to the programcode given below,answer the questions that follow: static boolean isSomething(int num) {
boolean flag = true;
for (int i = 2; i <= (num / 2); i++) { if (num % i == 0) {
flag = false; break;
}
}
return flag;
}
What is the method is Something() performing?
1. With reference to the program code given below,answer the questions that follow: public static int fun(int number){
int renum = 0;
while (number> 0) {
rnum = (renum* 10) + number % 10; number/= 10;
}
return renum;
}
What is the output of the method fun() when the value of n=234?
1. With reference to the program code given below,answer the questions that follow: public static int fun(int number){
int renum = 0;
while (number> 0) {
rnum = (renum* 10) + number % 10; number/= 10;
}
return renum;
}
What is the methodfun() performing?
1. With reference to the program code given below, answer the questions that follow: public static void list(int SNum){
int[] num = new int[SNum]; num[0] = 0;
num[1] = 1;
for (int i = 2; i < SNum; i++) { num[i]= num[i - 1] + num[i - 2];
}
for (int i = 0; i < SNum; i++) { System.out.print(num[i] + " ");
}
}
What is the outputof the method list() when the value of n=6?