Home / ECE / Microprocessors :: Section 3

ECE :: Microprocessors

  1. Which of the following is not a valid character constant in C?

  2. A.
    'A'
    B.
    '2'
    C.
    '='
    D.
    2

  3. Consider the following program in Basic

    5 READ R
    10 D = 2 * R
    20 A = 3.1416 * D * D / 4
    30 PRINT A

    Assuming that R = 3.0, the output A =

  4. A.
    2.827
    B.
    28.27
    C.
    282.7
    D.
    2827

  5. Consider the following statements about Java variables

    1. Java variable must start with a letter or underscore or dollor sign.
    2. Java variable can not start with a digit.
    3. After the first character the variable can have any combination of letters or numbers.
    4. Capitalization of letters must be consistent.
    Which of the above are correct?

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

  7. A microprocessor is generally

  8. A.
    single chip SSI
    B.
    single chip MSI
    C.
    single chip LSI
    D.
    any of the above

  9. Consider the following program in C

    int k;
    float a, b, c;
    k = a* b* c / 100 + 2.5 / 2 - 0.3 * 9


    if a - 5.0, b = 2.0 and c = 3.0 the final result k =

  10. A.
    1
    B.
    - 1
    C.
    + 1.15
    D.
    - 1.15

  11. A computer program is used to read N and print the sum 12 + 22 + 32 +.....+ N2. If N = 10, the print out will show the number

  12. A.
    100
    B.
    10
    C.
    385
    D.
    285

  13. Which of the following arithmetic operations requires only one operand in FORTRAN 77?

  14. A.
    Addition
    B.
    Multiplication
    C.
    Negative
    D.
    Substraction

  15. Which of the following is not a valid variable name in C?

  16. A.
    p_ce1
    B.
    1p_ce
    C.
    p1_ce
    D.
    p _ced

  17. Which of the following array names is invalid in Fortran 77?

  18. A.
    B(2, 4)
    B.
    B(M, 3)
    C.
    B(M, R)
    D.
    B(3, 6)

  19. A nibble corresponds to

  20. A.
    2 successive bits of data
    B.
    4 successive bits of data
    C.
    8 successive bits of data
    D.
    16 successive bits of data