Home / ECE / Microprocessors :: Section 3

ECE :: Microprocessors

  1. Consider the following statements about expressing real constants in exponential form in C

    1. The mantissa and exponent are separated either by e or E.
    2. The mantissa and exponent may have positive or negative sign.
    3. Default sign of mantissa is positive.
    4. Default sign of exponent is negative.
    Which of the above statements are wrong?

  2. A.
    1 only
    B.
    1 and 4 only
    C.
    1, 3 and 4 only
    D.
    4 only

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. If F = 95.0 what will be the result of following FORTRAN 77 program?

    REAL F , C
    READ * , F
    C = (5. / 9.) * (F - 32.)

  4. A.
    35.0
    B.
    35
    C.
    25.0
    D.
    25

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Consider the following library functions

    1. EXP (i.e., ex)
    2. ARCTAN (i.e. tan-1 x)
    3. SQRT (i.e., x)
    4. AES (i.e. |x|)

    Which of the above are allowed in Pascal?

  6. A.
    All
    B.
    1 and 3 only
    C.
    1, 3, 4 only
    D.
    1, 2 and 3 only

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Consider the following program in Basic

    10 READ X, Y, Z
    15 DATA 20, 30, 10
    20 S = X + Y + Z
    30 A = S/3
    35 PRINT S, A, X, Y, Z
    40 END


    The output will be

  8. A.
    60, 20, 20, 30, 10
    B.
    10, 30, 20, 20, 60
    C.
    60, 20, 30, 10, 20
    D.
    60, 30, 10, 20, 20

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Let the initial contents of ACC and CY in 8085 be

    1. CY = 1
    2. ACC = 10000001
    After the instruction RAL is executed twice the contents of CY and ACC respectively will be

  10. A.
    1 and 00000011
    B.
    0 and 00000111
    C.
    1 and 00000111
    D.
    0 and 00000011

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Assuming that k is an integer what would the result of following expression in C
    k = 2* 3 / 5 + 4 / 4 + 8 - 2 - 4 / 8

  12. A.
    8
    B.
    7
    C.
    7.5
    D.
    zero

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following is a valid real constant?

  14. A.
    1281
    B.
    1281.0
    C.
    KM
    D.
    11821

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the following is a valid real constant?

  16. A.
    -81.56
    B.
    73
    C.
    10254,1
    D.
    42

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. The decimal equivalent of binary 1101.11 is

  18. A.
    9.75
    B.
    13.75
    C.
    11.50
    D.
    11.75

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Zip floppy has a capacity of

  20. A.
    50 MB
    B.
    500 MB
    C.
    25 MB
    D.
    100 MB or 250 MB

    View Answer

    Workspace

    Discuss Discuss in Forum