EGR 2400 Exam 1 Review – Binary,
2's Complement, Gray Code, BCD &
Logic Gates
EGR 2400 Exam 1 preparation covering Oakland
University's Introduction to Electrical and Computer
Engineering. Focuses on number systems (binary, hex,
octal), 1's/2's complement, Gray code, BCD, basic logic
gates (AND, OR, NOT, NAND, NOR, XOR, XNOR),
Boolean algebra, DeMorgan's theorem, and Karnaugh
map simplification. Includes minterm/maxterm concepts,
SOP/POS forms, don't-care conditions, and timing
diagram basics. Designed for efficient review of digital
logic fundamentals before the first exam.
1. What is the binary equivalent of decimal 9?
A) 1001
B) 1010
C) 1100
D) 1000
,2|Page
A) 1001
9 = 8 + 1 = 1001₂.
2. What is the decimal equivalent of binary 11001?
A) 23
B) 25
C) 27
D) 29
B) 25
16 + 8 + 1 = 25.
3. What is the hexadecimal equivalent of binary 1100 0011?
A) C3
B) 3C
C) B3
D) C4
A) C3
1100 = C, 0011 = 3 → C3₁₆.
4. What is the octal equivalent of decimal 100?
A) 144
B) 124
C) 154
D) 134
A) 144
100 ÷ 8 = 12 r4; 12 ÷ 8 = 1 r4; 1 ÷ 8 = 0 r1 → 144₈.
5. In hexadecimal, what decimal value does the digit E represent?
A) 13
B) 14
C) 15
D) 12
B) 14
Hex digits: A=10, B=11, C=12, D=13, E=14, F=15.
6. What is the 1's complement of binary 0110 1001?
A) 1001 0110
B) 1001 0111
C) 0110 1001
,3|Page
D) 1001 1001
A) 1001 0110
Invert every bit: 0110 1001 → 1001 0110.
7. What is the 2's complement of binary 0011 0100?
A) 1100 1011
B) 1100 1100
C) 1100 1010
D) 0011 0100
B) 1100 1100
Invert bits (1100 1011) then add 1 → 1100 1100.
8. In 2's complement, what does the MSB of 0 indicate?
A) Negative number
B) Positive number
C) Overflow
D) Zero
B) Positive number
MSB = 0 means the number is non-negative.
9. What is the 2's complement representation of −7 in 4 bits?
A) 1001
B) 1010
C) 0111
D) 1000
A) 1001
+7 = 0111; invert = 1000; add 1 = 1001.
10. What is the decimal value of 2's complement 1101 0010?
A) −46
B) −45
C) 210
D) −44
A) −46
Invert: 0010 1101 = 45; add 1 = 46; sign negative → −46.
11. What is the Gray code for binary 1100?
A) 1010
B) 1001
, 4|Page
C) 1110
D) 1011
A) 1010
Gray: b3=1, b2=1⊕1=0, b1=1⊕0=1, b0=0⊕0=0 → 1010.
12. What is binary 0101 in Gray code?
A) 0111
B) 0110
C) 0101
D) 0100
A) 0111
Gray: 0, 0⊕1=1, 1⊕0=1, 0⊕1=1 → 0111.
13. In Gray code, successive values differ by how many bits?
A) 0
B) 1
C) 2
D) 3
B) 1
Gray code guarantees only one bit changes between consecutive
values.
14. What is the BCD representation of decimal 58?
A) 0101 1000
B) 0011 1010
C) 0101 0111
D) 1000 0101
A) 0101 1000
5=0101, 8=1000 → 0101 1000.
15. What decimal number does BCD 0110 0010 represent?
A) 62
B) 26
C) 66
D) 42
A) 62
0110=6, 0010=2 → 62.