Computer Science EngineeringLanguage 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
- A. relocating loaders
- B. relative loaders
- C. both (a) and (b) D. None of the above
Correct Answer: C
When a computer is first turned on or restarted, a special type of absolute loader, called a ______ is executed
- A. loader
- B. linker
- C. bootstrap loader
- D. None of the above
Correct Answer: C
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
Correct Answer: A
Which table is a permanent databases that has an entry for each terminal symbol?
- A. Terminal table
- B. Literal table
- C. Identifier table
- D. Reductions
Correct Answer: A
The function(s) of the Syntax phase is/ are:
- 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
Correct Answer: A
Indicate whether the statement LDA B is a statement, in
- A. Machine language
- B. Assembly language
- C. High level language
- D. All of the above
Correct Answer: B
The function(s) of the Storage Assignment is/are:
- 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
Correct Answer: D
A loader 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. is a program that appears to execute a source program as if it were machine language
- D. program that accepts a program written in a high level language and produces an object program
Correct Answer: A
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?
- A. non-reusable module
- B. serially reusable
- C. reenterable module
- D. recursive module
Correct Answer: C
Convert the .BYTE h#F8 assembly language pseudo-ops into hexadecimal machine language:
- A. 0111EF
- B. 03 16
- C. F8
- D. 42 65 61 72
Correct Answer: C
In an absolute loading scheme, which loader function is accomplished by assembler
- A. Reallocation
- B. Allocation
- C. Linking
- D. Loading
Correct Answer: A
Convert the 48 machine language instructions into assembly language, assuming that they were not generated by pseudo-ops:
- A. ASRA
- B. LOADA h#OD4E, i
- C. STOREA h#014B, d
- D. ADDA h#01FE, i
Correct Answer: A