SPOS LAB(GROUP C-01) Implement UNIX system calls like ps, fork, join, exec family, and wait for process management (use shell script/ Java/ C programming)

This blog website contains educational material likes videos,notes pdf of Computer science & engineering field as well Information Technology.This blog contains resume writing tips and other technological contents,resume writing tips,resume sample,technical contents,c-dac course information etc.
A. Lexical Analysis(Scanner)
1. What is the output of lexical analyzer?
a) A set of RE
b) Syntax Tree
c) Set of Tokens
d) String Character
View Answer
2. Which symbol table implementation is based on the property of locality of reference?
a) Linear list
b) Search tree
c) Hash Table
d) Self Organisation
View Answer
3. Which of the following is true for operator precedence parsing?
a) For all pair of non-
4. What is an Object program?
a) Program written in machine language
b) Program to be translated into machine language
c) Translation of high-level language into machine language
d) None of the mentioned
View Answer
5. Which concept of FSA is used in the compiler?
a) Lexical analysis
b) Parser
c) Code generation
d) Code optimization
View Answer
6. Which concept of grammar is used in the compiler?
a) Lexical analysis
b) Parser
c) Code generation
d) Code optimization
View Answer
7. Which of the following are Lexemes?
a) Identifiers
b) Constants
c) Keywords
d) All of the mentioned
View Answer
1. What constitutes the stages of the compilation process?
a) Feasibility study, system, design, and testing
b) Implementation and documentation
c) Lexical analysis, syntax, Analysis and code generation
d) None of the mentioned
View Answer
2. The lexical analyzer takes _________ as input and produces a stream of _______ as output.
a) Source program, tokens
b) Token, source program
c) Either of the two
d) None of the mentioned
View Answer
3. Parsing is also known as ________
a) Lexical Analysis
b) Syntax Analysis
c) Semantic Analysis
d) Code Generation
View Answer
4. A compiler program written in a high level language is called ________
a) Source Program
b) Object Program
c) Machine Language Program
d) None of the mentioned
View Answer
5. System program such a compiler are designed so that they are ________
a) Re-enterable
b) Non-Usable
c) Serially usable
d) None of the mentioned
View Answer
6. Which of the following is not a feature of compiler?
a) Scan the entire program first and translate into machine code
b) To remove syntax errors
c) Slow for debugging
d) Execution time is more
View Answer
7. A system program that brings together separately compiled modules
of a program into a form language that is suitable for execution.
a) Assembler
b) Linking loader
c) Cross compiler
d) None of the mentioned
View Answer
8. A programmer by mistakes writes a program to multiply two numbers instead of dividing them, how can this error be detected?
a) Compiler
b) Interpreter
c) Compiler or interpreter
d) None of the mentioned
View Answer
B. Syntax Analysis(Parsing)
1. Which of the following derivations does a top-down parser use while parsing an input string?
a) Leftmost derivation
b) Leftmost derivation in reverse
c) Rightmost derivation
d) Rightmost derivation in reverse
View Answer
2. The process of assigning load addresses to the various parts of
the program and adjusting the code and data in the program to reflect
the assigned addresses is called?
a) Assembly
b) Parsing
c) Relocation
d) Symbol resolute
View Answer
3. Which of the following statements is false?
a) Left as well as right most derivations can be in Unambiguous grammar
b) An LL (1) parser is a top-down parser
c) LALR is more powerful than SLR
d) Ambiguous grammar can’t be LR (k)
View Answer
4. Which of the following grammar rules violate the requirements of an operator grammar?
(i) P -> QR
(ii) P -> QsR
(iii) P -> ε
(iV) P -> QtRr
a) (i) only
b) (i) and (iii) only
c) (ii) and (iii) only
d) (iii) and (iv) only
View Answer
5. Compute E.value for the root of the parse tree for the expression:2 # 3 & 5 # 6 &4.
a) 200
b) 180
c) 160
d) 40
View Answer
6. Given the following expression grammar:
E -> E * F | F+E | F
F -> F-F | id
which of the following is true?
a) * has higher precedence than +
b) – has higher precedence than *
c) + and — have same precedence
d) + has higher precedence than *
View Answer
7. Consider a program P that consists of two source modules
M1(contains reference to a function defined in M2) and M2 contained in
two different files.
a) Edit time
b) Compile time
c) Link time
d) Load time
View Answer
8. Which of the following suffices to convert an arbitrary CFG to an LL(1) grammar?
a) Removing left recursion only
b) Factoring the grammar alone
c) Factoring & left recursion removal
d) None of the mentioned
View Answer
9. Assume that the SLR parser for a grammar G has n1 states and the LALR parser for G has n2 states.
a) n1 is necessarily less than n2
b) n1 is necessarily equal to n2
c) n1 is necessarily greater than n2
d) none of the mentioned
View Answer
10. Match the following.
P. Regular expression 1. Syntax analysis
Q. Pushdown automata 2. Code generation
R. Dataflow analysis 3. Lexical analysis
S. Register allocation 4. Code optimization
a) P-4. Q-1, R-2, S-3
b) P-3, Q-1, R-4, S-2
c) P-3, Q-4, R-1, S-2
d) P-2, Q-1, R-4, S-3
View Answer
1. Find the TRUE statement?
I. There exist parsing algorithms for some programming languages which has O(3) complexity.
II. A programming language which allows recursion can be implemented with static storage allocation.
III. No L-attributed definition can be evaluated in The framework of bottom-up parsing.
IV. Code improving transformations can be performed at both intermediate code level and source Language.
a) I and II
b) I and IV
c) III and IV
d) I III and IV
View Answer
2. Which of the following describes a handle (as applicable to LR-parsing) appropriately?
a) Position where next reduce or shift operation will occur
b) The next step has use of Non-terminal for reduction
c) Used for reduction in a coming-up step along with a position in the
sentential form where the next shift or reduce operation will occur
d) Used in the next step for reduction along with a position in the
sentential form where the right hand side of the production may be found
View Answer
3. Which one of the following is a top-down parser?
a) Recursive descent parser
b) Operator precedence parser
c) An LR(k) parser
d) An LALR(k) parser
View Answer
4. Which of the following is TRUE?
a) Both P and Q are true
b) P is true and Q is false
c) P is false and Q is true
d) Both P and Q are false
View Answer
5. Consider the grammar defined by the following production rules:
S --> T * P
T --> U | T * U
P --> Q + P | Q
Q --> Id
U --> Id
Which one of the following is TRUE?
a) + is left associative, while ∗ is right associative
b) + is right associative, while ∗ is left associative
c) Both + and ∗ are right associative
d) Both + and ∗ are left associative
View Answer
6. The grammar A → AA | (A) | e is not suitable for predictive-parsing because the grammar is?
a) Ambiguous
b) Left recursive
c) Right recursive
d) An operator grammar
View Answer
7. Consider the grammar.
E → E + n | E × n | n
For a sentence n + n × n, the handles in the right-sentential form of the reduction are __________
a) n, E + n and E + n × n
b) n, E + n and E + n × n
c) n, n + n and n + n × n
d) n, E + n and E × n
View Answer
8. Which grammar rules violate the requirements of an operator grammar?
1. P → Q R
2. P → Q s R
3. P → ε
4. P → Q t R r
a) 1 only
b) 1 and 3 only
c) 2 and 3 only
d) 3 and 4 only
View Answer
9. Which of the following suffices to convert an arbitrary CFG to an LL(1) grammar?
a) Removing left Recursive alone
b) Factoring the grammar alone
c) Along with removing left recursion we also perform the factoring of the grammar
d) None of the mentioned
View Answer
10. In a bottom-up evaluation of a syntax directed definition its inherited attributes can do which of the following?
a) Always evaluated
b) Can be evaluated if the definition is L attributed
c) Can be evaluated if the definition has synthesized attributes
d) Never be evaluated
View Answer
1. What is the grammar for the below equations?
S → C C
C → c C | d
a) LL(1)
b) SLR(1) but not LL(1)
c) LALR(1) but not SLR(1)
d) LR(1) but not LALR(1)
View Answer
2. Which of the following statements is false?
a) Unambiguous grammar has both kind of derivations
b) An LL(1) parser is a top-down parser
c) LALR is more powerful than SLR
d) Ambiguous grammar can’t be LR(k)
View Answer
3. Given the following expression grammar:
E -> E * F | F + E | F
F -> F - F | id
Which of the following is true?
a) * has higher precedence than +
b) – has higher precedence than *
c) + and — have same precedence
d) + has higher precedence than *
View Answer
E
/ | \
E * F
| / | \
F F - F
| | |
id (3) id (4) id (5)
First ‘- ‘ is be evaluated then ‘ *’
4. Which one of the following is true at any valid state in shift-reduce parsing?
a) At the bottom we find the prefixes
b) None of the mentioned
c) Stack contains only viable prefixes
d) Stack consists of viable prefixes
View Answer
5. In the context of abstract-syntax-tree and control-flow-graph. Which one of the following is true?
a) In both AST and CFG if node N2 be the successor of node N1
b) For any input program, neither AST nor CFG will contain a cycle
c) The max number of successors of a node in an AST and a CFG depends on the input program
d) None of the mentioned
View Answer
6. Match the following.
List-I List-II
A. Lexical analysis 1. Graph coloring
B. Parsing 2. DFA minimization
C. Register allocation 3. Post-order traversal
D. Expression evaluation 4. Production tree
a) A – 2, B – 3, C – 1, D – 4
b) A – 2, B – 1, C – 4, D – 3
c) A – 2, B – 4, C – 1, D – 3
d) A – 2, B – 3, C – 4, D – 1
View Answer
7. Which of the following pairs is the most powerful?
a) SLR, LALR
b) Canonical LR ,LALR
c) SLR canonical LR
d) LALR canonical LR
View Answer
8. Consider the following grammar G.
S → F ⎪ H
F → p ⎪ c
H → d ⎪ c
Which one is true?
S1: All strings generated by G can be parsed with help of LL (1).
S2: All strings generated by G can be parsed with help of LR (1).
a) Only S1
b) Only S2
c) Both S1 & S2
d) None of the mentioned
View Answer
9. 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 to
parse a string with n tokens?
a) n/2
b) n-1
c) 2n-1
d) 2^n
View Answer
10. Consider the following two sets of LR (1) items of an LR (1) grammar.
X -> c.X, c/d
X -> .cX, c/d
X -> .d, c/d
X -> c.X, $
X -> .cX, $
X -> .d, $
Which one is false?
1. Cannot be merged since look ahead’s are different.
2. Can be merged but will result in S-R conflict.
3. Can be merged but will result in R-R conflict.
4. Cannot be merged since goto on c will lead to two different sets.
a) 1 only
b) 2 only
c) 1 and 4 only
d) 1, 2, 3 and 4 only
View Answer
1. Inherited attribute is a natural choice in ___________
a) Variable declarations record is maintained
b) L values and R values
c) All of the mentioned
d) None of the mentioned
View Answer
2. YACC builds up __________
a) SLR parsing table
b) Canonical LR parsing table
c) LALR parsing table
d) None of the mentioned
View Answer
3. In an absolute loading scheme which loader function is accomplished by assembler?
a) Re-allocation
b) Allocation
c) Linking
d) Loading
View Answer
4. A parser with the valid prefix property is advantageous because it __________
a) Detects errors
b) None of the mentioned
c) Errors are passed to the text phase
d) All of the mentioned
View Answer
5. The action of parsing the source program into proper syntactic classes is called __________
a) Syntax Analysis
b) Lexical Analysis
c) Interpretation analysis
d) General Syntax Analysis
View Answer
6. Relocating bits used by relocating loader are specified by __________
a) Relocating loader itself
b) Linker
c) Assembler
d) Macro Processor
View Answer
7. What is the binary equivalent of the decimal number 368?
a) 10111000
b) 110110000
c) 111010000
d) 111100000
View Answer
8. AB+(A+B)’ is equivalent to __________
a) A?B
b) A+B
c) (A+B)A
d) (A+B)B
View Answer
9. A top down parser generates __________
a) Rightmost Derivation
b) Right most derivation in reverse
c) Left most derivation
d) Left most derivation in reverse
View Answer
10. Running time of a program depends on __________
a) Addressing mode
b) Order of computations
c) The usage of machine idioms
d) All of the mentioned
View Answer
2. A bottom up parser generates __________
a) Right most derivation
b) Rightmost derivation in reverse
c) Leftmost derivation
d) Leftmost derivation in reverse
View Answer
3. A grammar that produces more than one parse tree for some sentence is called __________
a) Ambiguous
b) Unambiguous
c) Regular
d) None of the mentioned
View Answer
4. An optimizer Compiler __________
a) Is optimized to occupy less space
b) Is optimized to occupy less space & Optimize the code
c) Optimize the code
d) None of the mentioned
View Answer
5. The linker __________
a) Is similar to interpreter
b) Uses source code as its input
c) Is required to create a load module
d) None of the mentioned
View Answer
6. A latch is constructed using which two cross coupled?
a) AND OR gates
b) AND gates
c) NAND and NOR gates
d) NAND gates
View Answer
7. Pee Hole optimization __________
a) Loop Optimization
b) Local Optimization
c) Constant folding
d) Data Flow analysis
View Answer
8. The optimization which avoids test at every iteration is?
a) Loop unrolling
b) Loop jamming
c) Constant folding
d) None of the mentioned
View Answer
9. Scissoring enables __________
a) A part of data to be displayed
b) Entire data to be displayed
c) None of the mentioned
d) No data to be displayed
View Answer
10. Shift reduce parsers are __________
a) Top down Parser
b) Bottom Up parser
c) May be top down or bottom up
d) None of the mentioned
View Answer
C. Syntax Directed Definition & Translation
1. In a single pass assembler, most of the forward references can be avoided by putting the restriction ___________
a) On the number of strings/life reacts
b) Code segment to be defined after data segment
c) On unconditional rump
d) None of the mentioned
View Answer
2. The method which merges the bodies of two loops is?
a) Loop rolling
b) Loop jamming
c) Constant folding
d) None of the mentioned
View Answer
3. Assembly code data base is associated with ___________
a) Code is converted into assembly
b) Table of rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure
c) All of the mentioned
d) None of the mentioned
View Answer
4. The process manager has to keep track of ___________
a) Status of each program
b) Information to a programmer using the system
c) Status of each program & Information to a programmer using the system
d) None of the mentioned
View Answer
5. What is the function of the syntax phase?
a) recognize the language and to cal the appropriate action routines
that will generate the intermediate form or matrix for these constructs
b) Build a literal table and an identifier table
c) Build a uniform symbol table
d) Parse the source program into the basic elements or tokens of the language
View Answer
6. If E be a shifting operation applied to a function f, such that E(f) = f (x +β ), then?
a) E (αf+β g) = α E(f) +β E (g)
b) E (αf +β g ) =. ( α+ β ) + E (f + g)
c) E (αf +β g ) = α E (f+gβ)
d) E (αf +β g ) = αβ E (f + g)
View Answer
7. Pass I ______________
a) Assign address to all statements
b) Save the values assigned to all labels for use in pass 2
c) Perform some processing
d) All of the mentioned
View Answer
8. Which table is a permanent database that has an entry for each terminal symbol?
a) Terminal Table
b) Literal Table
c) Identifier Table
d) None of the mentioned
View Answer
9. Which of the following functions is performed by loader?
a) Allocate memory for the programs and resolve symbolic references between objects decks
b) Address dependent locations, such as address constants, to correspond to the allocated space
c) Physically place the machine instructions and data into memory
d) All of the mentioned
View Answer
10. The root directory of a disk should be placed ___________
a) At a fixed address in main memory
b) At a fixed location on the disk
c) Anywhere on the disk
d) None of the mentioned
View Answer
5. Which of the following is true for machine language?
a) Continuous execution of program segments
b) Depicting flow of data in a system
c) A sequence of instructions which solves a problem
d) The language which interacts with the computer using only the binary digits 1 and 0
View Answer
6. Software that measures, monitors, and controls events are ___________
a) System S/w
b) Real Time software
c) Scientific software
d) Business Software
View Answer
7. A linker is given object module for a set of programs that were compiled separately. What is not true about an object module?
a) Object code
b) Relocation bits
c) Names and locations of all external symbols denied in the object module
d) Absolute addresses of internal symbols
View Answer
8. The table created by lexical analysis to describe all literals used in the source program is?
a) Terminal table
b) Literal table
c) Identifier table
d) Reductions
View Answer
9. Which loader function is accomplished by loader?
a) Reallocation
b) Allocation
c) Linking
d) Loading
View Answer
10. What is Pass 2?
a) Assemble instruction and generate data
b) Perform processing of assembler
c) Write the object program
d) All of the mentioned
View Answer
1. Which is not true about syntax and semantic parts of a computer language?
a) Semantics is checked mechanically by a computer
b) Semantics is the responsibility of the programmer
c) All of the mentioned
d) None of the mentioned
View Answer
2. Which of the following statement is true?
a) SLR powerful than LALR
b) LALR powerful than Canonical LR parser
c) Canonical LR powerful than LALR parser
d) The parsers SLR= Canonical LR=LALR
View Answer
3. Which of the following features cannot be captured by CFG?
a) Syntax of if-then-else statements
b) Syntax of recursive procedures
c) A variable is declared before its use
d) Matching nested parenthesis
View Answer
4. In which of the following no information hiding is done?
a) Compile prig 1, prig 2
b) Run test, prog
c) Load R1, A
d) 001001000010101
View Answer
5. The identification of common sub-expression and replacement of
run-time computations by compile-time computations is _____________
a) Local optimization
b) Loop optimization
c) Constant folding
d) Data flow analysis
View Answer
6. The graph that shows basic blocks and their successor relationship is called ____________
a) Dag
b) Flow Graph
c) Control Graph
d) Hamilton Graph
View Answer
7. The specific task storage manager performs ____________
a) Allocation/ deal location of programs
b) Protection of storage area assigned to the program
c) Allocation/ deal location of programs & protection of storage area assigned to the program
d) None of the mentioned
View Answer
8. When a computer is rebooted, a special type of loader is executed called?
a) Compile and GO ” loader
b) Boot loader
c) Bootstrap Loader
d) Relating Loader
View Answer
9. What is the disadvantage of ” Compile and GO ” loading scheme?
a) Memory is wasted because the case occupied by the assembler is unavailable to the object program
b) Necessary to translate the users program
c) It is very difficult to handle multiple segments, even when the
source programs are in different languages and to produce orderly
modular programs
d) All of the mentioned
View Answer
10. What is the function of the storage assignment?
a) Assign storage to all variables referenced in the source program
b) Assign storage to all temporary locations that are necessary for intermediate results
c) Assign storage to literals, and to ensure that the storage is allocated and appropriate locations are initialized
d) All of the mentioned
View Answer
1. Choose the correct statement.
a) CFG is not LR
b) Ambiguous Grammar can never be LR
c) CFG is not LR & Ambiguous Grammar can never be LR
d) None of the mentioned
View Answer
2. How is the parsing precedence relations defined?
a) None of the mentioned
b) All of the mentioned
c) To delimit the handle
d) Only for a certain pair of terminals
View Answer
3. When will the relationship between ‘+’ and ‘-’ be <?
a) For unary minus
b) Minus is right associative
c) All of the mentioned
d) None of the mentioned
View Answer
4. When will the relationship between ‘<’ and ‘>’ be <?
a) >
b) <
c) =
d) Undefined
View Answer
This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Error Recovery in LR phase – 2”.
1. The grammar S → aSa | bS | c is?
a) LL(1) but not LR(1)
b) LR(1) but not LR(1)
c) Both LL(1) but not LR(1) & LR(1) but not LR(1)
d) None of the mentioned
View Answer
2. Recursive descent parsing is an example of ____________
a) Top down parsing
b) Bottom up parsing
c) Predictive parsing
d) None of the mentioned
View Answer
3. LR stands for ___________
a) Left to right
b) Left to right reduction
c) Right to left
d) Right most derivation and Left to right and a in reverse
View Answer
4. Which is the most powerful parser?
a) SLR
b) LALR
c) Canonical LR
d) Operator-precedence
View Answer
1. |
Compiler translates the source code to |
|
|
2. |
Which of the following groups is/are token together into semantic structures? |
|
|
3. |
Compiler should report the presence of __________ in the source program, in translation process. |
|
|
4. |
What is the output of lexical analyzer? |
|
|
5. |
How many parts of compiler are there? |
|
|
6. |
Grammar of the programming is checked at _______ phase of compiler. |
|
|
7. |
_________ is a process of finding a parse tree for a string of tokens. |
|
|
8. |
What is the action of parsing the source program into proper syntactic classes? |
|
|
9. |
Compiler can check ________ error. |
|
|
10. |
A grammar that produces more than one parse tree for some sentence is called as |
|
|
11. |
Lexical analysis is about breaking a sequence of characters into |
|
|
12. |
_______ is the most general phase structured grammar. |
|
|
13. |
________ is considered as a sequence of characters in a token. |
|
|
14. |
What is the name of the process that determining whether a string of tokens can be generated by a grammar? |
|
|
15. |
A _________ is a software utility that translates code written in higher language into a low level language. |
|
|
An intermediate code form is
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In operator precedence parsing , precedence relations are defoned
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Relocating bits used by relocating loader are specified by
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A compiler for a high level language that runs on one machine and produce code for different machine is called
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Synthesized attribute can be easily simulated by a
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The output of a lexical analyzer is
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Running time of a program depends on
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Reduction in strength means
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
_________or
scanning is the process where the stream of characters making up the
source program is read from left to right and grouped into tokens.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Task of the lexical analysis
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shift reduce parsers are
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Any description error can be repaired by
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The linker
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A grammar that produces more than one parse tree for some sentence is called
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In an absolute loading scheme which loader function is accomplished by assembler ?
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Intermediate code generation phase gets input from
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
We can optimize code by
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Code can be optimized at
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Whether a given pattern constitutes a token or not depends on the
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
YACC builds up
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type checking is normally done during
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A top down parser generates
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Which of the following does not interrupt a running process?
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In an absolute loading scheme, which loader function is accomplished by a loader ?
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The lexical analyzer takes_________as input and produces a stream of_______as output.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Which of the following can be accessed by transfer vector approach of linking?
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
___________is a graph representation of a derivation.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The optimization which avoids test at every iteration is
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Syntax directed translation scheme is desirable because
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A parser with the valid prefix property is advantageous because it
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Which of the following parser is most powerful?
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Inherited attribute is a natural choice in
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Macro-processors are ______
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In which way(s) a macroprocessor for assembly language can be implemented ?
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
‘Macro’ in an assembly level program is _______.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The optimization technique which is typically applied on loops is
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Concept which can be used to identify loops is
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Local and loop optimization in turn provide motivation for
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LR stands for
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Grammar of the programming is checked at ________ phase of compiler.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Which of the following is not an intermediate code form?
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A compiler that runs on one machine and produces code for a different machine is called
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The graph that shows basic blocks and their successor relationship is called
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A grammar is meaningless
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Which of the following is used for grouping of characters into tokens?
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
An optimizer compiler
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pee hole optimization
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The action of parsing the source program into proper syntactic classes is called
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comments
Post a Comment