Placement Test Practice — Computer Engineering
Placement Test Practice — Computer Engineering
These problems cover number systems, Boolean algebra, algorithm complexity, and modular arithmetic.
Practice Test — 25 Questions
Show Answer Key
1. $128 + 32 + 8 + 4 = 172$
2. $(1100100)_2$
3. $15 \times 16 + 15 = 255$
4. $(10000)_2 = 16$
5. $12 = 00001100$; invert: $11110011$; +1: $11110100$
6. $A + B$ (absorption)
7. $(\overline{A} \cdot \overline{B}) + \overline{C}$ — apply De Morgan's: $\overline{A+B} + \overline{C}$, then $\overline{A+B} = \overline{A}\overline{B}$
8. $2^4 = 16$ rows
9. $O(n^3)$
10. $\lceil\log_2 10^6\rceil = 20$ comparisons
11. $48 = 2(18) + 12$; $18 = 1(12) + 6$; $12 = 2(6) + 0$; $\gcd = 6$
12. $23 = 3(6) + 5$; answer: $5$
13. $O(n^2)$
14. Group bits: $001\;010 = 12_8$
15. $65{,}536$
16. $A$ (consensus/absorption)
17. $9^1=9, 9^2=1$ (mod 10, period 2); $75$ is odd → last digit $9$
18. $O(n^2)$
19. $n = 91$, $\phi = 72$
20. $5 \times 3 = 15 \equiv 1 \pmod 7$; inverse is $3$
21. $O(\log n)$ — binary search recurrence
22. $4$ GB $= 2^{32}$ bytes; 32 bits
23. $1 \oplus 0 = 1$; $1 \oplus 1 = 0$; $0 \oplus 1 = 1$; answer: $1$
24. Best: $O(1)$ (first element); Worst: $O(n)$ (last element)
25. $2(256) + 10(16) + 3 = 512 + 160 + 3 = 675$