Home / CSE / Language Processors :: Section 2

CSE :: Language Processors

  1. A base register table

  2. A.
    is a term that refers to the control programs of an operating system
    B.
    is used to remember which of the general-purpose registers are currently available as base registers, and what base addresses they contain
    C.
    allows multiple programs to reside in separate areas of core at the same time
    D.
    allows the programmer to write base registers and displacements explicitly in the source program

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

  4. A.
    Algorithm
    B.
    Decision Table
    C.
    Program
    D.
    All of the above

  5. The function(s) of the Storage Assignment is/are:

  6. A.
    to assign storage to all variables referenced in the source program
    B.
    to assign storage to all temporary locations that are necessary for intermediate results
    C.
    to assign storage to literals, and to ensure that the storage is allocated and appropriate locations are initialized
    D.
    All of the above

  7. An algorithm is best described as

  8. A.
    A computer language
    B.
    A step by step procedure for solving a problem
    C.
    A branch of mathematics
    D.
    All of the above

  9. Indicate whether the statement LDA B is a statement, in

  10. A.
    Machine language
    B.
    Assembly language
    C.
    High level language
    D.
    All of the above

  11. In analyzing the compilation of PL/I program, the term "Machine independent optimization" is associated with

  12. 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

  13. The function(s) of the Syntax phase is/ are:

  14. A.
    to recognize the major constructs of the language and to call the appropriate action routines that will generate the intermediate form or matrix for these constructs
    B.
    to build a literal table and an identifier table
    C.
    to build a uniform symbol table
    D.
    to parse the source program into the basic elements or tokens of the language

  15. Which table is a permanent databases that has an entry for each terminal symbol?

  16. A.
    Terminal table
    B.
    Literal table
    C.
    Identifier table
    D.
    Reductions

  17. Indicate which of the following is not true about an interpreter?

  18. 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

  19. When a computer is first turned on or restarted, a special type of absolute loader, called a ______ is executed

  20. A.
    loader
    B.
    linker
    C.
    bootstrap loader
    D.
    None of the above