Periyar University 2008 B.E Electronics
Sunday, 27 January 2013 03:35Web
Page 5 of 18
To obtain A-C, We will obtain 2's compliment of C and them add it with A,
That will provide us (A-C)
2's compliment of C=1's compliment of C+1
=11000101+1=11000110
A-C=11000101+11000110
=10001001
Now (A-C) U B is .OR. Logic operation on (A-C) and B
10001001 .OR. 00110011
The ans is = 10111011,
Whose decimal equivalent is 187.
30) A = 10010001
B = 01101010
C = 10010110
(AuB)nC =? [(A union B) intersection C =?]
31) A =0 0 0 0 one 1 one 1
B =0 0 one 1 0 0 one 1
C =0 one 0 one 0 one 0 1
( A U B ) n C obtain the 4th row, having the bit trend as an integer in an 8-bit computer, and express the ans in its decimal value.
Ans: 29
32) A, B and C are eight bit nos. They are as follows:
A one 1 0 one 1 0 one 1
B 0 one 1 one 1 0 one 0
C 0 one 1 0 one 1 0 1
obtain ( (A-B) u C )=?
Hint: 109 A-B is {A} - {A n B}
Ans: 0 one 1 one 1 one 1 one (DB)
33) If A, B and C are the mechanisms used separately to decrease the wastage of fuel by 30%, 20% and 10%. What will be the fuel economy if they were used combined.
Ans: 20%
34) In the class of 40 students, 30 speak Hindi and 20 speak English. What is the least possible number of students who speak both the languages?
(a) five (b) 20 (c) 15 (d) 10 (e) 30
35) In a two-dimensional array, X (9, 7), with every element occupying four bytes of memory, with the address of the 1st element X (1, 1) is 3000, obtain the address of
X (8, 5).
Sol: [HINT~ Formula=Base Add + Byte reqd {N (i-1) + (j-1)}
Where,
Base Add=3000;
Byte reqd=4;
N=no of columns in array=7;
i=8; j=5;
IN ROW MAJOR ORDER]
Ans: 3212
36) If the vertex (5, 7) is placed in the memory. 1st vertex (1, 1)’s address is 1245 and then address of (5, 7) is ----------
Earning: Approval pending. |