The subsequent problems deal with the figure below. Assume all outputs are low to begin with unless indicated otherwise.What does the following PicBasic code do?Low PORTB.2myloop:If (PORTA.1 == 1) ThenHigh PORTB.2ElseLow PORTB.2EndIfGoto myloopHigh PORTB.2

A. keeps LED L1 on only while button B3 is up (i.e., not held down)
B. keeps LED L1 on while button B3 is held down, and keeps it on after the button is released
C. blinks LED L1 while button B3 is up (not held down), turns on the LED when the button is pressed, and turns it off when the button is released.
D. keeps LED L1 on only while button B3 is held down
E. turns LED L1 off when button B3 is pressed down, and keeps it off after button B3 is released


Answer: A

Trades & Technology

You might also like to view...

A(n) ____ exam will measure how well suited you are for particular types of tasks.

a. standard IQ b. preparatory c. final d. aptitude

Trades & Technology

Technician A says that Volvo use E3 injectors in their post-2013 MY engines. Technician B says that Delphi E3 injectors use twin actuators. Who is correct??

A. ?Technician A only B. ?Technician B only C. ?Both A and B D. ?Neither A nor B

Trades & Technology

Concrete shall be measured in ____ net in place.

A. cubic feet B. cubic yards C. metric tons D. linear feet

Trades & Technology

What length of stock, in inches, is needed to make a shaft with linear dimensions of 2 3/8", 1 5/16", 2 1/2", 4 3/4 ", 6 5/8", and 3 1/2"?

What will be an ideal response?

Trades & Technology