Back to Practice Digital Electronics

Number Representation - Practice MCQs for CCAT

50 Questions Section C: Hardware Digital Electronics

Number Representation Question Bank for C-CAT

Topic-wise Number Representation MCQs for CDAC C-CAT preparation with answers and explanations.

Q1.
Sign-magnitude representation of -5 (4-bit):
A0101
B1010
C1101
D0010
Show Answer & Explanation

Correct Answer: C - 1101

Sign-magnitude: MSB=1 (negative), remaining=5(101). -5 = 1101.

Q2.
1's complement of 0110:
A0110
B1001
C1010
D0101
Show Answer & Explanation

Correct Answer: B - 1001

1's complement: invert all bits. 0110 -> 1001.

Q3.
2's complement of 0110:
A1001
B1010
C0110
D1011
Show Answer & Explanation

Correct Answer: B - 1010

2's complement = 1's complement + 1 = 1001 + 1 = 1010.

Q4.
BCD of 9 is:
A0111
B1010
C1000
D1001
Show Answer & Explanation

Correct Answer: D - 1001

BCD: each decimal digit in 4 bits. 9 = 1001.

Q5.
Gray code advantage:
AOnly one bit changes between adjacent values
BFaster conversion
CUses less bits
DSame as binary
Show Answer & Explanation

Correct Answer: A - Only one bit changes between adjacent values

Gray code: adjacent values differ by only 1 bit.

Q6.
ASCII uses how many bits?
A4
B6
C7 or 8
D16
Show Answer & Explanation

Correct Answer: C - 7 or 8

ASCII uses 7 bits (standard) or 8 bits (extended).

Q7.
Excess-3 code for 5:
A1000
B0101
C0011
D1010
Show Answer & Explanation

Correct Answer: A - 1000

Excess-3: add 3 to digit then convert. 5+3=8=1000.

Q8.
Floating point representation has:
AOnly mantissa
BInteger only
COnly exponent
DSign, exponent, mantissa
Show Answer & Explanation

Correct Answer: D - Sign, exponent, mantissa

Floating point: sign bit + exponent + mantissa.

Q9.
IEEE 754 single precision uses:
A32 bits
B16 bits
C64 bits
D128 bits
Show Answer & Explanation

Correct Answer: A - 32 bits

IEEE 754 single precision = 32 bits.

Q10.
Parity bit is for:
ASpeed
BError detection
CCompression
DEncryption
Show Answer & Explanation

Correct Answer: B - Error detection

Parity bit detects single-bit errors in data.

Q11.
What is the decimal equivalent of binary 1010?
A8
B12
C10
D14
Show Answer & Explanation

Correct Answer: C - 10

1010 = 1×8 + 0×4 + 1×2 + 0×1 = 8 + 0 + 2 + 0 = 10

Q12.
How is -5 represented in 8-bit 2's complement?
A11111011
B10000101
C11111010
D00000101
Show Answer & Explanation

Correct Answer: A - 11111011

5 = 00000101. 1's complement = 11111010. Add 1 for 2's complement = 11111011.

Q13.
What is the range of signed numbers in 8-bit 2's complement?
A-127 to +127
B-128 to +127
C-128 to +128
D-255 to +255
Show Answer & Explanation

Correct Answer: B - -128 to +127

For n bits, 2's complement range is -2(n-1) to +2(n-1)-1. For 8 bits: -128 to +127.

Q14.
In sign-magnitude representation, what does the MSB represent?
AThe sign of the number
BThe largest value
CThe parity bit
DThe overflow flag
Show Answer & Explanation

Correct Answer: A - The sign of the number

In sign-magnitude, the Most Significant Bit (MSB) represents sign: 0 for positive, 1 for negative.

Q15.
What is the advantage of 2's complement over 1's complement?
ASimpler to calculate
BLarger range
COnly one representation of zero
DEasier to display
Show Answer & Explanation

Correct Answer: C - Only one representation of zero

2's complement has only one representation of zero, while 1's complement has +0 and -0.

Q16.
What is the hexadecimal equivalent of binary 11110000?
A00
B0F
CFF
DF0
Show Answer & Explanation

Correct Answer: D - F0

11110000: 1111 = F, 0000 = 0. So 11110000 = F0 in hexadecimal.

Q17.
What is the binary equivalent of hexadecimal A5?
A11000101
B10100100
C10100101
D01010101
Show Answer & Explanation

Correct Answer: C - 10100101

A = 1010, 5 = 0101. So A5 = 10100101 in binary.

Q18.
What is overflow in binary arithmetic?
AWhen memory is full
BWhen division by zero occurs
CWhen result needs more bits than available
DWhen calculation takes too long
Show Answer & Explanation

Correct Answer: C - When result needs more bits than available

Overflow occurs when the result of an arithmetic operation exceeds the range that can be represented with the available bits.

Q19.
What is BCD representation?
ABinary Compressed Data
BBinary Coded Decimal - 4 bits per decimal digit
CBasic Coded Digits
DBit Counted Decimals
Show Answer & Explanation

Correct Answer: B - Binary Coded Decimal - 4 bits per decimal digit

BCD uses 4 binary bits to represent each decimal digit (0-9), making decimal calculations easier.

Q20.
What is the BCD representation of decimal 47?
A00101111
B01000111
C00110111
D01001111
Show Answer & Explanation

Correct Answer: B - 01000111

In BCD: 4 = 0100, 7 = 0111. So 47 = 01000111.

Q21.
What is the octal equivalent of binary 111010?
A74
B58
C62
D72
Show Answer & Explanation

Correct Answer: D - 72

Group binary digits in 3s from right: 111 010 = 7 2 = 72 in octal.

Q22.
What is floating point representation used for?
AInteger numbers only
BVery large or very small real numbers
CNegative numbers only
DBinary numbers only
Show Answer & Explanation

Correct Answer: B - Very large or very small real numbers

Floating point allows representation of very large or very small real numbers using sign, exponent, and mantissa.

Q23.
In IEEE 754 single precision, how many bits are used for exponent?
A8
B1
C23
D32
Show Answer & Explanation

Correct Answer: A - 8

IEEE 754 single precision (32-bit): 1 sign bit, 8 exponent bits, 23 mantissa bits.

Q24.
What is the 1's complement of binary 1010?
A0100
B1011
C0101
D1001
Show Answer & Explanation

Correct Answer: C - 0101

1's complement is obtained by inverting all bits. 1010 becomes 0101.

Q25.
What is Unicode?
A8-bit character encoding
BBinary code only
CSame as ASCII
DUniversal character encoding supporting many languages
Show Answer & Explanation

Correct Answer: D - Universal character encoding supporting many languages

Unicode is a universal character encoding standard that supports characters from virtually all writing systems.

Q26.
What is the 1's complement of the 8-bit binary number 10110010?
A01001100
B01001110
C10110011
D01001101
Show Answer & Explanation

Correct Answer: D - 01001101

The 1's complement is obtained by flipping all bits: 1→0, 0→1. So 10110010 becomes 01001101.

Q27.
What is the 2's complement of the 8-bit binary number 00001100?
A11110011
B11110100
C11110101
D11110010
Show Answer & Explanation

Correct Answer: B - 11110100

2's complement = 1's complement + 1. 1's complement of 00001100 = 11110011. Adding 1: 11110011 + 1 = 11110100.

Q28.
In signed magnitude representation, the MSB represents:
AThe largest bit value
BThe sign of the number
CThe parity bit
DThe carry bit
Show Answer & Explanation

Correct Answer: B - The sign of the number

In signed magnitude representation, the Most Significant Bit (MSB) represents the sign: 0 for positive and 1 for negative. The remaining bits represent the magnitude.

Q29.
What is the range of values that can be represented in 8-bit 2's complement?
A-127 to +127
B-128 to +127
C-128 to +128
D0 to 255
Show Answer & Explanation

Correct Answer: B - -128 to +127

In n-bit 2's complement, the range is -2(n-1) to 2(n-1)-1. For 8 bits: -27 to 27-1 = -128 to +127.

Q30.
The BCD (Binary Coded Decimal) representation of decimal 47 is:
A00101111
B00110001
C01000111
D0100 0111
Show Answer & Explanation

Correct Answer: D - 0100 0111

In BCD, each decimal digit is represented by its 4-bit binary equivalent. 4 = 0100, 7 = 0111. So 47 in BCD is 0100 0111.

Q31.
Which number system is invalid in BCD representation?
A0101 (5)
B1000 (8)
C1010 (10)
D1001 (9)
Show Answer & Explanation

Correct Answer: C - 1010 (10)

BCD uses 4 bits to represent decimal digits 0-9. The 4-bit patterns 1010 (10) through 1111 (15) are invalid in BCD as they don't correspond to any single decimal digit.

Q32.
How is -5 represented in 8-bit 2's complement?
A11111011
B10000101
C11111010
D10000100
Show Answer & Explanation

Correct Answer: A - 11111011

+5 in binary = 00000101. 1's complement = 11111010. 2's complement = 11111010 + 1 = 11111011. So -5 in 8-bit 2's complement is 11111011.

Q33.
What is the advantage of 2's complement over 1's complement?
AWider range
BUses fewer bits
CSimpler complementation
DOnly one representation for zero
Show Answer & Explanation

Correct Answer: D - Only one representation for zero

2's complement has only one representation for zero (00000000), while 1's complement has two (+0 = 00000000, -0 = 11111111). This simplifies arithmetic operations and comparison.

Q34.
In unsigned 8-bit representation, what decimal value does 11111111 represent?
A127
B-1
C255
D256
Show Answer & Explanation

Correct Answer: C - 255

In unsigned representation, all 8 bits contribute to the magnitude. 11111111 = 28 - 1 = 255.

Q35.
What is overflow in binary arithmetic?
AWhen the result is zero
BWhen the result exceeds the representable range
CWhen carry is generated
DWhen both numbers are negative
Show Answer & Explanation

Correct Answer: B - When the result exceeds the representable range

Overflow occurs when the result of an arithmetic operation exceeds the range that can be represented with the given number of bits. In 2's complement, it occurs when adding two numbers of the same sign produces a result of the opposite sign.

Q36.
How can overflow be detected in 2's complement addition?
AWhen carry out is 1
BWhen the result is 0
CWhen both operands are positive
DWhen carry into MSB differs from carry out of MSB
Show Answer & Explanation

Correct Answer: D - When carry into MSB differs from carry out of MSB

Overflow in 2's complement is detected when the carry into the MSB (sign bit) differs from the carry out of the MSB. This indicates that the sign of the result is incorrect.

Q37.
The Excess-3 code for decimal digit 4 is:
A0100
B0011
C1000
D0111
Show Answer & Explanation

Correct Answer: D - 0111

Excess-3 (XS-3) code adds 3 to the decimal digit before converting to binary. 4 + 3 = 7 = 0111. So Excess-3 representation of 4 is 0111.

Q38.
What is the Gray code sequence for decimal 3?
A011
B110
C010
D100
Show Answer & Explanation

Correct Answer: C - 010

Gray code for 3: Binary of 3 = 011. Gray code conversion: MSB stays same (0), each subsequent bit = XOR of adjacent binary bits: 0⊕1=1, 1⊕1=0. Gray code = 010.

Q39.
The main advantage of Gray code is:
AOnly one bit changes between consecutive numbers
BUses fewer bits
CCan represent larger numbers
DEasier arithmetic operations
Show Answer & Explanation

Correct Answer: A - Only one bit changes between consecutive numbers

In Gray code, only one bit changes between consecutive values. This property is crucial in applications like rotary encoders and Karnaugh maps to avoid glitches during transitions.

Q40.
What is the 9's complement of the decimal number 347?
A652
B653
C753
D648
Show Answer & Explanation

Correct Answer: A - 652

The 9's complement of a decimal number is obtained by subtracting each digit from 9. 9-3=6, 9-4=5, 9-7=2. So 9's complement of 347 is 652.

Q41.
The 10's complement of 347 is:
A653
B652
C753
D648
Show Answer & Explanation

Correct Answer: A - 653

10's complement = 9's complement + 1. 9's complement of 347 = 652. Adding 1: 652 + 1 = 653. So the 10's complement is 653.

Q42.
In IEEE 754 single precision floating point, how many bits are used for the exponent?
A1
B8
C23
D32
Show Answer & Explanation

Correct Answer: B - 8

IEEE 754 single precision uses 32 bits total: 1 bit for sign, 8 bits for exponent (biased by 127), and 23 bits for mantissa (fraction).

Q43.
What is the sign-extend operation used for?
ATo add a sign bit
BTo extend the bit width while preserving the signed value
CTo convert unsigned to signed
DTo remove the sign bit
Show Answer & Explanation

Correct Answer: B - To extend the bit width while preserving the signed value

Sign extension increases the number of bits in a signed number while preserving its value. The sign bit (MSB) is replicated to fill the new higher-order bits. For example, 4-bit 1011 (-5) sign-extends to 8-bit 11111011 (-5).

Q44.
Which representation can cause end-around carry during addition?
A1's complement
B2's complement
CUnsigned
DBCD
Show Answer & Explanation

Correct Answer: A - 1's complement

In 1's complement arithmetic, if a carry is generated out of the MSB during addition, it must be added back to the LSB (end-around carry) to get the correct result. This is not needed in 2's complement.

Q45.
What is the hexadecimal equivalent of binary 10111010?
AAB
BB10
CBA
DA11
Show Answer & Explanation

Correct Answer: C - BA

Group the binary number into 4-bit nibbles from right: 1011 1010. Convert each: 1011 = B (11), 1010 = A (10). So 10111010 in hex = BA.

Q46.
The ASCII code uses how many bits for standard character representation?
A7
B6
C5
D8
Show Answer & Explanation

Correct Answer: A - 7

Standard ASCII uses 7 bits to represent 128 characters (0-127), including uppercase/lowercase letters, digits, punctuation, and control characters. Extended ASCII uses 8 bits for 256 characters.

Q47.
If two positive numbers are added in 2's complement and the result has MSB = 1, what does it indicate?
ACorrect positive result
BUnderflow has occurred
CThe result is negative and correct
DOverflow has occurred
Show Answer & Explanation

Correct Answer: D - Overflow has occurred

When two positive numbers (MSB = 0) are added and the result has MSB = 1 (appears negative), overflow has occurred. The true result is too large to be represented in the given number of bits.

Q48.
What is the decimal equivalent of the 2's complement number 11110001 (8-bit)?
A-15
B-14
C-16
D-17
Show Answer & Explanation

Correct Answer: A - -15

MSB is 1, so the number is negative. To find magnitude: take 2's complement of 11110001. 1's complement = 00001110, add 1 = 00001111 = 15. So the value is -15.

Q49.
The bias value used in IEEE 754 single precision exponent is:
A64
B255
C128
D127
Show Answer & Explanation

Correct Answer: D - 127

IEEE 754 single precision uses a bias of 127 for the 8-bit exponent field. The actual exponent = stored exponent - 127. This allows representation of both positive and negative exponents.

Q50.
What is the packed BCD representation of decimal 96?
A10010110
B01100000
C1001 0110
D1100 0000
Show Answer & Explanation

Correct Answer: C - 1001 0110

In packed BCD, two decimal digits are stored in one byte (8 bits). 9 = 1001, 6 = 0110. So packed BCD of 96 = 1001 0110.

Showing 1-10 of 50 questions