Question:
What is the maximal decimal number that can be accommodated in a byte? a) 128 b) 256 c) 255 d) 512
Answer:
Ans: (c) Source: CoolInterview.com
ITS 256.
SINCE, 1 BYTE=8 BITS
THE LOGIC IS 2^8=256(2 TO THE POWER OF 8) Source: CoolInterview.com
Answered by: Chethan S | Date: 6/3/2008
| Contact Chethan S
Ans: (c)
Because, 1 Byte = 8 Bits Minimum number 1 Byte can hold = 2^0 = 0 Maximum number 1 Byte can hold = (2^8)-1 = 255 Source: CoolInterview.com
Answered by: RAVICHANDRA | Date: 2/27/2009
| Contact RAVICHANDRA
Ans: (c)
Because, 1 Byte = 8 Bits Minimum number 1 Byte can hold = 2^0 = 0 Maximum number 1 Byte can hold = (2^8)-1 = 255 Source: CoolInterview.com
Answered by: simple | Date: 6/7/2009
| Contact simple
its (c)
since 0 to 255 decimal nos can fit which amounts to A TOTAL OF 256. SO THE MAX decimal NO. THAT CAN FIT IN IS 255==FFh Source: CoolInterview.com
Answered by: reena | Date: 7/1/2009
| Contact reena
ans: 255 1 byte=8 bits, hence2^8=256; so, 0 to 255 is the possible value
Source: CoolInterview.com
Answered by: sathish | Date: 7/6/2009
| Contact sathish
i think it is 2^7 since 8 bits means here that we count from 0.
so 2^7 = 128 Source: CoolInterview.com
Answered by: Muzammil | Date: 7/12/2009
| Contact Muzammil
there r 8 position in 1 byte. start from 1st position max 8 bit no is 11111111 so in decimal , 1*2^0+1*2^1+1*2^2+1*2^3+1*2^4+1*2^5+1*2^6+1*2^7=255 so (c) 255 is currect Source: CoolInterview.com
Answered by: sachin magare | Date: 7/30/2009
| Contact sachin magare
Ans: 255 2 to the power 8 = 256. This tells that 256 decimal numbers can be represented in unsigned 8 bits. (0-255) Source: CoolInterview.com
Answered by: aayush | Date: 8/19/2009
| Contact aayush
the answer is 255 as max no. of bits in byte are 8 and that means it must have all the bits high or 1...i.e after conversion ...using 8421 method ( 1 1 1 1 1 1 1 1 ) 128+ 64+ 32+ 16+ 8+ 4+ 2+ 1
= 255 Source: CoolInterview.com
Answered by: gaurav | Date: 8/7/2010
| Contact gaurav
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|