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 (90)
 OOPS interview questions  OOPS Interview Questions (554)
 C++ General interview questions  C++ General Interview Questions (458)
Question
How many bit combinations are there in a byte?
 Question Submitted By :: Alok Hisaria
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How many bit combinations are there in a byte?
Answer
# 1
Byte contains the 8 Bits and bit contains either the value
0 or 1. there are only two states there will be 255
combinations i.e.(2 raise to power 8 minus 1)
combinations .
 
Is This Answer Correct ?    18 Yes 45 No
Anita Sachdeva
 
  Re: How many bit combinations are there in a byte?
Answer
# 2
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 ?    83 Yes 7 No
Abdullah Javid
 
 
 
  Re: How many bit combinations are there in a byte?
Answer
# 3
ya they r right. 
Is This Answer Correct ?    5 Yes 12 No
Krishna
 
  Re: How many bit combinations are there in a byte?
Answer
# 4
2 raise to no. of byte ie. for three byte ,8 bit combination 
Is This Answer Correct ?    4 Yes 13 No
Bari
 
  Re: How many bit combinations are there in a byte?
Answer
# 5
the first two answers are right 
Is This Answer Correct ?    3 Yes 13 No
Saranya
 
  Re: How many bit combinations are there in a byte?
Answer
# 6
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
 
  Re: How many bit combinations are there in a byte?
Answer
# 7
it is 2^8
means 2 ^ no of bits
means 256....
:)
 
Is This Answer Correct ?    17 Yes 2 No
Vaibhav Meena
 
  Re: How many bit combinations are there in a byte?
Answer
# 8
255 0nly 
Is This Answer Correct ?    4 Yes 22 No
Prakash
 
  Re: How many bit combinations are there in a byte?
Answer
# 9
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
 
  Re: How many bit combinations are there in a byte?
Answer
# 10
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
 

 
 
 
Other C++ General Interview Questions
 
  Question Asked @ Answers
 
what is the use of Namespace in c++.   3
What are advantages and disadvantages of Design patterns? IBM 4
Explain the ISA and HASA class relationships. How would you implement each in a class design?   2
You have to take 2 arrays of length 10. Input the values of array 1 from the user. Then copy the values of array 1 to array 2 in ascending order For example if user enters 9, 5, 6, 8, 1, 0, 2, 7, 4, 3 then copy the smallest element i.e. 0 first followed by 1, 2 and so   1
What is scope of a variable? (LOLZ) CA 2
What is "map" in STL?   2
Any one help me plzzzz..... i have an assignment...... that is ______*********_______ Write a program that takes an equation as a string and does the following: Solve 8 parts to achieve 100% 1 - 5 are compulsory. Input: 2x^2+3x+4=0 1) read a quadratic equation 2) print its coefficients (coefficients range is 0 to 9) 3) print the solution of the equation 4) tackle imaginary solution e.g. ( (2+3i), (2-3i) ) 5) allow spaces within the input 6) after solving one equation; ask for an other, terminate on empty line. * 7) tackle negative values as well * 8) tackle more than one values of same exponent (e.g. 2x^2 + 3x^2 + 4x + 3 = 0)* 9) use strtok * 10) print the solution in fractions e.g. 1.5 should be printed as (1)1/2 * 11) coefficient can be greater than 9** 12) values on both sides of the = sign** 13) plot the graph of the polynomial** 14) use a compiler other than Borland** 15) submit before May 25, 2009 11:59 PM ** _______******________ plz send me c++ code at sweety.alvi@gmail.com   1
What are the total number of lines written by you in C/C++? What is the most complicated or valuable program written in C/C++? Intel 2
Copy Linked List using recursive function? Persistent 2
why the size of an empty class is 1   4
Write a C/C++ program to show the result of a stored procedure "PROC_RESET_MAIL" on database "USER_NOTIFY". Accenture 2
show that among any group of five (not necessary consecutive ) integers, there are two with the same remainder when divided by 4.   1
 
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