MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Computer Science
Language Processors
Quiz 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Q.1
Loaders that allow for program relocation are called
relocating loaders
relative loaders
both (a) and (b)
None of the above
Q.2
In analyzing the compilation of PL/I program, the term "Machine independent optimization" is associated with
recognition of basic syntactic constructs through reductions
recognition of basic elements and creation of uniform symbols
creation of more optional matrix
use of macro processor to produce more optimal assembly code
Q.3
The function(s) of the Syntax phase is/ are:
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
to build a literal table and an identifier table
to build a uniform symbol table
to parse the source program into the basic elements or tokens of the language
Q.4
Which table is a permanent databases that has an entry for each terminal symbol?
Terminal table
Literal table
Identifier table
Reductions
Q.5
Indicate which of the following is not true about an interpreter?
Interpreter generates an object program from the source program
Interpreter is a kind of translator
Interpreter analyses each source statement every time it is to be executed
All of the above
Q.6
When a computer is first turned on or restarted, a special type of absolute loader, called a ______ is executed
loader
linker
bootstrap loader
None of the above
Q.7
A base register table
is a term that refers to the control programs of an operating system
is used to remember which of the general-purpose registers are currently available as base registers, and what base addresses they contain
allows multiple programs to reside in separate areas of core at the same time
allows the programmer to write base registers and displacements explicitly in the source program
Q.8
A sequence of instructions, in a computer language, to get the desired result, is known as
Algorithm
Decision Table
Program
All of the above
Q.9
The function(s) of the Storage Assignment is/are:
to assign storage to all variables referenced in the source program
to assign storage to all temporary locations that are necessary for intermediate results
to assign storage to literals, and to ensure that the storage is allocated and appropriate locations are initialized
All of the above
Q.10
An algorithm is best described as
A computer language
A step by step procedure for solving a problem
A branch of mathematics
All of the above
Q.11
Indicate whether the statement LDA B is a statement, in
Machine language
Assembly language
High level language
All of the above
Q.12
In an absolute loading scheme, which loader function is accomplished by assembler
Reallocation
Allocation
Linking
Loading
Q.13
Convert the .BYTE h#F8 assembly language pseudo-ops into hexadecimal machine language:
0111EF
03 16
F8
42 65 61 72
Q.14
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?
non-reusable module
serially reusable
reenterable module
recursive module
Q.15
A loader is
a program that places programs into memory and prepares them for execution
a program that automate the translation of assembly language into machine language
is a program that appears to execute a source program as if it were machine language
program that accepts a program written in a high level language and produces an object program
Q.16
Bug means
A logical error in a program
A difficult syntax error in a program
Documenting programs using an efficient documentation tool
All of the above
Q.17
A relocate program form is the one which
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
consists of a program and relevant information for its relocation
can itself perform the relocation of its address-sensitive portions
All of the above
Q.18
In which way(s) can a macro processor for assembly language be implemented?
independent two-pass processor
independent one-pass processor
processor incorporated into pass of a standard two-pass assembler
All of the above
Q.19
A system program that combines the separately compiled modules of a program into a form suitable for execution
assembler
linking loader
cross compiler
load and go
Q.20
A compiler is
a program that places programs into memory and prepares them for execution
a program that automate the translation of assembly language into machine language
program that accepts a program written in a high level language and produces an object program
is a program that appears to execute a source program as if it were machine language
Q.21
The Process Manager has to keep track of:
the status of each program
the priority of each program
the information management support to a programmer using the system
both (a) and (b)
Q.22
Convert the 080D4E machine language instructions into assembly language, assuming that they were not generated by pseudo-ops:
ASRA
LOADA h#OD4E, i
STOREA h#014B, d
ADDA h#01FE, i
Q.23
In an absolute loading scheme, which loader function is accomplished by loader?
Reallocation
Allocation
Linking
Loading
Q.24
Which of the following system program forgoes the production of object code to generate absolute machine code and load it into the physical main storage location from which it will be executed immediately upon completion of the assembly?
two pass assembler
load-and-go assembler
macroprocessor
compiler
Q.25
Convert the 48 machine language instructions into assembly language, assuming that they were not generated by pseudo-ops:
ASRA
LOADA h#OD4E, i
STOREA h#014B, d
ADDA h#01FE, i
Q.26
The macro processor must perform
recognize macro definitions and macro calls
save the macro definitions
expand macro calls and substitute arguments
All of the above
Q.27
Convert the CHARI h#000F, s assembly language instructions into hexadecimal machine language:
0111EF
9.00E+09
DA000F
40
Q.28
The table created by lexical analysis to describe all literals used in the source program, is:
Terminal table
Literal table
Identifier table
Reductions
Q.29
Advantage(s) of using assembly language rather than machine language is/are:
It is mnemonic and easy to read
Addresses any symbolic, not absolute
Introduction of data to program is easier
All of the above
Q.30
The action of parsing the source program into the proper syntactic classes is known as
syntax analysis
lexical analysis
interpretation analysis
general syntax analysis
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page