System Programming MCQs
System Programming MCQs
2019
1. (a) ____ Loader is a loader which is executed when a system is first turned on or
restarted.
o Answer: Bootstrap
2. (b) A ____ links the program with other programs needed for its execution.
o Answer: Linker
3. (c) An assembly language is a ____ level programming language.
o Answer: Low
4. (d) Resolution of externally defined symbols is performed by a ____.
o Answer: Linker
5. (e) Parsing is also known as ____.
o Answer: Syntax analysis
2022
1. (a) A ____ instruction is used to move the content of a memory word to a register.
o Answer: Load
2. (b) The action of parsing the source program into the proper syntactic classes is
known as ____.
o Answer: Lexical analysis
3. (c) A ____ table is a data structure used by a language translator such as a compiler
or interpreter.
o Answer: Symbol
4. (d) Macro-processor is an inbuilt function of ____.
o Answer: Assembler
5. (e) Code optimization aims at improving the ____ of a program.
o Answer: Efficiency
1. (i) The system software that always resides in main memory is:
o Options: (a) Text Editor (b) Loader (c) Linker (d) Assembler
o Answer: (b) Loader
2. (ii) ____ is a generic term referring to any computer software, which manages and
controls the hardware so that application software can perform a task.
o Options: (a) Operating System (b) Application Software (c) System Software
(d) All of the above
o Answer: (a) Operating System
3. (iii) The translator that performs macro expansion is called a:
o Options: (a) Macro processor (b) Microprocessor (c) Micro pre-processor (d)
Assembler
o Answer: (a) Macro processor
4. (iv) The first pass of the assembler is only to define symbols so the second pass can
then generate the ____.
o Options: (a) Address, instruction (b) Symbols, data (c) Symbols, instruction,
and addresses (d) Address, symbol
o Answer: (c) Symbols, instruction, and addresses
2023
1. (a) When we start the computer, a special type of absolute loader is executed known
as ____.
o Answer: Bootstrap Loader
2. (b) Code optimization is an optional phase designed to improve ____.
o Answer: Efficiency
3. (c) The action of parsing the source program into the proper syntactic classes is
known as ____.
o Answer: Lexical analysis
4. (d) Macro definition is enclosed between a ____ statement and ____ statement.
o Answer: Macro, Mend
1. B. State whether the following statements are True or False:
1. (a) In a two-pass assembler, the symbol table is generated in the second pass.
o Answer: False
2. (b) Imperative, declarative, and assembler directives are three kinds of statements
supported by an assembly program.
o Answer: True
3. (c) A loader program links the program with other programs needed for its execution.
o Answer: True
4. (d) The translator which performs macro expansion is called a micro-preprocessor.
o Answer: False
5. (e) Program relocation is the process of modifying the address used in the address-
sensitive instructions of a program.
o Answer: True
6. (f) An assembly language is machine-dependent.
o Answer: True
7. (g) In a compiler, keywords of a language are recognized during the semantic
analysis of the program.
o Answer: False
8. (h) The opcode table contains two entries for each assembly language mnemonic.
o Answer: False
9. (i) A macro definition within another macro is called a nested macro.
o Answer: True
10. (j) The structure of a compiler consists of eight phases.
o Answer: False
1. (i) Select the addressing mode, in which the operand is given explicitly in the
instruction itself:
o Options: (a) Immediate mode (b) Absolute mode (c) Indirect mode (d) Index
mode
o Answer: (a) Immediate mode
2. (ii) Select the software that gives permission to your computer to communicate with
the user, applications, and hardware:
o Options: (a) System software (b) Word processor (c) Application software (d)
Database software
o Answer: (a) System software
3. (iii) The phase of the compiler that generates a stream of tokens is called:
o Options: (a) Syntax Analysis (b) Lexical Analysis (c) Semantic Analysis (d)
Parsing
o Answer: (b) Lexical Analysis
4. (iv) In an assembly language program, each statement consists of two operands, the
first operand is ____ and the second operand is ____:
o Options: (a) Register, accumulator (b) Register, memory word (c) Memory
word, register (d) Memory word, accumulator
o Answer: (b) Register, memory word