Assuming the computer is a 4-bit computer, what result is produced after subtraction of 3 from 5 using the 2's complement representation?
- A. 0101
- B. 10010 ✓
- C. 1101
- D. 11001
Correct Answer: B. 10010
Explanation
In 4-bit binary, 5 is 0101 and 3 is 0011. Subtracting 3 means adding the 2's complement of 3 (which is 1101). The addition 0101 + 1101 = 10010. The ALU produces this raw result before any carry bits are discarded.
Related questions on Computer Science
- Which of the following statements, as per the Information Technology Act, 2000, is/are correct? 1. This Act provides that electronic signatu...
- Which language uses the symbolic representation of machine codes needed to program a particular processor or processor family?
- What are the uses of software ports? 1. Connect client computer to server 2. Connect external devices to computer 3. Identify different serv...
- Which one of the following is <strong>NOT</strong> a logical operator?
- Which among the following are the purposes of deploying a Firewall? 1. Examine each packet arriving from Internet 2. Prevent unauthorised ac...