Answer:
Out of the following Boolean expressions, the ones that can be used in a selection statement to cause the elevator to move are 'onFloor1 AND callTo2' or 'onFloor2 AND callTo1'
Explanation:
- Based on the other commands crafted to be given and received by the lift indicating what operation it is engaged in, the commands to make it move can be determined easily.
- The command 'onFloor1 AND callTo2' can be used when the lift is on the first floor and needs to be taken to the second floor. The command 'onFloor2 AND callTo1' would work as the counter-command of the command mentioned earlier and would make the lift function exactly in the opposite way.