![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 18.04.2020 04:11 annaharmon693
An office building has two floors. A computer program is used to control an elevator that travels between the two floors. Physical sensors are used to set the following Boolean variables.
Variable 1: onFloor1 Description: Set to true if the elevator is stopped on floor 1; otherwise set to false
Variable 2: onFloor2 Description: Set to true if the elevator is stopped on floor 2; otherwise set to false
Variable 3: callTo1 Description: Set to true if the elevator is called to floor 1; otherwise set to false
Variable 4: callTo2 Description: Set to true if the elevator is called to floor 2; otherwise set to false
The elevator moves when the door is closed and the elevator is called to the floor that it is not currently on. Which of the following Boolean expressions can be used in a selection statement to cause the elevator to move?
A. (onFloor1 AND callTo2) AND (onFloor2 AND callTo1)
B. (onFloor1 AND callTo2) OR (onFloor2 AND callTo1)
C. (onFloor1 OR callTo2) AND (onFloor2 OR callTo1)
D. (onFloor1 OR callTo2) OR (onFloor2 OR callTo1)
![ansver](/tpl/images/cats/User.png)
Answers: 3
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 20:40
Assume that there is a 4% rate of disk drive failure in a year. a. if all your computer data is stored on a hard disk drive with a copy stored on a second hard disk drive, what is the probability that during a year, you can avoid catastrophe with at least one working drive? b. if copies of all your computer data are stored on three independent hard disk drives, what is the probability that during a year, you can avoid catastrophe with at least one working drive?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 23:30
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 10:50
Your friend kayla is starting her own business and asks you whether she should set it up as a p2p network or as a client-server network. list three questions you might ask to kayla decide which network to use and how her answers to those questions would affect your recommendation.
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 14:30
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
You know the right answer?
An office building has two floors. A computer program is used to control an elevator that travels be...
Questions
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mkx.png)
![question](/tpl/images/cats/es.png)
Spanish, 19.02.2021 01:00
![question](/tpl/images/cats/mat.png)
Mathematics, 19.02.2021 01:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/fizika.png)
Physics, 19.02.2021 01:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 19.02.2021 01:00
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/en.png)
English, 19.02.2021 01:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/nemec.png)
German, 19.02.2021 01:00