The code which uses 7 bits to represent a character is
(A) ASCII
(B) BCD
(C) EBCDIC
(D) Gray
Answer: (A)
Explanation: Basic ASCII encodes 128 specified characters and thus use 7 bits to represent each of these characters whereas Extended ASCII needs 8-bit for each character representation as it has a total set of 256 characters.
Extended Binary Coded Decimal Interchange Code (EBCDIC) is an 8-bit binary code for numeric and alphanumeric characters.
BCD encoding uses 4 bits to represent each digit from the range 0 to 9 in its binary form.
In case of Gray codes, any number of bits can be used to represent a character, according to the requirement.
So, Option (A) is correct.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.