Home / CSE / Language Processors :: Section 2

CSE :: Language Processors

  1. Convert the CHARI h#000F, s assembly language instructions into hexadecimal machine language:

  2. A.
    0111EF
    B.
    9001E6
    C.
    DA000F
    D.
    40

  3. The table created by lexical analysis to describe all literals used in the source program, is:

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

  5. Advantage(s) of using assembly language rather than machine language is/are:

  6. A.
    It is mnemonic and easy to read
    B.
    Addresses any symbolic, not absolute
    C.
    Introduction of data to program is easier
    D.
    All of the above

  7. The action of parsing the source program into the proper syntactic classes is known as

  8. A.
    syntax analysis
    B.
    lexical analysis
    C.
    interpretation analysis
    D.
    general syntax analysis

  9. The task(s) of the Lexial analysis phase is/are:

  10. A.
    to parse the source program into the basic elements or tokens of the language
    B.
    to build a literal table and an identifier table
    C.
    to build a uniform symbol table
    D.
    All of the above

  11. A relocate program form is the one which

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

  13. In which way(s) can a macro processor for assembly language be implemented?

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

  15. A system program that combines the separately compiled modules of a program into a form suitable for execution

  16. A.
    assembler
    B.
    linking loader
    C.
    cross compiler
    D.
    load and go

  17. A compiler is

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

  19. In an absolute loading scheme, which loader function is accomplished by loader?

  20. A.
    Reallocation
    B.
    Allocation
    C.
    Linking
    D.
    Loading