A Pseudo Opcode That Maps Symbol in Label Field To The Absolute Value Present in Operand Field Is - DC EQU MAP ABS
A Pseudo Opcode That Maps Symbol in Label Field To The Absolute Value Present in Operand Field Is - DC EQU MAP ABS
Q1. A software that helps programmer in finding logical errors in program through
partial execution is _______
Option A: Debugger
Option B: Compiler
Option C: Linker
Option D: Editor
Q2. A pseudo opcode that maps symbol in label field to the absolute value present in
operand field is ______
Option A: DC
Option B: EQU
Option C: MAP
Option D: ABS
Q4. Instructions which do not occupy space in the object program are called _____ .
Option A: Declarative statements
Option B: Imperative statements
Option C: Assembler Directives
Option D: No Operation (NOP)
Q5. Which pseudo opcode indicates a register of IBM 360 is available as base
register?
Option A: USING
Option B: START
Option C: DC
1|Page
Option D: DS
Q6. In a two pass assembler the object code generation is done during the ?
Option A: Second pass
Option B: First pass
Option C: Zeroth pass
Option D: Not done by assembler
Q13. In Direct linking loader, absolute (load time) address of all modules and publicly
available symbols (symbols accessible to all modules) is stored in _________
2|Page
Option A: ESD
Option B: GEST
Option C: LESA
Option D: RLD
Q14. Which pseudo opcode indicates the list of symbols referred in the subroutine
but defined in other subroutines?
Option A: EXTRN
Option B: ENTRY
Option C: START
Option D: USING
Q16. A system program that combines the separately compiled modules of a program
into a form suitable for execution
Option A: Assembler
Option B: Linker
Option C: Cross compiler
Option D: Load and go
Q17. Choose a string that does not belong to the language (a + bb)*.(b+aa)*
Option A: abbabbbaa
Option B: aabbaabb
Option C: aaab
Option D: abbba
4|Page
These are sample MCQs to indicate pattern, may or
may not appear in examination
Q3. Which of the following coverts source program to code with .i extension?
Option A: Preprocessor
Option B: Compiler
Option C: Linker
Option D: Loader
Q15. In analyzing the compilation of PL/I program, the term "Machine independent
optimization" is assosiated with
Option A: recognization of basic syntactic construction through reductions
Option B: recognition of basic elements and creation of uniform symbols
Option C: creation of more optical matrix
Option D: use of macro-processor to produce more optimal assembly code
Q16. In analyzing the compilation of PL/I program the description " resolving symbolic
address ( lables ) and generating machine language " is associated with
Option A: assembly and output
Option B: code generation
Option C: storage assignment
Option D: syntax analysis
Q17. In analyzing the compilation of PL/I program the description " creation of more
optimal matrix " is assosiated with
Option A: assembly and output
Option B: code generation
Option C: syntax analysis
Option D: machine independent optimization
Q19. Substitution of values for names whose values are constant, is done in
Option A: local optimization
Option B: loop optimization
Option C: constant folding
Option D: data flow analysis
Q23. Which of the following is not the type of three address code?
Option A: Tuples
Option B: Quadrapules
Option C: Triples
Option D: Indirect triples
Q10. Which of the following system software always resides in the main memory ?
Option A: Text Editor
Option B: Assembler
Option C: Linker
Option D: Loader
While evaluating a postfix expression, when an operator is encountered, what is the correct
Q13. operation to be performed?
Option A: push it directly on to the stack
Option B: pop 2 operands, evaluate them and push the result on to the stack
Option C: pop the entire stack
Option D: ignore the operator
Q14. What is the result of the given postfix expression? abc*+ where a=1, b=2, c=3.
Option A: 4
Option B: 5
Option C: 6
Option D: 7
______________ is used to generate code for boolean expression and flow of control
Q17. statements in one pass.
Option A: Backpatching
Option B: Code-generator
Option C: Parser
Option D: Static checker
Q23. Substitution of values for names whose values are constant, is done in
Option A: loop optimization
Option B: constant folding
Option C: local optimization
Option D: Constant propogation
A shift reduce parser carries out the actions specified within braces immediately after
reducing,with
the corresponding rule of the grammar
s->xxW{print “1”}
s->y{print “2”}
w->sz{print “3”}
Q4.
Which of the following groups is/are token together into semantic structures?
Option A: Syntax analyzer
1|Page
University of Mumbai
Examination 2020 under cluster ___ (Lead College Shortname)
Q7. What is the name of the process that determining whether a string of tokens can
be generated by a grammar?
Option A: Analysing
Option B: Parsing
Option C: Translating
Option D: Recognizing
MEND
Option A: &ARG0
Option B: &ARG1
2|Page
University of Mumbai
Examination 2020 under cluster ___ (Lead College Shortname)
Option C: ADD
Option D: ARG
Q9. Which table holds the names of all macros defined in the program ?
Option A: Actual Parameter Table
Option B: Macro definition Table
Option C: Expansion Time Variable
Option D: Macro Name Table
Q11. A system program that combines the separately compiled modules of a program
into a form suitable for execution ?
Option A: Assembler
Option B: Linking loader
Option C: Cross compiler
Option D: Load and Go
Q12. Load address for the first word of the program is called
Option A: Linker address origin
Option B: Load address origin
Option C: Phase library
Option D: Absolute library
3|Page
University of Mumbai
Examination 2020 under cluster ___ (Lead College Shortname)
Q14. In a two pass assembler the object code generation is done during the ?
Option A: Second pass
Option B: First pass
Option C: Zeroeth pass
Option D: Not done by assembler
Q16. In a two pass assembler, adding literals to literal table and address resolution of
local symbols are done using ?
Option A: First pass and second respectively
Option B: Both second pass
Option C: Second pass and first respectively
Option D: Both first pass
Q17. Which of the following system program foregoes 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 ?
Option A: Macro processor
Option B: Load and go assembler
Option C: Two pass assembler
4|Page
University of Mumbai
Examination 2020 under cluster ___ (Lead College Shortname)
Option D: Compiler
Q18. An assembler is
Option A: programming language dependent
Option B: syntax dependant
Option C: machine dependant
Option D: data dependant
5|Page
University of Mumbai
Examination 2020 under cluster ___ (Lead College Shortname)
Q24. The _________ graph shows the basic blocks and their successor relationship
Option A: Flow
Option B: Control
Option C: DAG
Option D: Hamilton
Q25. A compiler that runs on one machine and produces code for a different machine is
called________
Option A: Cross Compiler
Option B: One Pass Compiler
Option C: Two Pass Compiler
Option D: Just In Time Compiler
6|Page
Program: BE Computer Engineering
Curriculum Scheme: Revised 2012
Examination: Third Year Semester VI (SAMPLE PAPER)
Course Code: CPC601 and Course Name: System Programming And Compiler
Construction
Time: 1 hour
Max. Marks: 50
==============================================================================
=============================================================================
Note to the students:- All the Questions are compulsory and carry equal marks .
Option B: ECL
Option C: CMOS
Option D: LSI
Q3. A grammar that produces more than one parse tree for some sentence is
called __________
Option A: Ambiguous
Option B: Unambiguous
Option C: Regular
Option D: None of the mentioned
1 | Page
Option B: Uses source code as its input
Option C: Is required to create a load module
Option D: None of the mentioned
Q10. Which of the following actions an operator precedence parser may take to
recover from an error?
Option A: Insert symbols onto the stack
Option B: Delete symbols from the stack
Option C: Inserting or deleting symbols from the input
Option D: All of the mentioned
2 | Page
Q13. A bottom up parser generates __________
Option A: Right most derivation
Option B: Right most derivation in reverse
Option C: Left most derivation
Option D: Left most derivation in reverse
Q16. Which of the following symbols table implementation is based on the property
of locality of reference?
Option A: Hash Table
Option B: Search tree
Option C: Self organizing list
Option D: Linear list
Q19. In a two pass assembler the object code generation is done during the ?
Option A: Second pass
Option B: First pass
Option C: Zeroeth pass
Option D: Not done by assembler
3 | Page
Option B: two pass
Option C: three pass
Option D: load and go
Q21. In a two pass assembler, adding literals to literal table and address resolution of
local symbols are done using ?
Option A: First pass and second respectively
Option B: Both second pass
Option C: Second pass and first respectively
Option D: Both first pass
Q22.
Translator for low level programming language were termed as
Option A: Assembler
Option B: Compiler
Option C: Linker
Option D: Loader
Q23. An assembler is
Option A: programming language dependent
Option B: syntax dependant
Option C: machine dependant
Option D: data dependant
4 | Page
University of Mumbai
Examination 2020 under cluster 3 (FCRIT)
For the students:- All the Questions are compulsory and carry equal marks .
Q1. Which one of the following is TRUE at any valid state in shift – reduce parsing?
Option A: Viable prefixes appear only at the bottom of the stack and not inside
Option B: Viable prefixes appear only at the top of the stack and not inside
Option C: The stack contains only a set of viable prefixes
Option D: The stack never contains viable prefixes
1|Page
University of Mumbai
Examination 2020 under cluster 3 (FCRIT)
Option C: relocation
Option D: loading
Q7. Which of the following data structure is used by Dynamic Linking loader?
Option A: Public & Extern table
Option B: Transfer Vector table
Option C: Literal table
Option D: Argument List Array table
S → iCtSS1 | a
S1 → eS | ε
C→b
2|Page
University of Mumbai
Examination 2020 under cluster 3 (FCRIT)
Q13. What is the maximum number of reduce moves that can be taken by a bottom-up
parser for a grammar with no epsilon- and unit-production (i.e., of type A→ϵ and
A→a) to parse a string with n tokens?
Option A: n/2
Option B: n-1
Option C: 2n
Option D: 2n-1
Q14. Which of the following is essential for converting an infix expression to the
postfix from efficiently?
Option A: An operator stack
Option B: An operand stack
Option C: An operand stack and an operator stack
Option D: A parse tree
Q16. Which of the following is called the subsequent filling of the labels when they are
determined?
Option A: Backpatching
Option B: Bootstrapping
Option C: Parsing
Option D: Forward patching
Q17. Which of the following is the graphical representation of three address statements?
Option A: Quadruples
Option B: Flow graph
Option C: Basic block
Option D: DFD
3|Page
University of Mumbai
Examination 2020 under cluster 3 (FCRIT)
Q20. Which of the following is not the example of function- preserving transformation?
Option A: Common subexpression elimination
Option B: Constant folding
Option C: Code motion
Option D: Dead-code elimination
Q21. The leaf nodes of a DAG are labelled by which of the following?
Option A: unique identifiers
Option B: operators
Option C: comments
Option D: intermediate computations
Principal
5|Page