Computer Science - Language Processors MCQs Part 1
1. Which of the following functions is/ are performed by the loader?
A.
Allocate space in memory for the programs and resolve symbolic references between object decks
Allocate space in memory for the programs and resolve symbolic references between object decks
B.
Physically place the machine instructions and data into memory
Physically place the machine instructions and data into memory
C.
Adjust all address dependent locations, such as address constants, to correspond to the allocated space
Adjust all address dependent locations, such as address constants, to correspond to the allocated space
D.
All of the above
All of the above
Answer Option D
2. Convert the 11014B machine language instructions into assembly language, assuming that they were not generated by pseudo-ops:
A.
ASRA
ASRA
B.
LOADA h#OD4E, i
LOADA h#OD4E, i
C.
STOREA h#014B, d
STOREA h#014B, d
D.
ADDA h#01FE, i
ADDA h#01FE, i
Answer Option C
3. The advantage(s) of incorporating the macro processor into pass 1 is/ are:
A.
many functions do not have to be implemented twice
many functions do not have to be implemented twice
B.
Functions are combined and it is not necessary to create intermediate files as output from the macro processor and input to the assembler
Functions are combined and it is not necessary to create intermediate files as output from the macro processor and input to the assembler
C.
more flexibility is available to the programmer in which he/she may use all the features of the assembler in conjunction with macros
more flexibility is available to the programmer in which he/she may use all the features of the assembler in conjunction with macros
D.
All of the above
All of the above
Answer Option D
4. In which addressing mode, the effective address of the operand is generated by adding a constant value to the contents of register?
A.
absolute mode
absolute mode
B.
indirect mode
indirect mode
C.
immediate mode
immediate mode
D.
index mode
index mode
Answer Option D
5. A self-relocating program is one which
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
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
consists of a program and relevant information for its relocation
C.
can itself perform the relocation of its address-sensitive portions
can itself perform the relocation of its address-sensitive portions
D.
All of the above
All of the above
Answer Option C
6. If special forms are needed for printing the output, the programmer specifies these forms through
A. JCL
B. IPL
C. Utility programs
D. Load modules
Answer Option A
7. Which of the following systems software does the job of merging the records from two flies into one?
A. Documentation system
B. Utility program
C. Networking software
D. Security software
Answer Option B
8. Job Control Language (JCL) statements are Used to
A. Read the input from the slow-speed card reader to the high-speed magnetic disk
B. Specify, to the operating system, the beginning and end of a job in a batch
C. Allocate the CPU to a job
D. All of the above
Answer Option B
9. In analyzing the compilation of PL/I program, the term "Syntax analysis" is associated with
A. recognition of basic syntactic constructs through reductions
B. recognition of basic elements and creation of uniform symbols
C. creation of more optional matrix
D. use of macro processor to produce more optimal assembly code
Answer Option A
10. In analyzing the compilation of PL/I program, the term "Lexical analysis" is associated with
A. recognition of basic syntactic constructs through reductions
B. recognition of basic elements and creation of uniform symbols
C. creation of more optional matrix
D. use of macro processor to produce more optimal assembly code
Answer Option B
11. Terminal Table
A. a permanent table which lists all key words and special symbols of the language in symbolic form
B. a permanent table of decision rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure
C. 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
D. contains all constants in the program
Answer Option A
12. A compiler for a high-level language that runs on one machine and produces code for a different machine is called
A. optimizing compiler
B. one pass compiler
C. cross compiler
D. multipass compiler
Answer Option C
13. 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. a permanent table of decision rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure
C. 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
D. assembly language version of the program which is created by the code generation phase and is input to the assembly phase
Answer Option D
14. Indicate which of the following is not true about 4GL?
A. 4GL does not support a high-level of screen interaction
B. Many database management system packages support 4GLs
C. A 4GL is a software tool which is written, possibly, in some third generation language
D. All of the above
Answer Option A
15. Convert the BRNE h#01E6, i assembly language instructions into hexadecimal machine language:
A. 0111EF
B. 9001E6
C. DA000F
D. 40
Answer Option B
16. A development stategy whereby the executive control modules of a system are coded and tested first, is known as
A. Bottom-up development
B. Top-down development
C. Left-Right development
D. All of the above
Answer Option B
17. A non-relocatable program is one which
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
Answer Option A
18. Multiprogramming was made possible by
A. input/output units that operate independently of the CPU
B. operating systems
C. both (a) and (b)
D. neither (a) nor (b)
Answer Option C
19. An Interpreter is
A. is a program that appears to execute a source program as if it were machine language
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. a program that places programs into memory and prepares them for execution
Answer Option A
20. 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. Utilities
D. All of the above
Answer Option D
21. The system/370 assembler language
A. is a term that refers to the control programs of an operating system
B. is used to remember which of the general-purpose registers are currently available as base registers, and what base addresses they contain
C. allows multiple programs to reside in separate areas of core at the same time
D. allows the programmer to write base registers and displacements explicitly in the source program
Answer Option D
22. Convert the ASLA assembly language instructions into hexadecimal machine language:
A. 0111EF
B. 9001E6
C. DA000F
D. 40
Answer Option D
23. The advantage(s) inherent to using high level languages is/are:
A. Fewer people, less management and shorter transition in learning time
B. Improved debugging capability, and superior documentation
C. A greater degree of machine independence
D. All of the above
Answer Option D
24. Convert the ASCII/BEAR/assembly language pseudo-ops into hexadecimal machine language
A. 0111EF
B. 03 16
C. F8
D. 42 65 61 72
Answer Option D
25. Assembler is
A. a program that automate the translation of assembly language into machine language
B. a program that accepts a program written in a high level language and produces an object program
C. a program that places programs into memory and prepares them for execution
D. is a program that appears to execute a source program as if it were machine language
Answer Option A
26. In analyzing the compilation of PL/I program, the description "resolving symbolic address (labels) and generating machine language" is associated with
A. Assembly and output
B. Code generation
C. Storage assignment
D. Syntax analysis
Answer Option A
27. Convert the .WORD d#790 assemblylanguage pseudo-ops into hexadecimal machine language:
A. 0111EF
B. 03 16
C. F8
D. 42 65 61 72
Answer Option B
28. A translator which reads an entire programme written in a high level language and converts it into machine language code is:
A. assembler
B. translator
C. compiler
D. system software
Answer Option C
29. Which of the following might be used to convert high-level language instructions into machine language?
A. system software
B. applications software
C. an operating environment
D. an interpreter
Answer Option D
30. Which of the following program is not a utility?
A. Debugger
B. Editor
C. Spooler
D. All of the above
Answer Option C
6. If special forms are needed for printing the output, the programmer specifies these forms through
A. JCL
B. IPL
C. Utility programs
D. Load modules
Answer Option A
7. Which of the following systems software does the job of merging the records from two flies into one?
A. Documentation system
B. Utility program
C. Networking software
D. Security software
Answer Option B
8. Job Control Language (JCL) statements are Used to
A. Read the input from the slow-speed card reader to the high-speed magnetic disk
B. Specify, to the operating system, the beginning and end of a job in a batch
C. Allocate the CPU to a job
D. All of the above
Answer Option B
9. In analyzing the compilation of PL/I program, the term "Syntax analysis" is associated with
A. recognition of basic syntactic constructs through reductions
B. recognition of basic elements and creation of uniform symbols
C. creation of more optional matrix
D. use of macro processor to produce more optimal assembly code
Answer Option A
10. In analyzing the compilation of PL/I program, the term "Lexical analysis" is associated with
A. recognition of basic syntactic constructs through reductions
B. recognition of basic elements and creation of uniform symbols
C. creation of more optional matrix
D. use of macro processor to produce more optimal assembly code
Answer Option B
Comments
Post a Comment