Top-down parsers are predictive parsers, because:
1. next tokens are predicted
2.length of the parse tree is predicted before hand
3.lowest node in the parse tree is predicted
4.next lower level of the parse tree is predicted
Answer:1
Posted Date:-2022-06-04 19:24:38
1. Optimizing
2.One pass compiler
3.Cross compiler
4. Multipass compiler
Answer 31.one micro operation
2.one macro operation
3.one instruction to be completed in a single pulse
4.one machine code instruction
Answer 21.Right-most derivation
2.Right-most derivation in reverse
3.Left-most derivation
4.Left-most derivation in reverse
Answer 31.Collection of hardware components
2.Collection of input-output devices
3.Collection of software routines
4.All of the above
Answer 31.word processing
2.virtual memory
3.compiling
4.multitasking
Answer 41.user defined address symbols are correlated with their binary equivalent
2.the syntax of the statement is checked and mistakes, if any, are listed
3.object program is generated
4.semantic of the source program is elucidated
Answer 11.(iii) (iv) (i) (ii)
2.(iv) (iii) (ii) (i)
3. (ii) (iv) (i) (iii)
4.(ii) (iv) (iii) (i)
Answer 11.XCHG
2.ASSUME
3.SHORT
4. DB
Answer 11.Checking type compatibility
2.Suppressing duplication of error message
3.Storage allocation
4.All of these above
Answer 41.0
2.1
3.2
4.None of These
Answer 41. (ii), (iii) and (iv)
2.(i), (iii) and (iv)
3.(iii) and (iv)
4.(i), (ii), (iii) and (iv)
Answer 41. LALR
2.LR
3.SLR
4.LLR
Answer 11.Loader
2.Linker
3.Editor
4.Assembler
Answer 41.it shows attribute values at each node.
2. there are no inherited attributes.
3.it has synthesized nodes as terminal nodes.
4.every non-terminal nodes is an inherited attribute.
Answer 11.Identifier table
2.Page map table
3.Literal table
4.Terminal table
Answer 41.start address of the available main memory
2.total size of the program
3.actual address of the data location
4.absolute values of the operands used
Answer 11.imperative and declarative statements
2.imperative and assembler directives
3.imperative and declarative statements as well as assembler directives
4.declarative statements and assembler directives
Answer 31.JAVA
2.LEX
3.YACC
4.MATLAB
Answer 31.Context sensitive grammar
2.Non context free grammar
3.Context free grammar
4.None of the above
Answer 31. dependent on the operating system
2.dependent on the compiler
3.dependent on the hardware
4.independent of the hardware
Answer 31.tokens are identified.
2.the syntactic groups are identified.
3.set of instructions are identified.
4.machine instructions are identified.
Answer 11.Application programmer
2.System programmer
3.Operating system
4.All of the above
Answer 31.ax = 003CH; CF = 0
2.ax = 001EH; CF = 0
3.ax = 007BH; CF = 1
4.ax = 00B7H; CF = 1
Answer 11.ax = FFF5 h and cx = 0 h
2.ax = FFF6 h and cx = 0 h
3.ax = FFF7 h and cx = 0A h
4.ax = FFF5 h and cx = 0A h
Answer 21.removal of all labels.
2.removal of values that never get used. c.
3. removal of function which are not involved.
4.removal of a module after its use.
Answer 21.2
2.3
3.4
4.5
Answer 41.Code Optimization
2.Syntactic Analysis
3.Lexical Analysis
4.Semantic Analysis
Answer 31.Allocation
2.Linking
3.Reallocation
4.Both (a) and (b)
Answer 41.code optimization obtained by the use of cheaper machine instructions
2.reduction in accuracy of the output
3.reduction in the range of values of input variables
4.reduction in efficiency of the program
Answer 11.Label and value
2.Only value
3.Mnemonic
4.Memory Location
Answer 41.cannot be performed before relocation
2.cannot be performed after relocation
3.can be performed both before and after relocation
4.is not required if relocation is performed
Answer 21.Compiling
2.Booting
3.Refreshing
4.Reassembling
Answer 21.Serially usable procedure
2.Concurrent procedure
3.Re-entrant procedure
4.Top down procedure
Answer 31.loop optimization
2.local optimization
3.constant folding
4.data flow analysis
Answer 31.Check the validity of a source string
2.Determine the syntactic structure of a source string
3.Both a and b
4.None of these
Answer 31.Syntax analysis
2.Lexical analysis
3.Interpretation analysis
4.Uniform symbol generation
Answer 21.Compile time
2.Run time
3.Linking time
4.Pre-processing time
Answer 21.Top-down parsing
2.Recursive-descent parsing
3.Predictive
4. Syntax tree
Answer 31.Virtual memory
2.Interrupts
3.Cache memory
4.Secondary memory
Answer 41. next tokens are predicted
2.length of the parse tree is predicted before hand
3.lowest node in the parse tree is predicted
4.next lower level of the parse tree is predicted
Answer 11.extensible
2.encapsulated
3.overloaded
4.None of the above
Answer 11.Build the symbol table
2.Construct the intermediate code
3.Separate mnemonic opcode and operand fields
4.All of the above
Answer 41.build the symbol table
2.construct the intermediate code
3.separate mnemonic opcode and operand field
4.none of these
Answer 41.Build the symbol table
2.Construct the machine code
3.Separate mnemonic opcode and operand fields
4.None of these
Answer 41.Build the symbol table
2.Construct the intermediate code
3.Separate mnemonic opcode and operand fields
4.None of the above
Answer 41.Hash addressing
2.Chaining
3.Indexing
4.None of these
Answer 31.Regular
2.Context – Sensitive
3.Context free
4.None of these
Answer 21.Regular
2.Context-sensitive
3.Context free
4.Syntax tree
Answer 21.Lexical analysis is breaking the input into tokens
2.Syntax analysis is for parsing the phrase
3.Syntax analysis is for analyzing the semantic
4.None of these
Answer 31.If linked origin ≠ translated origin, relocation must be performed by the linker
2.If load ≠ linked origin, the loader must perform relocation
3.A linker always perform relocation, whereas some loaders do not
4.None of These
Answer 4