c-programming-mcqs - Set (1)

Correct Answer: Orange && Worng Answer: Red

1. A program which translates a high-level language program into a machine language program is called ?

  • (A). Compiler
  • (B). Interpreters
  • (C). Both (A) and (B)
  • (D). None of the above
  • View Answer

    Explanation: Both are translator which translate one language to other.

    2. A sequence of instructions in a computer language to get the desired result is known as :

  • (A). An algorithm
  • (B). A decision table
  • (C). A program
  • (D). None of the above
  • View Answer

    Explanation: Not Avilable

    3. Which type of errors are flagged by Compilers ?

  • (A). Logical errors
  • (B). Syntax errors
  • (C). Both (A) and (B)
  • (D). None of these
  • View Answer

    Explanation: Compiler detect only syntax errors which involves incorrect punctuation, incorrect word sequence, undefined terms, or misuse of terms.

    4. An algorithm is best described as :

  • (A). A computer language
  • (B). A step by step procedure for solving a problem
  • (C). A branch of mathematics
  • (D). None of the above
  • View Answer

    Explanation: Not Avilable

    5. Bug means :

  • (A). A logical error in a program
  • (B). A difficult syntax error in a program
  • (C). Both (A) and (B)
  • (D). None of the above
  • View Answer

    Explanation: Bug means any type of error in a program.

    6. The part of a machine level instruction which tells the central processor what has to be done ?

  • (A). An operation code
  • (B). An address
  • (C). An operand
  • (D). None of the above
  • View Answer

    Explanation: Not Avilable

    7. Which of the following is not true about an interpreter?

  • (A). Interpreter generates an object program from the source program.
  • (B). Interpreter is a kind of translater
  • (C). Interpreter analysis each source statement every time it is to be executed.
  • (D). None of the above
  • View Answer

    Explanation: Not Avilable

    8. The errors that can be pointed out by the compiler are :

  • (A). Syntax errors
  • (B). Semantic errors
  • (C). Logical errors
  • (D). None of the above
  • View Answer

    Explanation: Not Avilable

    9. Which of the following statement is not true?

  • (A). FORTRAN is a high-level language.
  • (B). A FORTRAN program written for the IBM-PC, is totally different from a FORTRAN program written in for the execution of SUN machine.
  • (C). FORTRAN is extensively used to write programs for programming scientific computations.
  • (D). None of the above
  • View Answer

    Explanation: Not Avilable

    10. A program that converts a high level language program to a of instructions that can run on a computer is called a :

  • (A). Compiler
  • (B). Debugger
  • (C). Editor
  • (D). None of the above
  • View Answer

    Explanation: Not Avilable

    11. The name given to a sequence of instructions in a computer language to get the desired result is :

  • (A). A program
  • (B). An algorithm
  • (C). A pseudocode
  • (D). A decision table
  • View Answer

    Explanation: Not Avilable

    12. The language understood by a computer with out translation is called :

  • (A). Command language
  • (B). High-level language
  • (C). Assembly language
  • (D). Machine language
  • View Answer

    Explanation: Not Avilable

    13. The mapping from assembly language instructions into machine language instructions is

  • (A). Many-one
  • (B). One-many
  • (C). One-one
  • (D). Many-many
  • View Answer

    Explanation: Not Avilable

    14. A compiler is :

  • (A). A machine-independent and OS-independent
  • (B). Machine-dependent and OS-dependent
  • (C). Machine-dependent and OS-independent
  • (D). Machine-independent and OS-dependent
  • View Answer

    Explanation: Not Avilable

    15. Which one of the following statements is incorrect?

  • (A). A compiler compiles the source program.
  • (B). An assembler takes an assembly program as input.
  • (C). A compiler does the same type of function as interpreter.
  • (D). None of these
  • View Answer

    Explanation: Not Avilable