logo

CuriousTab

CuriousTab

Discussion


Home Electronics and Communication Engineering Microprocessors Comments

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

  • Correct Answer
  • x = 7 

    Explanation
    The operator + = means add and assign.

    Microprocessors problems


    Search Results


    • 1. 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
    • 2. If A = 20 and B = - 7 in PASCAL, A mod B =

    • Options
    • A. 6
    • B. 2
    • C. - 1
    • D. 3
    • Discuss
    • 3. 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
    • 4. 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
    • Discuss
    • 5. 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
    • 6. 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
    • 7. Which of the following can not be used as a variable name in C?

    • Options
    • A. else
    • B. coal
    • C. ram
    • D. vendy
    • Discuss
    • 8. In Java it is possible to have

      1. An array of integers
      2. An array of string objects
      3. An array of arrays
      4. An array on integer and strings
      Which of the above are correct?

    • Options
    • A. All
    • B. 1, 2 and 3 only
    • C. 1 and 2 only
    • D. 1, 3 and 4 only
    • Discuss
    • 9. Which of the following is invalid in Basic?

    • Options
    • A. A ** B + - C
    • B. A ** B - C
    • C. A * B - C
    • D. A * B - C ** D
    • Discuss
    • 10. 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

    • Options
    • A. 103
    • B. 106
    • C. 109
    • D. none of the above
    • Discuss


    Comments

    There are no comments.

Enter a new Comment