Home / ECE / Microprocessors :: Discussion

Discussion :: Microprocessors

  1. Let JCOKE = 20 and LPEPSI =15. Consider the statement

    IF(2* JCOKE. LE. LPEPSI)
    JCOKE = JCOKE + 5
    JCOKE = JCOKE + 3

    The value of JCOKE after the execution of above statement will be

  2. A.
    25
    B.
    23
    C.
    15
    D.
    17

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    Since 2 x J COKE = 40 and (LPEPSI) is 15 control goes to statement J COKE = J COKE + 3 and result is 23.


Be The First To Comment