logo

CuriousTab

CuriousTab

Discussion


Home Electronics and Communication Engineering Microprocessors Comments

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

  • Correct Answer
  • 1 a 

    Explanation
    First character must be alphabet.

    Microprocessors problems


    Search Results


    • 1. 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
    • 2. Which of the following real variable names is not valid in Fortran?

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

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

    • Options
    • A. True
    • B. False
    • Discuss
    • 5. 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
    • 6. 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
    • Discuss
    • 7. Computer virus can hide itself in a diskette but not in a hard disk.

    • Options
    • A. True
    • B. False
    • Discuss
    • 8. 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
    • 9. 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
    • 10. Binary number 1101.101 is equivalent to decimal number?

    • Options
    • A. 13.5
    • B. 13.75
    • C. 13.625
    • D. 13.875
    • Discuss


    Comments

    There are no comments.

Enter a new Comment