☰ Year plan · Communication Technology

Review and your own mini-project

Week 15 · Term 1 review (Units 1–2) and your own mini-project · 3 lessons
Answers are for parents and teachers.
1
Convert decimal 44 to binary and decimal 255 to hexadecimal, and check one answer by going back.
2
Convert hexadecimal 7A3 to decimal.
3
A trace shows: start Off, Off, unlit; click A gives On, Off, lit; click B gives On, On, lit; click A gives Off, On, lit; click B gives Off, Off, unlit. Which gate does the simulator imitate?
4
Write a PHP function f(bool $a, bool $b, bool $c): bool for L = A·B + ¬C and say what f(true, true, false) returns.
5
Say in one sentence what the lamp program should do for a missing or wrong input, and why.