Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged lexical-analysis
0
votes
2
answers
91
Lexical error
In below line is there any lexical error or not if yes then why? int A=123456789;
In below line is there any lexical error or not if yes then why?int A=123456789;
deep05
675
views
deep05
asked
Feb 27, 2017
Compiler Design
compiler-design
lexical-analysis
descriptive
+
–
6
votes
7
answers
92
Type of error
Find the type of error produced by the following C code. main() { in/*comment t x; floa/*comment*/t gate; } Lexical error syntax error both a) and b) None of these
Find the type of error produced by the following C code.main() { in/*comment t x; floa/*comment*/t gate; }Lexical errorsyntax errorboth a) and b) None of these
Ashwani Kumar 2
5.3k
views
Ashwani Kumar 2
asked
Feb 7, 2017
Compiler Design
lexical-analysis
syntax-analysis
compiler-tokenization
+
–
4
votes
3
answers
93
MadeEasy Subject Test: Compiler Design - Lexical Analysis
Is the given answer correct?
Is the given answer correct?
Lucky sunda
1.7k
views
Lucky sunda
asked
Jan 6, 2017
Compiler Design
made-easy-test-series
compiler-design
compiler-tokenization
lexical-analysis
+
–
4
votes
3
answers
94
doubt
No of token generated? int main() { int ***p; printf("%d",***p); }
No of token generated? int main() { int *p; printf("%d", *p); }
firki lama
1.6k
views
firki lama
asked
Jan 5, 2017
Compiler Design
lexical-analysis
+
–
6
votes
3
answers
95
How is this lexical error ?
prasitamukherjee
5.7k
views
prasitamukherjee
asked
Dec 14, 2016
Compiler Design
compiler-design
lexical-analysis
test-series
+
–
14
votes
2
answers
96
Tokenization in lexical analysis
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 tokens are there in the above code.
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 ...
dd
3.4k
views
dd
asked
Dec 13, 2016
Compiler Design
compiler-design
compiler-tokenization
lexical-analysis
+
–
1
votes
1
answer
97
the same identifier X is used to represent two distinct variables in the same function in a C program,
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...
Akriti sood
863
views
Akriti sood
asked
Dec 8, 2016
Compiler Design
compiler-design
lexical-analysis
descriptive
+
–
0
votes
1
answer
98
lexical analyzer
lexical error is______ 1.an error produced by LA when illegal character is appear 2.an error produced by LA when missing left parenthesis in expression 3.an error produced by scanner when both operator and parenthesis appeared consecutively 4.all of above
lexical error is______1.an error produced by LA when illegal character is appear2.an error produced by LA when missing left parenthesis in expression3.an error produced b...
Hira Thakur
710
views
Hira Thakur
asked
Dec 3, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
1
votes
1
answer
99
error while compilation
vaishali jhalani
354
views
vaishali jhalani
asked
Nov 23, 2016
Compiler Design
compiler-design
lexical-analysis
test-series
+
–
4
votes
3
answers
100
lexical analysis
The number of tokens in the following expression is? + * * * < = & > { - + + + } ( >> ) + & &
The number of tokens in the following expression is?+ * * * < = & { - + + + } ( > ) + & &
vaishali jhalani
1.5k
views
vaishali jhalani
asked
Nov 22, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
0
votes
1
answer
101
ME-FST2-Q33
I think none correct..anybody please check
I think none correct..anybody please check
KISHALAY DAS
319
views
KISHALAY DAS
asked
Nov 15, 2016
Compiler Design
compiler-design
lexical-analysis
numerical-answers
made-easy-test-series
+
–
1
votes
1
answer
102
Explain??
thor
265
views
thor
asked
Nov 14, 2016
Compiler Design
compiler-design
lexical-analysis
test-series
+
–
15
votes
2
answers
103
GATE CSE 1987 | Question: 1-xvii
Using longer identifiers in a program will necessarily lead to: Somewhat slower compilation A program that is easier to understand An incorrect program None of the above
Using longer identifiers in a program will necessarily lead to:Somewhat slower compilationA program that is easier to understandAn incorrect programNone of the above
makhdoom ghaya
5.0k
views
makhdoom ghaya
asked
Nov 8, 2016
Compiler Design
gate1987
compiler-design
lexical-analysis
+
–
2
votes
1
answer
104
Self Doubt
I came across few Compiler Design Doubts, Please provide your cent. $Q_1 :$ Can lexical analyser detect some/any type of errors? I think yes, because while scanning to identify tokens, it may be the cases that a string pattern doesn't match with any keyword (or) ... Left linear) $\color{navy}{A \rightarrow aA}$(Right Linear). What can be said about $\color{navy}{A \rightarrow aAb}$
I came across few Compiler Design Doubts, Please provide your cent.$Q_1 :$ Can lexical analyser detect some/any type of errors?I think yes, because while scanning to iden...
mcjoshi
1.1k
views
mcjoshi
asked
Nov 1, 2016
Compiler Design
compiler-design
lexical-analysis
variable-scope
+
–
0
votes
2
answers
105
Self made
Which Phase(s) of compiler produce error(s) in the following program? #include<stdio.h> int main() { nit a b ; a = 10; b = 20; printf("%d%d",a,b); return 0; } a) Lexical Analysis b) Syntax Analysis c) Semantic Analysis d) Both a and b
Which Phase(s) of compiler produce error(s) in the following program?#include<stdio.h>int main(){ nit a b ; a = 10; b = 20; printf("%d%d",a,b); ret...
Jithin Jayan
714
views
Jithin Jayan
asked
Oct 16, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
1
votes
1
answer
106
self
typechecking is done by : 1. lexical analyser 2. syntax analyser 3. semantic analyser 4. ICG
typechecking is done by :1. lexical analyser2. syntax analyser3. semantic analyser4. ICG
kashyap.rj
319
views
kashyap.rj
asked
Oct 10, 2016
Compiler Design
compiler-design
lexical-analysis
intermediate-code
+
–
2
votes
1
answer
107
CD
checking whether a variable is defined before use is syntax error or semantic error??
checking whether a variable is defined before use is syntax error or semantic error??
sudsho
434
views
sudsho
asked
Oct 3, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
2
votes
2
answers
108
..
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; } What is the kind of error produced in above code?
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; }What is the kind of er...
Rohan Mundhey
398
views
Rohan Mundhey
asked
Sep 28, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
1
votes
2
answers
109
..
Consider the following three statements: S1: The lexical analyzer detects an error when it discovers that an input prefix does not fit the specification of any token class. S2: The parser can help the lexical analyzer improve its ability to recover from ... making the list of legitimate tokens available to the error recovery routine. S3: The lexical analyzer can detect type checking errors.
Consider the following three statements:S1: The lexical analyzer detects an error when it discovers that an input prefix does not fit the specification of any token class...
Rohan Mundhey
1.1k
views
Rohan Mundhey
asked
Sep 28, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
1
votes
1
answer
110
Test series
Consider the following statements: S1: Writing "int main" as "intmain" in a C program shall result in lexical error. S2: Writing "int main" as "intmain" in a C program shall not result in lexical errors as compilers discard white spaces. Which of the above statements is /are true?
Consider the following statements:S1: Writing "int main" as "intmain" in a C program shall result in lexical error.S2: Writing "int main" as "intmain" in a C program shal...
Rohan Mundhey
472
views
Rohan Mundhey
asked
Sep 28, 2016
Compiler Design
compiler-design
lexical-analysis
test-series
+
–
0
votes
1
answer
111
Laxical Analysis
cosider the following normal statement: DO 5 I =1.25 also consider the following FORTRAN 90 statement: D0 5 I = 1.25 the difference between numbers of tokens in both the statement is____??? my doubt is what is FORTRAN 90?? what is difference between normal way of creating a token and this lang??
cosider the following normal statement:DO 5 I =1.25also consider the following FORTRAN 90 statement:D0 5 I = 1.25the difference between numbers of tokens in both the stat...
Hira Thakur
722
views
Hira Thakur
asked
Sep 26, 2016
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
6
votes
3
answers
112
UGC NET CSE | June 2010 | Part 2 | Question: 35
Which of the following is used for grouping of characters into tokens (in a computer) ? A parser Code optimizer Code generator Scanner
Which of the following is used for grouping of characters into tokens (in a computer) ?A parserCode optimizerCode generatorScanner
makhdoom ghaya
8.1k
views
makhdoom ghaya
asked
Sep 16, 2016
Compiler Design
ugcnetcse-june2010-paper2
compiler-design
lexical-analysis
+
–
1
votes
1
answer
113
Is 1.02e+4 is a token in C program...??
dhairya
478
views
dhairya
asked
Aug 28, 2016
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
2
votes
2
answers
114
compiler
In a two pass compiler, during the first pass: (A) user defined address symbols are correlated with their binary equivalent (B) the syntax of the statement is checked and mistakes, if any, are listed (C) object program is generated (D) semantic of the source program is elucidated.
In a two pass compiler, during the first pass:(A) user defined address symbols are correlated with their binary equivalent(B) the syntax of the statement is checked and m...
omveer
1.1k
views
omveer
asked
Aug 25, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
0
votes
1
answer
115
Token
What is token and how use it?
What is token and how use it?
jeewan0011
467
views
jeewan0011
asked
Aug 22, 2016
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
2
votes
2
answers
116
Interview Question
Can any one Write A C Program to print "ACCEPT" if the string has the pattern 0*1* + 1*0* otherwise "REJECT"
Can any one Write A C Program to print "ACCEPT" if the string has the pattern0*1* + 1*0*otherwise "REJECT"
LavTheRawkstar
630
views
LavTheRawkstar
asked
Jul 26, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
8
votes
1
answer
117
UGC NET CSE | December 2014 | Part 3 | Question: 20
How many tokens will be generated by the scanner for the following statement ? $x = x ∗ (a + b) - 5$; $12$ $11$ $10$ $07$
How many tokens will be generated by the scanner for the following statement ?$x = x ∗ (a + b) - 5$;$12$$11$$10$$07$
makhdoom ghaya
4.1k
views
makhdoom ghaya
asked
Jul 25, 2016
Compiler Design
ugcnetcse-dec2014-paper3
compiler-design
lexical-analysis
+
–
0
votes
1
answer
118
tokens
which of following symbols made as token by depending on next symbol? a=b>c<d#
which of following symbols made as token by depending on next symbol?a=b>c<d#
Naveen Chowdary 1
813
views
Naveen Chowdary 1
asked
Jun 29, 2016
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
0
votes
1
answer
119
Compile time error do not include:
Compile time error do not include: A. Lexical error B. Syntactic error C. Semantic error D. Logical error What is the answer? What are these errors? please explain with an example. Thanks in advance
Compile time error do not include:A. Lexical errorB. Syntactic errorC. Semantic errorD. Logical errorWhat is the answer?What are these errors?please explain with an examp...
sh!va
1.2k
views
sh!va
asked
Jun 22, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
0
votes
1
answer
120
Compiler Design Question
Recognition of basic syntactic constructs through reductions, this task is performed by (A) Lexical analysis (B) Syntax analysis (C) Semantic analysis (D) Structure analysis
Recognition of basic syntactic constructs through reductions, this task is performed by (A) Lexical analysis (B) Syntax ana...
snakeeye
1.3k
views
snakeeye
asked
Jun 19, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
Page:
« prev
1
2
3
4
5
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register