Language Processors MCQs

Language Processors MCQs

Our experts have gathered these Language Processors MCQs through research, and we hope that you will be able to see how much knowledge base you have for the subject of Language Processors by answering these 20 multiple-choice questions.
Get started now by scrolling down!

1: An Interpreter is

A.   A program that automate the translation of assembly language into machine language

B.   Program that accepts a program written in a high level language and produces an object program

C.   Is a program that appears to execute a source program as if it were machine language

D.   A program that places programs into memory and prepares them for execution

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

A.   To assign storage to all variables referenced in the source program

B.   All of these

C.   To assign storage to literals, and to ensure that the storage is allocated and appropriate locations are initialized

D.   To assign storage to all temporary locations that are necessary for intermediate results

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

A.   Reductions

B.   Literal table

C.   Terminal table

D.   Identifier table

4: Job Control Language (JCL) statements are Used to

A.   All of these

B.   Specify, to the operating system, the beginning and end of a job in a batch

C.   Allocate the CPU to a job

D.   Read the input from the slow-speed card reader to the high-speed magnetic disk

5: The system/370 assembler language

A.   Is used to remember which of the general-purpose registers are currently

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 a term that refers to the control programs of an operating system

E.   Available as base registers, and what base addresses they contain

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

A.   Addresses any symbolic, not absolute

B.   All of these

C.   Introduction of data to program is easier

D.   It is mnemonic and easy to read

7: Assembler is

A.   A program that accepts a program written in a high level language and produces an object program

B.   A program that places programs into memory and prepares them for execution

C.   Is a program that appears to execute a source program as if it were machine language

D.   A program that automate the translation of assembly language into machine language

8: The macro processor must perform

A.   Save the macro definitions

B.   Expand macro calls and substitute arguments

C.   All of these

D.   Recognize macro definitions and macro calls

9: The action of parsing the source program into the proper syntactic classes is known as

A.   Syntax analysis

B.   General syntax analysis

C.   Interpretation analysis

D.   Lexical analysis

10: Assembly code data base is associated with

A.   Consists of a full or partial list or the tokens as they appear in the program. Created

B.   A permanent table of decision rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure

C.   A permanent table which lists all key words and special symbols of the language in symbolic form

D.   Assembly language version of the program which is created by the code generation phase and is input to the assembly phase

E.   By Lexical analysis and used for syntax analysis and interpretation

11: A non-relocatable program is one which

A.   All of these

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

C.   Can itself perform the relocation of its address-sensitive portions

D.   Consists of a program and relevant information for its relocation

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

A.   Independent one-pass processor

B.   Independent two-pass processor

C.   Processor incorporated into pass of a standard two-pass assembler

D.   All of these

13: In analyzing the compilation of PL/I program, the term "Syntax analysis" is associated with

A.   Creation of more optional matrix

B.   Use of macro processor to produce more optimal assembly code

C.   Recognition of basic elements and creation of uniform symbols

D.   Recognition of basic syntactic constructs through reductions

14: The advantage(s) inherent to using high level languages is/are:

A.   Fewer people, less management and shorter transition in learning time

B.   A greater degree of machine independence

C.   Improved debugging capability, and superior documentation

D.   All of these

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

A.   Linking loader

B.   Load and go

C.   Cross compiler

D.   Assembler

16: A permanent table of decision rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure

A.   Consists of a full or partial list of the tokens as they appear in the program. Created by Lexical analysis and used for syntax analysis and interpretation

B.   A permanent table which lists all key words and special symbols of the language in symbolic form

C.   Contains all constants in the program

17: Systems software is a program that directs the overall operation of the computer, facilitates its use and interacts with the users. What are the different types of this software?

A.   Operating system

B.   Languages

C.   All of these

D.   Utilities

18: A relocate program form is the one which

A.   All of these

B.   Can itself perform the relocation of its address-sensitive portions

C.   Consists of a program and relevant information for its relocation

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

19: If special forms are needed for printing the output, the programmer specifies these forms through

A.   IPL

B.   Load modules

C.   JCL

D.   Utility programs

20: Multiprogramming was made possible by

A.   Neither input/output units that operate independently of the CPU nor operating systems

B.   Input/output units that operate independently of the CPU

C.   Both input/output units that operate independently of the CPU and operating systems

D.   Operating systems