Home / ECE / Microprocessors :: Discussion

Discussion :: Microprocessors

  1. Consider the following program in Pascal

    X = 2.57
    X = (X + 0.06) * 10
    I = TRUNC (X)
    X = I
    X = X / 10.0

    The final value of X would be

  2. A.
    2
    B.
    2.6
    C.
    2.63
    D.
    26.3

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    (2.57 + 0.06) 10 = 26.3 → .


Be The First To Comment