Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new

 Categories >> Everything Else >> Everything Else AllOther

 Energy Oil Gas Interview Questions (28) Teaching Interview Questions (150) Funny Interview Questions Interview Questions (83) Everything Else AllOther Interview Questions (1454)
Question
```	Perform the following arithmetic operations using 8-
bit binary signed 1’s and signed 2’s complement notation
for integers. (Please note that the numbers given here are
in decimal notation)         (3 Marks)

i) Add – 52 and 68
ii) Subtract 66 from  – 62

Please indicate the overflow if it is occurs.
```
Question Submitted By :: Everything-Else-AllOther
I also faced this Question!!     Answer Posted By

# 1
LCM OF 52 > 110100
LCM OF 68 > 1000100

-52 ( 8 BIT) > 10110100 (Left most bit shows sign)
68 ( 8 BIT) > 01000100

-52 + 68> 1000100 +
0110100
----------
110000 = +16
---------------

 Is This Answer Correct ? 12 Yes 3 No
Shibin.m