☰ Year plan · Communication Technology

The OR gate in VB.NET and PHP

Week 12 · Unit 2 Topics 5–6: OR gate simulation with VB.NET and with PHP · 3 lessons
Answers are for parents and teachers.
1
Trace the OR simulator for the clicks B, B, A, B from the start state and write the state after each click.
2
The buggy click code of this week is used and the state is On On. Which click shows a wrong lamp, and what does it show?
3
Write the PHP test for a page with three lists $x, $y and $z that lights the lamp when at least one list is on.
4
The OR function of this week gets Apply with list1 = on and list2 = “yes”. What does it return?
5
What does 10 | 3 give in PHP, and how do you find it?