Digital Electronics

Number Representation — Practice MCQs for CCAT

25 Questions Section C: Hardware Digital Electronics

Practice 25 Number Representation multiple-choice questions designed for CDAC CCAT exam preparation. Click "Show Answer" to reveal the correct option with detailed explanation.

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

Correct Answer: B — 1101

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

Q2.
1's complement of 0110:
A1001
B0110
C1010
D0101
Show Answer & Explanation

Correct Answer: A — 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:
A1001
B1010
C1000
D0111
Show Answer & Explanation

Correct Answer: A — 1001

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

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

Correct Answer: B — 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:
A0101
B1000
C0011
D1010
Show Answer & Explanation

Correct Answer: B — 1000

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

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

Correct Answer: B — Sign, exponent, mantissa

Floating point: sign bit + exponent + mantissa.

Q9.
IEEE 754 single precision uses:
A16 bits
B32 bits
C64 bits
D128 bits
Show Answer & Explanation

Correct Answer: B — 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
B10
C12
D14
Show Answer & Explanation

Correct Answer: B — 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?
A10000101
B11111011
C11111010
D00000101
Show Answer & Explanation

Correct Answer: B — 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 largest value
BThe sign of the number
CThe parity bit
DThe overflow flag
Show Answer & Explanation

Correct Answer: B — 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
BOnly one representation of zero
CLarger range
DEasier to display
Show Answer & Explanation

Correct Answer: B — 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?
AF0
B0F
CFF
D00
Show Answer & Explanation

Correct Answer: A — F0

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

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

Correct Answer: A — 10100101

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

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

Correct Answer: A — 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 Coded Decimal - 4 bits per decimal digit
BBinary Compressed Data
CBasic Coded Digits
DBit Counted Decimals
Show Answer & Explanation

Correct Answer: A — 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?
A72
B58
C62
D74
Show Answer & Explanation

Correct Answer: A — 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?
A1
B8
C23
D32
Show Answer & Explanation

Correct Answer: B — 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?
A0101
B1011
C0100
D1001
Show Answer & Explanation

Correct Answer: A — 0101

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

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

Correct Answer: B — Universal character encoding supporting many languages

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