2 votes 2 votes How many 1s in Binary represention of (1*4096)+(9*256)+(7*16)+5?? And 2s compliment of -17?? Digital Logic digital-logic + – air1ankit asked Aug 29, 2017 • edited Aug 29, 2017 by air1ankit air1ankit 556 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply Habibkhan commented Aug 29, 2017 reply Follow Share Last term is missing in ur first part of the question.. 0 votes 0 votes air1ankit commented Aug 29, 2017 reply Follow Share Sorry 0 votes 0 votes Please log in or register to add a comment.
Best answer 3 votes 3 votes each power of 2 will contain single 1. =2^12 + ((1 +8)2^8) + (( 1 + 2 + 4)2^4) + 4 +1 =2^12 + 2^8 + 2^11 + 2^4 + 2^5 + 2^6 + 2^2 + 2^0 there will be 8 1's. 2's complement of -17 17 = 0001 0001, (take 2's complement) -17 = 11101111 Manu Thakur answered Aug 29, 2017 • edited Aug 30, 2017 Manu Thakur comment Share Follow See all 2 Comments See all 2 2 Comments reply Shubhanshu commented Aug 30, 2017 reply Follow Share and if it is asked to write in BCD, 2's comp of -17 then 0 votes 0 votes sourav. commented Sep 14, 2017 reply Follow Share @ manu, your answer makes sense ,but i want to ask 1 thing that why you represented $-17$ using $8$ bits, i could have represented $-17$ using $6$bit (minimum) $(-17)_{10}=(110001)_{2}$ $2^{s}$ complement=$(101111)_{2}$ making answer $6$ 0 votes 0 votes Please log in or register to add a comment.