search
Log In
0 votes
1.6k views

What is the result of the following expression?

(1 & 2) + (3 & 4)

  1. 1
  2. 3
  3. 2
  4. 0
in Programming and DS
recategorized by
1.6k views

1 Answer

3 votes
 
Best answer

$\frac{\begin{matrix} &0 &0 &1 & (1)\\ \And& 0 &1 & 0 & (2) \end{matrix}}{\begin{matrix} \ \ \ \ & 0 &0 & 0 & (0) \end{matrix}}$               $\frac{\begin{matrix} &0 &1 &1 & (3)\\ \And& 1 &0 & 0 & (4) \end{matrix}}{\begin{matrix} \ \ \ \ & 0 &0 & 0 & (0) \end{matrix}}$

$\frac{\begin{matrix} &0 &0 &0 & (0)\\ + & 0 &0 & 0 & (0) \end{matrix}}{\begin{matrix} \ \ \ \ & 0 &0 & 0 & (0) \end{matrix}}$

( 1 & 2 )=0                      ( 3 & 4 )=0

( 1 & 2 )+( 3 & 4 )=0

Hence,Option(D)0 is the correct choice.


selected by
0
@LeenSharma,I hope the above operation is of bitwise operator. :)
Answer:

Related questions

0 votes
1 answer
1
847 views
The statement print f (" % d", 10 ? 0 ? 5 : 1 : 12); will print $10$ $0$ $12$ $1$
asked Sep 15, 2016 in Programming and DS makhdoom ghaya 847 views
2 votes
2 answers
2
1.4k views
Given a Relation POSITION (Posting-No, Skill), then the query to retrieve all distinct pairs of posting-nos. requiring skill is Select p.posting-No, p.posting-No from position p where p.skill=p.skill and p.posting-No < p.posting-No Select p$_1$.posting-No, p$_2$.posting-No from ... posting-No from position p$_1$, position p$_2$ where p$_1$.skill=p$_2$.skill and p$_1$.posting.No = p$_2$.posting-No
asked Jul 11, 2016 in Databases jothee 1.4k views
3 votes
2 answers
3
3.4k views
Identify the operation which is commutative but not associative? OR NOR EX-OR NAND
asked Jul 11, 2016 in Digital Logic jothee 3.4k views
3 votes
1 answer
4
942 views
Match the following: a. TTL 1. High fan out b. ECL 2. Low propagation delay c. CMOS 3. High power dissipation a b c A 3 2 1 B 1 2 3 C 1 3 2 D 3 1 2
asked Jul 11, 2016 in Digital Logic jothee 942 views
...