Computer Science, asked by bushra64, 9 months ago


2. In which operation carry is obtained?
a) Subtraction
b) Addition
c) Multiplication
d) Both addition and subtraction
3. If A and B are the inputs of a half adder, the sum is given by
a) A AND B
b) A ORB
C) A XORB
d) A EX-NORB


please anyone can answer it is IT subject. please tell correct those who knoe they can tell.those who don't know they should no tell I don't know.​

Answers

Answered by syed2020ashaels
0

2.Addition Operation carry is obtained .

  • In addition, carry is obtained.

Rules of addition in Number system.

1 + 1 = 10 \\  (0 \: for \: answer \: and \: 1 \: for \: carry)

1 + 0 = 1 \\ 0 + 1 = 1

For example:

  \:  \:  \: 1 0 1  \\ +0 01  \\ = 1 1 0

In this example carry is obtained after 1st addition (i.e. 1 + 1 = 1 0).

  • In subtraction, borrow is obtained.

 Like, 0 – 1 = 1 (borrow 1)  \\  1 - 1 = 0 \\ 1 - 0 = 1

  • In Multiplication , it's simply multiply .

Like, 1 \times 1 = 1 \\ 1 \times 0 = 0 \\ 0 \times 1 = 0

Hence ,

Hence ,option (b) Addition is correct .

3.A half adder circuit is basically composed of an AND gate and an XOR gate.

Sum (s) = A B

Carry = A.B

  • A half adder is also known as an XOR gate because the XOR is applied to both inputs to produce the sum .
  • The half adder can only add two bits (a and b) and has nothing to do with the carry. If the input of the half adder has a carry, it will ignore it and only adds bits A and B.
  • It means that the binary addition process is not complete and hence it is called half adder.

Hence , option (c) A XOR B is correct .

Project code#SPJ2

Similar questions