Language processors MCQs

52. The advantage(s) of incorporating the macro processor into pass 1 is/ are_______________?

A. many functions do not have to be implemented twice
B. more flexibility is available to the programmer in which he/she may use all the features of the assembler in conjunction with macros
C. Functions are combined and it is not necessary to create intermediate files as output from the macro processor and input to the assembler
D. All of the above
✅ The correct answer is option D.

53. A self-relocating program is one which_________________?

A. consists of a program and relevant information for its relocation
B. can itself perform the relocation of its address-sensitive portions
C. 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
D. All of the above
✅ The correct answer is option B.

58. The function(s) of the Syntax phase is/ are__________________?

A. to build a uniform symbol table
B. to build a literal table and an identifier table
C. to parse the source program into the basic elements or tokens of the language
D. 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
✅ The correct answer is option D.

59. Assembly code data base is associated with__________________?

A. a permanent table which lists all key words and special symbols of the language in symbolic form
B. assembly language version of the program which is created by the code generation phase and is input to the assembly phase
C. a permanent table of decision rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure
D. consists of a full or partial list or the tokens as they appear in the program. Created by Lexical analysis and used for syntax analysis and interpretation
✅ The correct answer is option B.

60. A base register table___________________?

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

Scroll to Top