logo

CuriousTab

CuriousTab

Discussion


Home Electronics and Communication Engineering Microprocessors Comments

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

  • Correct Answer
  • 103 

    Explanation
    Since (J COKE - 3 x L PEPSI) is negative, statement 5 is executed and the result is 98 + 5 = 103.

    Microprocessors problems


    Search Results


    • 1. 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
    • 2. 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
    • 3. Which of the following can not be used as a variable name in C?

    • Options
    • A. else
    • B. coal
    • C. ram
    • D. vendy
    • Discuss
    • 4. 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
    • 5. 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
    • 6. While selecting a memory chip the feature which should be examined is

    • Options
    • A. capacity
    • B. ac characteristics
    • C. dc characteristics
    • D. all of the above
    • Discuss
    • 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?

    • Options
    • A. All
    • B. 1 and 2 only
    • C. 2 and 3 only
    • D. 1 and 3 only
    • Discuss
    • 8. In a computer the instructions, data, intermediate and final results during processing are held in ALU.

    • Options
    • A. True
    • B. False
    • Discuss
    • 9. Which of the following computer memories is fastest?

    • Options
    • A. Cache
    • B. Primary
    • C. Mass storage
    • D. Off line back up
    • Discuss
    • 10. Which of the following real variable names is not valid in Fortran?

    • Options
    • A. BETA
    • B. ALPHA
    • C. A
    • D. AB * 2
    • Discuss


    Comments

    There are no comments.

Enter a new Comment