GeekInterview.com
Series: Subject: Topic:
Question: 11 of 14

How many 1's are there in the binary form of  8*1024 + 3*64 + 3

4
Asked by: Interview Candidate | Asked on: Jun 3rd, 2005
Showing Answers 1 - 12 of 12 Answers
srikanth37

Answered On : Dec 1st, 2005

View all answers by srikanth37

answer is 7.

1024*8+64*3+3=8387

8387  binary equivalent is 11100000110011

  
Login to rate this answer.
dhanasekaran

Answered On : Dec 6th, 2005

the binary eqhivalent of 8387 is as follows10000011000011

  
Login to rate this answer.
Atul Dongare

Answered On : Apr 17th, 2006

I think answer= 4 1's

it is because when we convert 8387 into binary then ans will be 10100011

so the no. of ones are 4

ans is 4

  
Login to rate this answer.
Parag

Answered On : Apr 19th, 2006

Due to weight of each bit we have;8=1 one in binary form1024=1 one ie for 2 raise to 10 th position 3=2 ones and there are 2 threes in expression therefore 4 ones64=1 one means total 7 ones.Why to convert to binary unnneccesarily?

  
Login to rate this answer.
burogini.vinod

Answered On : Jan 20th, 2007

View all answers by burogini.vinod

5

because 8*1024+3*64+3=8387

binary equivalent of 8387 is 10000011000011

Yes  1 User has rated as useful.
  
Login to rate this answer.
karikolraj.b

Answered On : Jan 29th, 2007

View all answers by karikolraj.b

the answer is 5bcoz if u covert 8387 into binary u will get 10000011000011so it has five onestherefore the solution is 5

  
Login to rate this answer.
jaymrms

Answered On : Jan 26th, 2008

View all answers by jaymrms

There are 5 ones in because 8*1024 + 3*64 + 3 = 8387
and its equivalant binary 10000011000011

  
Login to rate this answer.
rajat17111985

Answered On : Feb 1st, 2008

View all answers by rajat17111985

i am impressed by the imagination of parag to prove that no opf ones will be 7.
great imagination dude.
but answer is 5

  
Login to rate this answer.
Priyanka Sinha

Answered On : Mar 14th, 2008

View all answers by Priyanka Sinha

8*1024 + 64*3 + 3 = 8387
 8387/2 then remainder = 1
 4193/2 then remainder = 1
 2096/2 then remainder = 0
 1048/2 then remainder = 0
 524/2 then remainder = 0
 262/2 then remainder = 0
 131/2 then remainder = 1
 65/2 then remainder = 1
 32/2 then remainder = 0
16/2 then remainder = 0
 8/2 then remainder = 0
4/2 then remainder = 0
2/2 then remainder = 0
1/2=0 then remainder = 1

8387= 10000011000011

so overall we have 5 1's
Thank you

Yes  3 Users have rated as useful.
  
Login to rate this answer.

ans 5

  
Login to rate this answer.
poonammusale

Answered On : Apr 22nd, 2009

View all answers by poonammusale

ANS is 5.
8387/2=4193              Remainder 1
4193/2=2096                 1
2096/2=1048                 0
1048/2=524                   0
524/2=262                     0
262/2=131                     0
131/2=65                       1
65/2=32                         0
32/2=16                         0
16/2=8                           0
8/2=4                             0
4/2=2                             0
2/2=1                             0
1                                    1     
so the binary code is 10000011000011
So Total no. of 1's =5

  
Login to rate this answer.
ashok815

Answered On : Dec 22nd, 2009

View all answers by ashok815

8*1024 + 3*64 + 3= (2^3*2^10) + (2^1+2^0)*2^6 + (2^1+2^0)
                              
                              = 2^13 + 2^7 +2^6 + 2^1 + 2^0


 Hence 5

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.