0% found this document useful (0 votes)
40 views

System Programming MCQs

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

System Programming MCQs

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

System Programming MCQs

2019

1. A. Fill in the blanks:

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

1. B. State whether the following statements are True or False:

1. (a) Predictive parser can be recursive.


o Answer: True
2. (b) Bottom-up parsing involves only operator check.
o Answer: False
3. (c) In a two-pass assembler, the object code generation is done during the second
pass.
o Answer: True
4. (d) The machine-independent phase of a compiler is only code generation.
o Answer: False
5. (e) Type checking is normally done during syntax analysis.
o Answer: False
6. (f) Loader is a system software that resides in the main memory.
o Answer: True
7. (g) Bootstrapping is a language compiling other programs.
o Answer: True
8. (h) Removing whitespace is one of the functions of a lexical analyzer.
o Answer: True
9. (i) A Compiler construction has six phases.
o Answer: False
10. (j) A lexical phase of a compiler generates a syntax tree.
o Answer: False

1. C. Choose the correct answer:

1. (a) Translator for low-level programming languages were termed as:


o Options: (i) Assembler (ii) Compiler (iii) Linker (iv) Loader
o Answer: (i) Assembler
2. (b) Load address for the first word of the program is called:
o Options: (i) Linker address origin (ii) Load address origin (iii) Phase library
(iv) Absolute library
o Answer: (ii) Load address origin
3. (c) The translator that performs macro expansion is called a:
o Options: (i) Macro processor (ii) Macro pre-processor (iii) Micro pre-
processor (iv) Assembler
o Answer: (i) Macro processor
4. (d) A program in execution is called:
o Options: (i) Process (ii) Instruction (iii) Procedure (iv) Function
o Answer: (ii) Instruction
5. (e) An assembler is:
o Options: (i) Programming language dependent (ii) Machine dependent (iii)
Syntax dependent (iv) Data dependent
o Answer: (ii) Machine dependent

2022

1. A. Fill in the blanks:

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. B. State whether the following statements are True or False:

1. (a) An identifier table contains all the constants of a program.


o Answer: False
2. (b) A non-relocatable program is a program that can perform the relocation of its
own address-sensitive instructions.
o Answer: False
3. (c) A lexical expansion is typically employed to replace occurrences of actual
parameters by the corresponding formal parameters.
o Answer: True
4. (d) In a two-pass assembler, the task of Pass II is to synthesize the target program.
o Answer: True
5. (e) When a computer is first turned on or restarted, a special type of absolute loader
is executed called Boot Strap Loader.
o Answer: True
6. (f) Resolution of externally defined symbols is performed by the compiler.
o Answer: False
7. (g) An instruction pointer provides the offset value within the program stack.
o Answer: True
8. (h) When dealing with the branching code, the assembler replaces the target with its
address.
o Answer: True
9. (i) A macro within a macro is called a nested macro.
o Answer: True
10. (j) In a compiler, keywords of a language are recognized during the lexical analysis
of the program.
o Answer: True

1. C. Choose the correct answer:

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. Fill in the blanks:

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. C. Choose the correct answer:

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

You might also like