77 77 votes $P$ is a $16$-bit signed integer. The $2$'s complement representation of $P$ is $(F87B)_{16}$. The $2$'s complement representation of $8\times P$ is $(C3D8)_{16}$ $(187B)_{16}$ $(F878)_{16}$ $(987B)_{16}$ Digital Logic gatecse-2010 digital-logic number-representation normal + – go_editor 25.9k views answer comment Share Follow Print See all 5 Comments 5 5 Comments reply Show 2 previous comments halfcodeblood commented Jul 13, 2024 reply Follow flag Got it. @Manu Thakur sir. Thanks 0 0 replyShare niket singh commented Oct 3, 2024 reply Follow flag Is there any overflow 0 0 replyShare js__ commented Sep 24, 2025 reply Follow flag just Left shift is needed 1 1 replyShare Please log in or register to add a comment.
Best answer 115 115 votes Multiplication can be directly carried in $2$’s complement form. $\textsf{F87B} = 1111 1000 0111 1011$ can be left shifted $3$ times to give $8P = 1100 0011 1101 1000 = \textsf{C3D8}.$ Alternate Method: As MSB in $\textsf{(F87B)}$ is $1$, $P$ is a negative number. So, $P = -1 \times 2$'s complement of $\textsf{(F87B)}$ $ P = -1 \times (0785) = -1 \times (0000\; 0111 \;1000 \;0101)$ $8 \ast P = -1 \times (0011 \;1100 \;0010 \;1000)\;\;\; (P$ in binary left shifted $3$ times$)$ In $2$'s complement representation , this equals, $1100 0011 1101 1000 = \textsf{C3D8}$ Correct Answer: $A$ Arjun answered Nov 18, 2014 • edited Sep 25, 2024 by Shaik Masthan Arjun comment Share Follow See all 23 Comments 23 23 Comments reply Gate Keeda commented Jan 9, 2015 reply Follow flag The first one was quite easier. :) 15 15 replyShare stuti1 commented Jun 21, 2016 reply Follow flag why binary left shift why not right shift ? 0 0 replyShare Arjun commented Jun 21, 2016 reply Follow flag Left shift means adding a 0 at right end, which is equivalent to multiply by 2 in binary. Right shift will be doing division by 2. 36 36 replyShare stuti1 commented Jun 21, 2016 reply Follow flag ya rgt thanks:) 1 1 replyShare Puja Mishra commented Feb 7, 2017 reply Follow flag suppose iif the question asks 10*P then ?? 1 1 replyShare Brij Mohan Gupta commented Apr 9, 2017 reply Follow flag @Puja you can do it (10*P = 8*P + 2*P) where (8*P) you shift 3 digit left and then for (2*P) you can shift it 1 digit left and then add it. 42 42 replyShare hem chandra joshi commented Sep 6, 2017 reply Follow flag sir I want to know why should be shift 3 times ? if it is 9 then ? 2 2 replyShare Harish Karnam commented Sep 13, 2017 reply Follow flag @hem chandra Left shift is equal to multiplication and right shift equals to division in binary numbers, for the factor of 2 like 2 , 2^2, 2^3 ............. Since here it is 8 , it is 2^3. So we need to shift 3 times 1 1 replyShare hem chandra joshi commented Sep 28, 2017 reply Follow flag if there is 9p then 8p+1p = 2^3p+2^0p (overall three left shifts) 6 6 replyShare Regina Phalange commented Dec 3, 2017 reply Follow flag Thank You so much for this explanation :) 1 1 replyShare krishn.jh commented Mar 27, 2018 i edited by krishn.jh Apr 18, 2018 reply Follow flag @ Puja Mishra If you do 10*P then You will get = 8*P + 2*P = 1 1011 0100 1100 1110 This is the Case of Overflow as said in Question P is 16 Bit Signed Integer. So i guess there will be one option of overflow in this scenario. 1 1 replyShare Akhilesh Singla commented Apr 18, 2018 reply Follow flag @krishn.jh It won't be overflow because for overflow $C_{in} \neq C_{out}$ but here $C_{in} = C_{out} = 1$ 1 1 replyShare krishn.jh commented Apr 18, 2018 reply Follow flag @Akhilesh so you mean to say if you do 8*P + 2*P then no overflow will occur? 0 0 replyShare Akhilesh Singla commented Apr 18, 2018 reply Follow flag It will be end carry, which is discarded in 2's complement. And in 2's complement we can forget all 1s in MSBs, except one 1. Eg. 111011 = 1011 Thus, we can forget the end carry in our result of 8P+2P because sign(negative here) as well as value is still preserved. 0 0 replyShare krishn.jh commented Apr 18, 2018 i edited by krishn.jh May 10, 2018 reply Follow flag @Akhilesh ok yes i know as concept says preceding 1's does not affect the values in 2's Complement as they make one partial block. i got it as after discarding the carry 1, it is not going to affect the final result. But Be careful as if sum is 0 carry 1 in MSB place then surely there would be Overflow. 1 1 replyShare jatin kumar 3 commented Sep 5, 2018 reply Follow flag 1010=10 then after left shift by 1 bit it becomes 0100=4 ,why didnt i get 20? 0 0 replyShare Shamim Ahmed commented Nov 6, 2018 reply Follow flag Great Answer! 0 0 replyShare soumayan bandhu commented Nov 24, 2018 reply Follow flag Can we do division directly on 2's complement form also? 0 0 replyShare mrinmoyh commented Dec 24, 2019 reply Follow flag shifting mechanism can't be applied in case of 13*P, right ?? 0 0 replyShare _shashi commented Jan 3, 2020 reply Follow flag @hem Does it mean that the value of 8p and 9p will be same ? Please clear ,thank you ! 0 0 replyShare Shubham Aggarwal commented Dec 1, 2020 reply Follow flag while performing Left shift Trailing bits will be filled with zeros, on right shift leading bits will filled with zeros. 1 1 replyShare Shreed commented Oct 12, 2023 reply Follow flag on right shift leading bits will filled with zeros – this happens only when number is unsigned 0 0 replyShare atomic commented Oct 23, 2025 reply Follow flag "Multiplication can be directly carried in 2’s complement form."Valid only for numbers multiplied by the powers of 2. i.e; 2,4,8,16, and so on.Like, here the given 2's complement number is being multiplied by 2^3.Correct me if i am wrong. 0 0 replyShare Please log in or register to add a comment.
27 27 votes $P=(F87B)_{16}=(1111|1000|0111|1011)_{2}:$ 2's compliment representation What is this number ? $(0000|0111|1000|0100)_{2}+1=(0000|0111|1000|0101)_{2}=1925$ $So, P\ is =-1925$ $-1925\times 8=-15400$ Find 2's compliment representation of $-15400$ $+15400=(0011|1100|0010|1000)_{2}$ $(1100|0011|1101|0111)_{2}+1=(1100|0011|1101|1000)_{2}=(C3D8)_{16}$ Correct Answer is (A) KUSHAGRA गुप्ता answered Jul 14, 2020 KUSHAGRA गुप्ता comment Share Follow 0 reply Please log in or register to add a comment.
12 12 votes Other way to see. Answer - A minimalist answered Dec 20, 2023 minimalist comment Share Follow 0 reply Please log in or register to add a comment.