Question 1 : An intermediate language should be
- Machine dependent
- Machine independent
- close to source language in terms of syntax
- same as assembly language of the processor
Question 2 : The number of tokens in the C statement sum = sum + i ; is
- 3
- 4
- 5
- 6
Question 3 : Macro prototype statement specifies the.........
- Definition of the Macro
- Name of the Macro and list of formal parameters
- Call of Macro
- Macro substitution
Question 4 : Which pseudo opcode indicates the list of symbols referred in the subroutine but defined in other subroutines?
- EXTRN
- ENTRY
- START
- USING
Question 5 : In loader functions, relocation means ________
- To move the program code and data into main memory
- To assign new address to each module whenever the program executes
- To change address in address sensitive instructions to load time address
- To move a block of program to remote machine while it is executing
Question 6 : MDT is used to store
- Formal parameters and index numbers
- Actual parameters and index numbers
- Macro name and MDTP
- Definition of the Macro
Question 7 : Type checking is normally done during
- Lexical Analysis
- Syntax Analysis
- Syntax Directed Translation
- Code optimization
Question 8 : A system program that combines the separately compiled modules of a program into a form suitable for execution
- Assembler
- Linker
- Cross compiler
- Load and go
Question 9 : Language recognized by a parser is __________
- Regular
- Context Sensitive
- Context Free
- Recursive
Question 10 : Binder does not perform the function of ______
- Allocation
- Relocation
- Linking
- Loading
Question 11 : Which of the following comment about peep-hole optimization is true?
- It is applied to small part of the code and applied repeatedly
- It is applied to optimize large loops that do not fit in memory
- It can be applied to a portion of the code that is not contiguous
- It is applied in symbol table to optimize the memory requirements
Question 12 : A top-down parser works on the principles of
- Right most derivation
- Rightmost derivation in reverse
- Leftmost derivation
- Leftmost derivation in reverse
Question 13 : Function of ASSUME statement in 8086 ALP (Assembly Language Program) is to _____________
- assign initial values to variable/ memory locations
- map segment names to the base registers of 8086 microprocessor
- assume default values of registers of 8086 microprocessor
- assign literal values to memory locations
Question 14 : Instructions which do not occupy space in the object program are called _____ .
- Declarative statements
- Imperative statements
- Assembler Directives
- No Operation (NOP)
Question 15 : Choose a string that does not belong to the language (a + bb)*.(b+aa)*
- abbabbbaa
- aabbaabb
- aaab
- abbba
Question 16 : Macro is preferred when _______
- the code block is large and occurs only once
- the code block is small and repeats several times
- the code block is large and repeats several times
- the code block is small and occurs only once
Question 17 : In Direct linking loader, absolute (load time) address of all modules and publicly available symbols (symbols accessible to all modules) is stored in _________
- ESD
- GEST
- LESA
- RLD
Question 18 : Which pseudo opcode indicates a register of IBM 360 is available as base register?
- USING
- START
- DC
- DS
Question 19 : A pseudo opcode that maps symbol in label field to the absolute value present in operand field is ______
- DC
- EQU
- MAP
- ABS
Question 20 : A software that helps programmer in finding logical errors in program through partial execution is _______
- Debugger
- Compiler
- Linker
- Editor
Question 21 : In a two pass assembler the object code generation is done during the ?
- Second pass
- First pass
- Zeroth pass
- Not done by assembler
Question 22 : The optimization which avoids test at every iteration is
- Loop unrolling
- Loop jamming
- Constant folding
- Loop invariant reduction
Question 23 : Statements supported by conditional macro processor are
- AIF
- AGO
- Both AIF and AGO
- Neither AIF nor AGO
Question 24 : Predictive parser is a _____ parser
- LL(0)
- LL(1)
- LR(0)
- LR(1)
Question 25 : In Absolute loading scheme, linking is done by _______
- Programmer
- Translator
- Linker
- Loader
Question 26 : LR stands for
- Left to right reading of input
- Left to right reduction
- Left most derivation in reverse
- Left to right reading of input and right most derivation in reverse
Question 27 : Linking is process of binding
- Reference to internal data
- Refrence to external function only
- reference to external data only
- Reference to external data and external function
Question 28 : Which phase of the compiler is Syntax Analysis?
- First
- Second
- Third
- Fourth
Question 29 : TEXT cards contain information about
- All symbols that are defined in this program that may be referenced elsewhere & all symbols referenced in this program but defined elsewhere.
- Actual Object code translated version of source program
- Those Location in the program whose content depend on the address at which program is placed
- End of Object Deck
Question 30 : Register allocation is carried out by ____________
- Scanner
- Optimizer
- Semantic Analyzer
- Code Generator