Recent questions tagged lexical-analysis

0 votes
3 answers
32
fro(int I=0; I <5;I++);what kind of compilation error is this ?
2 votes
3 answers
33
How many tokens in thisa>>=1;and a! , Will >>= and a! be treated as a single token ?
1 votes
0 answers
36
Which phase during compilation does a compiler recognize the $\textbf{keywords}$ of a language?Code generationParsingDataflow analysisLexical analysis
1 votes
0 answers
37
Which of the following data structures is used by a compiler to manage information about variables and their attributes?abstract syntax treesymbol tablesemantic stackpars...
1 votes
0 answers
38
The lexical analysis for a modern computer language like Java necessarily needs the power of which one of the following machine models?Turing machineNon-deterministic Pus...
0 votes
1 answer
40
int main(){ int a,b; a = 10; b = 11; printf(“%d %d”, a++,b );}The number of tokens is
0 votes
1 answer
41
4 votes
2 answers
42
2 votes
5 answers
43
What it the number of tokens in the following line?printf("%d numbers.", &x);
1 votes
2 answers
44
6 votes
1 answer
47
Consider the following code$x = (y + 5) + (^*z) * 10 - x /3 $Which of the following correctly identified by lexical analysis after scanning the above code?5 Identifiers...
0 votes
2 answers
48
The application of finite automata include:-a)Lexical Analyzerb)Text Editorc)Operating Systemd)All of the above
0 votes
1 answer
50
1 votes
1 answer
51
Find no of tokens in below program.#include<stdio.h>main(){ int I; int *pi = &I; //parent pointer scanf("%d",pi); printf("%d\n", I+5);}
0 votes
0 answers
53
0 votes
2 answers
56
1 votes
1 answer
58
6 votes
1 answer
60