logo

CuriousTab

CuriousTab

Discussion


Home Electronics and Communication Engineering Microprocessors Comments

  • Question
  • 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


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

  • Correct Answer
  • 2.6 

    Explanation
    (2.57 + 0.06) 10 = 26.3 ? Consider the following program in Pascal X = 2.57 X = (X + 0.06) * 10 I = TRUNC (X) X = I X = X / 10 .

    Microprocessors problems


    Search Results


    • 1. To multiply a number by 8 in 8085 we have to use RAL instruction

    • Options
    • A. once
    • B. twice
    • C. thrice
    • D. four times
    • Discuss
    • 2. Assertion (A): If source and destination addresses are made implicit the length of instruction is reduced.

      Reason (R): 8085 has only 3 addressing modes.


    • Options
    • 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
    • Discuss
    • 3. Which of the following is not a valid real constant in C?

    • Options
    • A. 1.2 e 2.0
    • B. -2.3 e - 2
    • C. -2.3 E 2
    • D. -2.3 e 2
    • Discuss
    • 4. Assertion (A): Microprocessor 8085 has on-chip oscillator with inbuilt crystal.

      Reason (R): For frequency stability crystal oscillator is preferred.


    • Options
    • 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
    • Discuss
    • 5. Z flag is reset if an ALU operation results in 0.

    • Options
    • A. True
    • B. False
    • Discuss
    • 6. EEPROM permits

    • Options
    • A. read operation only
    • B. read and byte erase operations
    • C. read, byte erase and byte write operations
    • D. read, byte erase, byte write and chip erase operations
    • Discuss
    • 7. If A = 20 and B = - 7 in PASCAL, A mod B =

    • Options
    • A. 6
    • B. 2
    • C. - 1
    • D. 3
    • Discuss
    • 8. A 256 x 4 EPROM has

    • Options
    • A. 8 address pins and 4 data pins
    • B. 8 address pins and 8 data pins
    • C. 4 address pins and 8 data pins
    • D. 4 address pins and 4 data pins
    • Discuss
    • 9. Assume that x = 5 and y = 2. Then in Java operation x + = y, the result is

    • Options
    • A. x = 7
    • B. x = 2
    • C. x = 3
    • D. x = 2
    • Discuss
    • 10. Which of the following is not a valid integer constant in C (for 16 bit)?

    • Options
    • A. 321
    • B. -162
    • C. -65321
    • D. +1
    • Discuss


    Comments

    There are no comments.

Enter a new Comment