The subsequent problems deal with the figure below. Assume all outputs are low to begin with unless indicated otherwise.If buttons B1 and B2 are both being held down, what does the following PicBasic code do?If (PORTB.1 == 1) ThenHigh PORTB.2ElseLow PORTB.2EndIf

A. turns off LED L1 (if it was on to begin with)
B. turns on LED L1 (if it was off to begin with)


Answer: A

Trades & Technology

You might also like to view...

Explain the properties and uses of the commercial iron product called pig iron.

What will be an ideal response?

Trades & Technology

What is the most abundant element in air?

a. oxygen c. carbon dioxide b. nitrogen d. carbon monoxide

Trades & Technology

The three functions of turf are utility, ornamentation, and sports

Indicate whether the statement is true or false

Trades & Technology

What effect does castration have on male cattle, sheep, and swine?

a. Increase sex drive b. Decrease fat deposition c. Slow growth d. Increase aggression

Trades & Technology