ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Programming Languages >> C++ >> C++ General
 
 


 

 
 STL interview questions  STL Interview Questions (93)
 OOPS interview questions  OOPS Interview Questions (563)
 C++ General interview questions  C++ General Interview Questions (461)
Question
How many bit combinations are there in a byte?
 Question Submitted By :: C++-General
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
There'll actually be 256 combinations. The maximum value
that can be represented with a byte (8 - bits) is 255 but as
far as combinations are concerned 0 should also be
considered as well as 1, 2, 3, ..., 255. So there are total
256 combinations.
 
Is This Answer Correct ?    84 Yes 7 No
Abdullah Javid
 
Answer
# 2
it is 2^8
means 2 ^ no of bits
means 256....
:)
 
Is This Answer Correct ?    17 Yes 3 No
Vaibhav Meena
 
 
 
Answer
# 3
There are 256 combinations as 00000000 is classed a one
combination. plus the other 255 combinations. Answer 8 is
wrong.Answer 2 is correct.
 
Is This Answer Correct ?    15 Yes 2 No
Azza
 
Answer
# 4
256 combinations.Byte contains the 8 Bits and bit contains
either the value 0 or 1.i.e.(2 raise to power 8 minus
1).The maximum number of value represented with a byte is 8
bits is 255 but 0 should also be considered as well as 1,
2, 3, ..., 255. So there are total
256 combinations.
 
Is This Answer Correct ?    12 Yes 4 No
Santosh Shah
 
Answer
# 5
This has to be the easiest technical question for any
programmer...

A Byte is made of 8 Bits, so the number of combination for
Byte would be 2^8.

However, if asked the maximum number represented then it
would be (2^8)-1.

Surely, if you can't answer this you should seriously think
about changing your profession.
 
Is This Answer Correct ?    5 Yes 0 No
Arjun
 
Answer
# 6
2 pow 8 combinations =256

Arjun is right
 
Is This Answer Correct ?    3 Yes 0 No
Manoj
 
Answer
# 7
=2^8-1
=256-1
=255
bco'z only 8 bit data can be loaded that depends on the
address lines we take
 
Is This Answer Correct ?    0 Yes 6 No
K.kishorebabu
 
Answer
# 8
ya they r right. 
Is This Answer Correct ?    5 Yes 12 No
Krishna
 
Answer
# 9
if number of bite values is n, and length of the byte is k.
that means n = 2, k = 8.
for n even => n^k
(2^8 = 256)
for n odd => n^k - 1
(2^7 - 1 = 128-1 = 127)
 
Is This Answer Correct ?    5 Yes 12 No
Panaitsdv
 
Answer
# 10
2 raise to no. of byte ie. for three byte ,8 bit combination 
Is This Answer Correct ?    4 Yes 13 No
Bari
 

 
 
 
Other C++ General Interview Questions
 
  Question Asked @ Answers
 
sizeof - is it a function or operator? Honeywell 6
why the size of an empty class is 1   4
Write a C program to calculate the salary of each employee in your company. You need to input the hours worked and the hourly rate. The company pays 1.5 times the hourly rate for all hours worked in excess of 48 hours. Use the formulas below to calculate the salary: if employee worked less than 48 hours salary = hours * rate; if employee worked more than 48 hours salary = 48.0 * rate + ( hours − 48.0 ) * rate * 1.5; You are required to use a loop to produce the sample output as given below.   1
What are function poinetrs? where are they used? CTS 1
what is meaning of isa and hsa   1
What is size of Empty Class? Persistent 3
What is volatile and pragma? When they are used?   1
Definition of class?   12
How is an Abstract Base Class(ABC) related to an "Abstract Data Type" (ADT)   2
How to write Multithreaded applications using C++? Honeywell 2
Is there something that we can do in C and not in C++? Patni 14
What is the difference between a copy constructor and an overloaded assignment operator? Microsoft 3
 
For more C++ General Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com