Home / ECE / Microprocessors :: Section 1

ECE :: Microprocessors

  1. If A = 20 and B = - 7 in PASCAL, A mod B =

  2. A.
    6
    B.
    2
    C.
    - 1
    D.
    3

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of the following is a computer language?

  4. A.
    MS WORD
    B.
    Page maker
    C.
    MS EXCEL
    D.
    LISP

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which of the following DO statements is invalid in FORTRAN 77?

  6. A.
    DO 161 = 1, 15
    B.
    DO 16 1 = 1, 10, 1
    C.
    DO 16 I = - 5, 5, 2
    D.
    none of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Read the following statements about files in Pascal

    1. A file is a data structure which consists of a sequence of components of the same type.
    2. The number of components in a file is variable.
    3. The components in a file can be accessed only sequentially starting from the beginning of the file.
    Which of the above are correct?

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

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Consider the following C program int ram

    float alpha, gamma
    ram = 6400
    alpha = 0.562
    gamma = alpha * ram + 1


    Now consider the following statements about this program

    1. ram is an integer variable
    2. alpha, gamma are real variables
    3. *, + are arithmetic operators
    4. 0.562 may be an integer constant or real constant
    Which of the above are correct?

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

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Let JCOKE = 98 and LPEPSI = 42 Consider the statement

    IF (JCOKE - 3 * LPEPSI) 5, 6, 7
    5 JCOKE = JCOKE + 5
    6 JCOKE = JCOKE + 8
    7 JCOKE = JCOKE + 11

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

  12. A.
    103
    B.
    106
    C.
    109
    D.
    none of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  14. A.
    426
    B.
    321.0
    C.
    -621.231
    D.
    +201.2314

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the following is not a valid integer constant in C (for 16 bit)?

  16. A.
    321
    B.
    -162
    C.
    -65321
    D.
    +1

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Assume that x = 5 and y = 2. Then in Java operation x + = y, the result is

  18. A.
    x = 7
    B.
    x = 2
    C.
    x = 3
    D.
    x = 2

    View Answer

    Workspace

    Discuss Discuss in Forum