Computer Science Engineering

Language Processors MCQs

Practice Language Processors MCQs for competitive exams.

Language Processors MCQs

Practice questions from this topic.

Loaders that allow for program relocation are called

  1. A. relocating loaders
  2. B. relative loaders
  3. C. both (a) and (b) D. None of the above
Report Error

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

  1. A. loader
  2. B. linker
  3. C. bootstrap loader
  4. D. None of the above
Report Error

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

  1. A. Interpreter generates an object program from the source program
  2. B. Interpreter is a kind of translator
  3. C. Interpreter analyses each source statement every time it is to be executed
  4. D. All of the above
Report Error

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

  1. A. Terminal table
  2. B. Literal table
  3. C. Identifier table
  4. D. Reductions
Report Error

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

  1. 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
  2. B. to build a literal table and an identifier table
  3. C. to build a uniform symbol table
  4. D. to parse the source program into the basic elements or tokens of the language
Report Error

Indicate whether the statement LDA B is a statement, in

  1. A. Machine language
  2. B. Assembly language
  3. C. High level language
  4. D. All of the above
Report Error

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

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

A loader is

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

In what module, multiple instances of execution will yield the same result even if one instancy has not terminated before the next one has begun?

  1. A. non-reusable module
  2. B. serially reusable
  3. C. reenterable module
  4. D. recursive module
Report Error

Convert the .BYTE h#F8 assembly language pseudo-ops into hexadecimal machine language:

  1. A. 0111EF
  2. B. 03 16
  3. C. F8
  4. D. 42 65 61 72
Report Error

In an absolute loading scheme, which loader function is accomplished by assembler

  1. A. Reallocation
  2. B. Allocation
  3. C. Linking
  4. D. Loading
Report Error

Convert the 48 machine language instructions into assembly language, assuming that they were not generated by pseudo-ops:

  1. A. ASRA
  2. B. LOADA h#OD4E, i
  3. C. STOREA h#014B, d
  4. D. ADDA h#01FE, i
Report Error