Recent questions tagged compiler-design

3 votes
4 answers
1381
given GrammarE → E + EE → E * EE → ( E )E → idFind set of handles and viable prefixes for the input string id1 + id2 * id3
14 votes
2 answers
1382
Consider the following C program: int main (void) { in/*this is an example*/z; double/*is it an error?*/y; print( “This is simple” ); return 0; }- How many Different ...
0 votes
3 answers
1384
A symbol is a compile time data structure. In which of the following phase/s a symbol is modified ?Only semantic analysisNone of theseOnly lexical analysisLexical analysi...
0 votes
1 answer
1385
Which of the following symbol table implementation is based on the property of locality of reference?Search TreeHash TreeSelf-organizing ListArray
3 votes
1 answer
1386
0 votes
1 answer
1387
0 votes
2 answers
1388
Consider the following statements:S1: A syntax tree should not have keywords as leaves.S2: A syntax tree is a condensed form of parse tree.Which of the above statement/s ...
0 votes
1 answer
1389
2 votes
1 answer
1395
can LR(1) parser parse any context-free grammar/language ??and hence every regular language can be parsed by LR(1) parsers.
0 votes
0 answers
1396
What is the type of error (earliest phase) identified during the compilation of the following program ? #include <stdio.h main( ) { int x, y, z; x = y = z = 10.3; printf(...
0 votes
1 answer
1398
Pick the correct statement about interpreter:A. No Intermediate Object Code is GeneratedB. No machine code is generatedI. AII. BIII. Both A and BIv. Neither a nor...
1 votes
1 answer
1399
The same identifier X is used to represent two distinct variables in the same function in a C program, then which of the following statement is / are TRUE?S1: The lexical...
2 votes
1 answer
1401
Which of the following symbol table implementation is based on the property of locality of reference? Self-organizing list Hash tree Search tree Array
3 votes
1 answer
1405
0 votes
1 answer
1409
3 votes
1 answer
1410
which of the following expressions have l-values ? which have r- valuesa)A[I+1] b)*A c)&Ad)&(*A) e)*(&A) f)*(&(&A))