logo

CuriousTab

CuriousTab

Discussion


Home Electronics and Communication Engineering Microprocessors Comments

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


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

  • Correct Answer
  • 1, 2, 3 only 

    Explanation
    0.562 is not an integer constant.

    Microprocessors problems


    Search Results


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

    • Options
    • A. 1 a
    • B. a 1 2
    • C. a b 123
    • D. a b c 123
    • Discuss
    • 2. Which of the following is not a valid real constant in C?

    • Options
    • A. 426
    • B. 321.0
    • C. -621.231
    • D. +201.2314
    • Discuss
    • 3. Which of the following real variable names is not valid in Fortran?

    • Options
    • A. BETA
    • B. ALPHA
    • C. A
    • D. AB * 2
    • Discuss
    • 4. Which of the following computer memories is fastest?

    • Options
    • A. Cache
    • B. Primary
    • C. Mass storage
    • D. Off line back up
    • Discuss
    • 5. In a computer the instructions, data, intermediate and final results during processing are held in ALU.

    • Options
    • A. True
    • B. False
    • Discuss
    • 6. Computer virus can hide itself in a diskette but not in a hard disk.

    • Options
    • A. True
    • B. False
    • Discuss
    • 7. IC (instruction cycle), FC (fetch cycle) and EC (executive cycle) are related as

    • Options
    • A. IC = FC - EC
    • B. IC = FC + EC
    • C. IC = FC + 2EC
    • D. EC = IC + EC
    • Discuss
    • 8. MICR stands for

    • Options
    • A. Magnetic Ink Chart Receipt
    • B. Magnetic Ink Character Recognition
    • C. Magnetic Ink Chart Recognition
    • D. Magnetic Ink Character Receipt
    • Discuss
    • 9. Binary number 1101.101 is equivalent to decimal number?

    • Options
    • A. 13.5
    • B. 13.75
    • C. 13.625
    • D. 13.875
    • Discuss
    • 10. The number of storage classes in C is

    • Options
    • A. 2
    • B. 3
    • C. 4
    • D. 6
    • Discuss


    Comments

    There are no comments.

Enter a new Comment