Recent questions tagged lexical-analysis

0 0 votes
2 2 answers
704
704 views
Sir are the comments in the code deleted by the Lexical Analyser or the Pre-Processor? @Arjun sir??
1 1 vote
2 answers 2 answers
1.2k
1.2k views
What is the earliest stage compiler error for the following C code snippet:int x = @33;Lexical ErrorSyntax ErrorSemantic ErrorNone
0 0 votes
0 0 answers
528
528 views
Please list out the best free available video playlist for Lexical Analysis Topic from Compiler Design as an answer here (only one playlist per answer). We'll then select...
0 0 votes
1 1 answer
587
587 views
Two Important lexical categories are _____________ .White SpaceCommentsWhite Space $\&$ CommentsNone of the options
0 0 votes
1 1 answer
2.6k
2.6k views
what is the difference between lexical error and syntax error?
1 1 vote
2 2 answers
696
696 views
Which of the following machine model can be used in a necessary and sufficient sense for lexical analysis in modern computer language?Deterministic Push down AutomataFini...
2 2 votes
2 2 answers
1.0k
1.0k views
The number of tokens in the following C/C++ statement is :printf("i=%d, &i=%xx", i&i);$9$$6$$10$$12$
3 3 votes
6 6 answers
2.9k
2.9k views
The output of lexical analyzer is:A set of regular expressionsStrings of characterSyntax treeSet of tokens
2 2 votes
5 5 answers
3.5k
3.5k views
In a compiler, keywords of a language are recognized duringparsing of the programthe code generationthe lexical analysis of the programdataflow analysis
2 2 votes
1 1 answer
1.6k
1.6k views
The action of passing the source program into the proper syntactic class is known as:Syntax analysisLexical analysisInterpretation analysisUniform symbol generation
2 2 votes
8 answers 8 answers
6.9k
6.9k views
Consider the following statements related to compiler construction:Lexical Analysis is specified by context-free grammars and implemented by pushdown automata.Syntax Anal...
3 3 votes
0 0 answers
1.5k
1.5k views
Consult the language reference manuals to determinethe sets of characters that form the input alphabet (excluding those that may only appear in character strings or comme...
0 0 votes
1 1 answer
1.6k
1.6k views
Tagged languages like HTML or XML are different from conventional programming languages in that the punctuation (tags) are either very numerous (as in HTML) or a user-def...
0 0 votes
0 0 answers
1.7k
1.7k views
Divide the following C + + program:float limitedSquare(x) float x { /* returns x-squared, but never more than 100 */ return (x<=-10.0 || x>=10.0)?100:x*x; }into appropria...
3 3 votes
1 1 answer
4.8k
4.8k views
The above diagram is Transition Diagrams for identifiers. As we can see that the identifier is said to be accepted if it starts with a letter and ends with a valid delimi...
2 2 votes
2 2 answers
7.6k
7.6k views
which one of the following string can definitely said to be a token without looking at the next input:+(++,+=)return(return a)*(*=)=(==)++ , ( ) ‘ ; option e is: plusp...
2 2 votes
2 answers 2 answers
5.0k
5.0k views
Find the number of tokens in the following C code$:$main() { int x = 10 , *P ; int y = x ++ ; char * q ; P = & x ; q = 'A' ; if(*P>=10) { *P = x + 100; ...
1 1 vote
3 3 answers
1.2k
1.2k views
fro(int I=0; I <5;I++);what kind of compilation error is this ?
2 2 votes
3 answers 3 answers
3.1k
3.1k views
How many tokens in thisa>>=1;and a! , Will >>= and a! be treated as a single token ?
1 1 vote
2 2 answers
2.0k
2.0k views
Type of ERRORIf the following code compiled, what type of error produced by compiler? void main ()\{ $\quad$ int $\mathrm{x}=10$;$x=x+2$;$y=x+10$;printf ("\%d", \%d", x...
1 1 vote
1 1 answer
5.6k
5.6k views
Which of the following error will not come under Lexical error (Compiler Design - 1Mark)Spelling errorExceeding length of an identifier or numeric constantsAppearance of ...
1 1 vote
1 1 answer
554
554 views
Which phase during compilation does a compiler recognize the $\textbf{keywords}$ of a language?Code generationParsingDataflow analysisLexical analysis
1 1 vote
1 1 answer
525
525 views
Which of the following data structures is used by a compiler to manage information about variables and their attributes?abstract syntax treesymbol tablesemantic stackpars...