The subsequent problems deal with the following PIC circuit and PicBasic code. Assume PORTB.2 is 0 to begin with. I Var BYTE : J Var BYTEI = 1myloop:I = I + 1If (I > 2) Then loop2Low PORTB.2High PORTB.2Pause 100High PORTB.2Goto mylooploop2:J = 2 * (I/6+1)What is the value of J after the code runs (i.e., after the last line)?

A. 0
B. 1
C. 2
D. 3
E. 4


Answer: C

Trades & Technology

You might also like to view...

A(n) ____ exception is identified by a phrase like is permitted. This means that you could apply the rule as written, but you may decide not to.

a. mandatory b. permissive c. exclusive d. suggested

Trades & Technology

A ____ stress tries to slide molecules apart in a motion similar to when you slide your hands against each other.

A. strain B. shear C. skew D. mesh

Trades & Technology

If lighting is recessed in a return air plenum ceiling, what will the effect be on supply air needed to cooling the occupied space?

A) Less air will be needed. B) More air will be needed. C) Air requirement will be the same.

Trades & Technology

Soils created by fine particles of clay and silt that have been deposited by the wind are called ____ soils

A) loess B) eolian C) volcanic D) clay

Trades & Technology