868 Computer Science - Isc Specimen
868 Computer Science - Isc Specimen
(a) X+Y + 0
3 If A=1, B=0, C=0 and D=1, then the maxterm will be: [1]
(a) AB’C’D
(b) A’BCD’
(c) A+B’+C’+D
(d) A’+B+C+D’
4 The compliment of the Boolean expression F(P,Q,R) = (P + Q + R) is: [1]
(a) P’Q’R’
(b) P’ + Q’ + R’
(c) P + (Q’+R’)
(d) (P+Q) + R’
(a) Conjunction
(b) Implication
(c) Disjunction
(d) Negation
8 The combinational circuit which adds two binary bits is: [1]
(b) Decoder
(a) a'b’ + ab
(c) (a+b)’
(d) (a·b)’
11 If the input in a decoder is A’BC’D, then the decimal equivalent output will be: [2]
(a) 8
(b) 10
(c) 5
(d) 6
12 A matrix MAT[10][15] is stored in the memory in Row Major Wise with each element
requiring 2 bytes of storage. If the base address at MAT[1][2] is 2215, then the address [2]
of MAT[3][7] will be:
(a) 2285
(b) 2315
(c) 2319
13 With reference to the given proposition ~P => Q , answer the following questions:
(i) Q => ~P
(ii) Q => ~P
(iii) ~Q => ~P
(iv) ~P => ~Q
(b) the contra-positive of the proposition is: [1]
(i) ~P => Q
(ii) Q => P
(iii) ~Q => P
(iv) ~Q => P
14 The reduced expression for the Boolean expression F(X,Y,Z) = ∑(0,1,2,3,4,5,6,7) is: [2]
(b) 1
(c) 0
(a) 67
(b) 1+2
(c) 6+7
(d) 12
(a) 234+65
(b) 234A
(c) 299
(d) ERROR
17 What is the output of the statement given below?
[2]
System.out.print(‘A’+’1’+’C’);
(a) 65+1+66
(b) 10+1+67
(c) 181
(d) 65+49+67
18 The basic logic gate that represents the simplification of the Boolean expression
[2]
A.(A’+B). (A+B) is:
(a) OR gate
19 What is the conditional statement to check for the Non-boundary elements in a double
dimensional array of ‘M’ number of rows and ‘N’ number of columns? The row index [2]
is represented by ‘r’ and the column index is represented by ‘c’.
(a) Contradiction
(b) Contingency
(c) Tautology
(d) Implication
21 Reduce the given Boolean function F(A,B,C,D) = ∑(0,2,4,8,9,10,12,13) by using
4-variable Karnaugh map and answer the following questions:
(a) What will be the least number of groups and their types formed for reduction? [1]
(i) 6 pairs
(iv) 3 quads
(b) The reduced expression of the Boolean function given above is: [2]
(ii) (A+C’+D’).(B’+D’).(A+C’)
22 A school intends to select candidates for an Inter school competition as per the criteria
given below:
• The student has participated in an earlier competition and is very creative
Or
• The student is very creative and has excellent general awareness, but has not
participated in any competition earlier
Or
• The student has excellent general awareness and has won prize in an inter -house
competition
The inputs are:
Inputs
A Participated in a competition earlier
B Is very creative
C Won prize in an inter house competition
D Has excellent general awareness
( In all the above cases 1 indicates yes and 0 indicates no).
Output: X [ 1 indicates yes and 0 indicates no for all cases].
Draw the truth table for the inputs and outputs given above and answer the following
questions:
(a) The POS expression for X(A,B,C,D) will be: [2]
(b) The maximum input combinations for the above truth table will be: [1]
(i) 24
(ii) 16
(iii) 8
(iv) 4
(a) What will be the least number of groups and their types formed for reduction? [1]
(i) 6 pairs
(ii) 3 quads
(b) The reduced expression of the Boolean function given above is: [2]
(i) (B+C).(B+D).(A’+D)
(ii) BC + BD + A’D
(iv) (A+B’).(C’+D’).(B’+D’)
24
From the logic diagram given above, where A,B and C are inputs and F is the output,
answer the following questions:
(i) A.B
(ii) A’+B’
(iii) A+B’
(iv) A+B
(i) A+B.C’
(ii) ((A+B)’.C)’
(iii) ((A+B).C)’
(iv) (A+B).C
(ii) F= (A+B)’.(C+A+B)
26 With reference to the program code given below, answer the questions that follow:
void fun(int n)
{ int i,f,;
for( i=1,f=1;i<=n;i++,f*=i);
System.out.print(f);
}
(a) What is the output of the method fun() when the value of n=4? [2]
(i) 24
(ii) 72
(iii) 120
(iv) ERROR
(a) What will the method test() return when the value of n=9? [2]
(i) 1
(ii) true
(iii) 0
(iv) Error
28 With reference to the program code given below, answer the questions that follow:
void dimen(int n[ ][ ])
{ int p=0;
for (int i=0;i<n.length;i++)
for(int j=0;j<n[0].length;j++)
{ if(i==0 ||i==n.length-1 || j==0 || j==n[0].length-1)
p=p+n[i][j];
}
System.out.print(p);
}
(a) What will be the output of the method dimen() when the value of
n[ ][ ] ={{2,3,7},{1,5,9},{10,-3,8}} ? [2]
(i) 42
(ii) 33
(iii) 5
(iv) 37
(b) What is the method dimen( ) performing? [1]
29 With reference to the program code given below, answer the questions that follow:
What will be the output of the method single() when the value of
(a) [2]
x[] = {10,2,9,-6,5,6} ?
(i) 120
(ii) 45
(iii) 720
(iv) 18
(a) What will be the output of the method solve() when the value of a=8 and b=12? [2]
(i) 4
(ii) 96
(iii) 0
(iv) 24
31 The following program code checks if the positive integer ‘N’ is a palindrome number
by returning true or false. There are some places in the code marked as ?1?, ?2?, ?3?,
?4? and ?5? which are to be replaced by a statement/expression so that the code works
properly.
boolean Palindrome(int N)
{ int rev = ?1? ;
int num = N;
while (num>0)
{ int f = num/10;
int s = ?2? ;
int digit = num − ?3? ;
rev = ?4? + digit;
num /= ?5?;
}
if(rev == N)
return true;
else
return false;
}
Answer the following question:
(a) What is the statement or expression at ?1? [1]
(i) -1
(ii) 0
(iii) 10
(iv) 2
(i) s *10
(ii) f /10
(iii) rev
(iv) f *10
(i) s
(ii) rev
(iii) f
(iv) digit * 10
(i) s * 10
(iii) f
(iv) rev
(i) 1
(ii) 100
(iii) 10
(iv) rev
32 The following program code sorts a single dimensional array in ascending order using
Insertion Sort technique. There are some places in the code marked as ?1?, ?2?,
?3?, ?4? and ?5? which are to be replaced by a statement/expression so that the code
works properly.
(i) array.length()
(ii) array.length
(iii) length
(iv) -1
(i) j
(ii) array[j+1]
(iii) array[j]
(iv) 0
(i) key
(ii) array[j]
(iii) i+1
(iv) n
(d) What is the statement or expression at ?4? [1]
(i) j+1
(ii) key
(iii) array[j]
(iv) array[i]
(i) array[i+1]
(ii) i+1
(iii) j
(iv) array[i]