Home / ECE / Microprocessors :: Section 3

ECE :: Microprocessors

  1. Consider the following rules about integer constant in C

    1. An integer constant must have at least one digit.
    2. An integer constant must not have a decimal point.
    3. An integer constant may be positive or negative.
    4. The default sign is positive.
    5. A maximum of one comma or blank is allowed.
    Which of the above are correct?

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

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Consider the following logical IF statement in Fortran 77

    IF (SALT. LE. PEPPER) 11
    GO TO 13

    The above statement using arithmetic IF statement would be

  4. A.
    IF (SALT - PEPPER) 11, 11, 13
    B.
    IF (SALT - PEPPER) 13, 11, 11
    C.
    IF (SALT - PEPPER) 13, 13, 11
    D.
    IF (SALT - PEPPER) 11, 13, 13

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Consider the following rules for constructing variable names in C

    1. It can have alphabets, digits or underscores but no other special character.
    2. The maximum number of characters is 8.
    3. The first character may be an alphabet or digit but not underscore.
    Which of the above are correct?

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

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. The correct way of writing the expression in Pascal is

  8. A.
    N * V * V / 2 + G * H / 3D
    B.
    N * V * V / 2.0 + G * H / (3.0 *D)
    C.
    N * V * V / 2 + G * H / 3.0 * D
    D.
    N * V * V / 2.0 + G * H / 3.0 * D

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. A microprocessor uses 3 MHz oscillator. The duration of one T state is

  10. A.
    1 μs
    B.
    0.666 μs
    C.
    0.333 μs
    D.
    3 μs

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Assertion (A): Dynamic RAM needs refreshing.

    Reason (R): Capacitors tend to loose charge.

  12. A.
    Both A and R are correct and R is correct explanation of A
    B.
    Both A and R are correct but R is not correct explanation of A
    C.
    A is correct R is wrong
    D.
    A is wrong R is correct

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. When one operand is real and one integer in Pascal, which of the following operations are not allowed?

  14. A.
    + and -
    B.
    *
    C.
    /
    D.
    Div and Mod

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Consider the following statements about an array in Pascal

    1. An array has a fixed predetermined number of components.
    2. Any component of an array can be accessed using an index.
    3. An array variable name refers to a group of quantities by a single name.
    4. When array variables are used an appropriate declaration is required.
    Which of the above are correct?

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

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which of the following is a valid integer constant?

  18. A.
    17.0
    B.
    -18.58
    C.
    101.14
    D.
    -810

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. When two ALU 1C 74181 are cascaded

  20. A.
    the carry out of first stage is connected to carry in of second stage
    B.
    the carry in of first stage connected to carry in of second stage
    C.
    the carry in of first stage is connected to carry out of second stage
    D.
    the carry out of first stage is connected to carry out of second stage

    View Answer

    Workspace

    Discuss Discuss in Forum