1,098 views
0 votes
0 votes
Find the 2's complement pattern for – 113?
(1) 0001111
(2) 00001111
(3) 10001111
(4) 1110001

Correct Answer: 3    Status: unattempted

2 Answers

3 votes
3 votes

-113;

binary of 113 = 1110001

2's comp of any binary number: (go from right to left)

rule 1: if any 0 occurs, ignore it.

rule 2: first 1, ignore it.

rule 3: complement every digit.

2's comp of 1110001 = 000111(first rule not applied, because there is no 0's)

113 = 0001111 (in 2's comp)

-113 = 10001111 (1 in mbs for -ve)

0 votes
0 votes
for 2's complement ..

start reading from right to left ...

>if u get 0 ignore it untill u get single 1

>when u get 1 just ignore it

>after that change 1>0 and 0>1

you will get 2's complement

and is option -1

Related questions


Deprecated: Implicit conversion from float-string "1666610789.897" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1666610789.897" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1666610789.897" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1666610789.897" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1544939386.883" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1544939386.883" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1544939386.883" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1544939386.883" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1539499210.930" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1539499210.930" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1539499210.930" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1539499210.930" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1530966823.356" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1530966823.356" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1530966823.356" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1530966823.356" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
518
views
1 answers
0 votes
Mayank Joshi asked Dec 16, 2018
518 views
P is a 16-bit signed integer. The 2’s complement representation of P is $(E77B)_{16}$. The 2's complement representation of 8×P is?
246
views
0 answers
0 votes
mehul vaidya asked Oct 14, 2018
246 views
01001101 A+11101001 B - 100110110 CBoth A and B are in 2's compliment formMy doubt is in C what sign bit is it 8th position(0) or 9th position (1)?
434
views
2 answers
0 votes
Hira Thakur asked Jul 7, 2018
434 views
2's complement (2's complement) = original number,in above fig in the 2nd stage we get the original number after that we again take 2's compliment??3 times 2's complement...
Total PHP MySQL Other RAM
Time (ms) % Time (ms) % File count Time (ms) % Query count Time (ms) % Amount %
Setup 3.9 9% 2.5 6% 72 1.5 3% 2 0.0 0% 569k 50%
Control 12.6 30% 1.3 3% 5 11.5 28% 12 0.0 0% 188k 16%
View 1.4 3% 1.4 3% 12 0.0 0% 0 0.0 0% 95k 8%
Theme 15.8 38% 3.8 9% 15 12.1 29% 3 0.0 0% 265k 23%
Stats 6.9 16% 0.1 0% 0 6.9 16% 1 0.0 0% 0k 0%
Total 40.6 100% 9.1 22% 104 31.9 78% 18 0.0 0% 1119k 100%