Language Processors Multiple Choice Questions - ObjectiveBooks

Language Processors Multiple Choice Questions

Practice Test: Question Set - 06


1. A compiler is
    (A) A program that places programs into memory and prepares them for execution
    (B) A program that automate the translation of assembly language into machine language
    (C) Program that accepts a program written in a high level language and produces an object program
    (D) Is a program that appears to execute a source program as if it were machine language

2. Assembler is
    (A) A program that automate the translation of assembly language into machine language
    (B) A program that accepts a program written in a high level language and produces an object program
    (C) A program that places programs into memory and prepares them for execution
    (D) Is a program that appears to execute a source program as if it were machine language

3. In analyzing the compilation of PL/I program, the term "Machine independent optimization" is associated with
    (A) Recognition of basic syntactic constructs through reductions
    (B) Recognition of basic elements and creation of uniform symbols
    (C) Creation of more optional matrix
    (D) Use of macro processor to produce more optimal assembly code

4. In analyzing the compilation of PL/I program, the term "Syntax analysis" is associated with
    (A) Recognition of basic syntactic constructs through reductions
    (B) Recognition of basic elements and creation of uniform symbols
    (C) Creation of more optional matrix
    (D) Use of macro processor to produce more optimal assembly code

5. Bug means
    (A) A logical error in a program
    (B) A difficult syntax error in a program
    (C) Documenting programs using an efficient documentation tool
    (D) All of the above

6. Which of the following might be used to convert high-level language instructions into machine language?
    (A) System software
    (B) Applications software
    (C) An operating environment
    (D) An interpreter

7. In which way(s) can a macro processor for assembly language be implemented?
    (A) Independent two-pass processor
    (B) Independent one-pass processor
    (C) Processor incorporated into pass of a standard two-pass assembler
    (D) All of the above

8. Job Control Language (JCL) statements are Used to
    (A) Read the input from the slow-speed card reader to the high-speed magnetic disk
    (B) Specify, to the operating system, the beginning and end of a job in a batch
    (C) Allocate the CPU to a job
    (D) All of the above

9. Indicate 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 translator
    (C) Interpreter analyses each source statement every time it is to be executed
    (D) All of the above

10. A non-relocatable program is one which
    (A) Cannot be made to execute in any area of storage other than the one designated for it at the time of its coding or translation
    (B) Consists of a program and relevant information for its relocation
    (C) Can itself perform the relocation of its address-sensitive portions
    (D) All of the above

Show and hide multiple DIV using JavaScript View All Answers