Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged lexical-analysis
1
1 vote
1
answers
1 answer
1.4k
1.4k views
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
1.4k
views
asked
Dec 8, 2016
Compiler Design
compiler-design
lexical-analysis
descriptive
+
–
0
0 votes
1
1 answer
1.1k
1.1k views
lexical analyzer
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
1.1k
views
asked
Dec 3, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
1
1 vote
1
1 answer
651
651 views
error while compilation
Consider the following C program : # includemain()Iint }x=10,y=12char * a;a=&x;x=1xab;printf("%d %d",x, * a);I Which of the following type of error (earliest phase) i...
vaishali jhalani
651
views
asked
Nov 23, 2016
Compiler Design
compiler-design
lexical-analysis
test-series
+
–
4
4 votes
3
3 answers
3.0k
3.0k views
lexical analysis
The number of tokens in the following expression is?+ * * * < = & { - + + + } ( > ) + & &
vaishali jhalani
3.0k
views
asked
Nov 22, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
0
0 votes
1
answers
1 answer
510
510 views
ME-FST2-Q33
I think none correct..anybody please check
KISHALAY DAS
510
views
asked
Nov 15, 2016
Compiler Design
compiler-design
lexical-analysis
numerical-answers
made-easy-test-series
+
–
1
1 vote
2
2 answers
536
536 views
Explain??
1. The advantage of panic mode of error recovery is thatit is simple to implementit is very effectiveit never gets into infinite loopnone of the above
thor
536
views
asked
Nov 14, 2016
Compiler Design
compiler-design
lexical-analysis
test-series
+
–
30
30 votes
3
answers
3 answers
8.3k
8.3k views
GATE CSE 1987 | Question: 1-xvii
Using longer identifiers in a program will necessarily lead to:Somewhat slower compilationA program that is easier to understandAn incorrect programNone of the above
Misbah Ghaya
8.3k
views
asked
Nov 8, 2016
Compiler Design
gate1987
compiler-design
lexical-analysis
+
–
28
28 votes
5
answers
5 answers
9.7k
9.7k views
GATE CSE 1987 | Question: 1-xi
In a compiler the module that checks every character of the source text is called:The code generator.The code optimiser.The lexical analyser.The syntax analyser.
Misbah Ghaya
9.7k
views
asked
Nov 8, 2016
Compiler Design
gate1987
compiler-design
compilation-phases
lexical-analysis
+
–
2
2 votes
1
1 answer
2.2k
2.2k views
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 iden...
mcjoshi
2.2k
views
asked
Nov 1, 2016
Compiler Design
compiler-design
lexical-analysis
variable-scope
+
–
0
0 votes
3
3 answers
1.7k
1.7k views
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); ret...
Jithin Jayan
1.7k
views
asked
Oct 16, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
1
1 vote
1
answers
1 answer
558
558 views
self
typechecking is done by :1. lexical analyser2. syntax analyser3. semantic analyser4. ICG
kashyap.rj
558
views
asked
Oct 10, 2016
Compiler Design
compiler-design
lexical-analysis
intermediate-code
+
–
2
2 votes
1
1 answer
901
901 views
CD
checking whether a variable is defined before use is syntax error or semantic error??
sudsho
901
views
asked
Oct 3, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
2
2 votes
3
3 answers
740
740 views
..
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 ...
Rohan Mundhey
740
views
asked
Sep 28, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
1
1 vote
2
2 answers
1.6k
1.6k views
..
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.6k
views
asked
Sep 28, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
1
1 vote
2
2 answers
906
906 views
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 shal...
Rohan Mundhey
906
views
asked
Sep 28, 2016
Compiler Design
compiler-design
lexical-analysis
test-series
+
–
0
0 votes
1
1 answer
1.1k
1.1k views
Laxical Analysis
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
1.1k
views
asked
Sep 26, 2016
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
6
6 votes
3
3 answers
9.5k
9.5k views
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 parserCode optimizerCode generatorScanner
Misbah Ghaya
9.5k
views
asked
Sep 16, 2016
Compiler Design
ugcnetcse-june2010-paper2
compiler-design
lexical-analysis
easy
+
–
1
1 vote
1
1 answer
893
893 views
Is 1.02e+4 is a token in C program...??
dhairya
893
views
asked
Aug 28, 2016
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
2
2 votes
2
2 answers
1.5k
1.5k views
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 m...
omveer
1.5k
views
asked
Aug 25, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
0
0 votes
1
1 answer
850
850 views
Token
What is token and how use it?
jeewan0011
850
views
asked
Aug 22, 2016
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
2
2 votes
2
2 answers
1.1k
1.1k views
Interview Question
Can any one Write A C Program to print "ACCEPT" if the string has the pattern0*1* + 1*0*otherwise "REJECT"
LavTheRawkstar
1.1k
views
asked
Jul 26, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
8
8 votes
1
answers
1 answer
5.2k
5.2k views
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$
Misbah Ghaya
5.2k
views
asked
Jul 25, 2016
Compiler Design
ugcnetcse-dec2014-paper3
compiler-design
lexical-analysis
easy
+
–
0
0 votes
1
1 answer
1.1k
1.1k views
tokens
which of following symbols made as token by depending on next symbol?a=b>c<d#
Naveen Chowdary 1
1.1k
views
asked
Jun 29, 2016
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
0
0 votes
1
answers
1 answer
1.6k
1.6k views
Compile time error do not include:
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.6k
views
asked
Jun 22, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
0
0 votes
1
answers
1 answer
1.5k
1.5k views
Compiler Design Question
Recognition of basic syntactic constructs through reductions, this task is performed by (A) Lexical analysis (B) Syntax ana...
snakeeye
1.5k
views
asked
Jun 19, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
0
0 votes
1
1 answer
1.2k
1.2k views
Compiler Design
A macro definition consists of ...
shekhar chauhan
1.2k
views
asked
Jun 19, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
1
1 vote
1
answers
1 answer
1.3k
1.3k views
Compiler Design
1 .Which of these is not a part of Synthesis phase .Please states the reason also Along with your answer.(A) Obtain machine code corresponding to the mnemonic from the ...
shekhar chauhan
1.3k
views
asked
Jun 19, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
1
1 vote
1
1 answer
2.1k
2.1k views
Lexical analysis
Which of the following statement is true For lexical analysis ?a) Simplify the phasesb) Compiler effeciency improvedc) Portability is encahncedd)compiler work faster
Dexter
2.1k
views
asked
Apr 12, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
0
0 votes
1
1 answer
752
752 views
ICG
In backpatching , what does the N mean in semantic rule for syntax rule ?1.E1 or NE22.E1 and NE23.Not E1a) It refer to the index of the first statement of second expres...
Dexter
752
views
asked
Apr 12, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
10
10 votes
2
answers
2 answers
2.1k
2.1k views
Error during compilation of code..
a = 1+1+1+ 1+1+1 1+1;as far as i think, it will pass the lexical phase.. it should b syntax error.. correct ??
shubhams3
2.1k
views
asked
Mar 22, 2016
Compiler Design
compiler-design
lexical-analysis
+
–
Page:
« prev
1
2
3
4
5
6
next »